Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Tokens / SecurityKeyIdentifierClause.cs / 1 / SecurityKeyIdentifierClause.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.IdentityModel.Tokens { // All subclasses are required to be thread-safe and immutable // Self-resolving clauses such as RSA and X509 raw data should // override CanCreateKey and return true, and implement // CreateKey() public abstract class SecurityKeyIdentifierClause { readonly string clauseType; byte[] derivationNonce; int derivationLength; protected SecurityKeyIdentifierClause(string clauseType) : this(clauseType, null, 0) { } protected SecurityKeyIdentifierClause(string clauseType, byte[] nonce, int length) { this.clauseType = clauseType; this.derivationNonce = nonce; this.derivationLength = length; } public virtual bool CanCreateKey { get { return false; } } public string ClauseType { get { return this.clauseType; } } public virtual SecurityKey CreateKey() { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.KeyIdentifierClauseDoesNotSupportKeyCreation))); } public virtual bool Matches(SecurityKeyIdentifierClause keyIdentifierClause) { return ReferenceEquals(this, keyIdentifierClause); } public byte[] GetDerivationNonce() { return (this.derivationNonce != null) ? (byte[])this.derivationNonce.Clone() : null; } public int DerivationLength { get { return this.derivationLength; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UIElementParagraph.cs
- SchemaTableColumn.cs
- ConditionValidator.cs
- LookupBindingPropertiesAttribute.cs
- ConfigUtil.cs
- LockedBorderGlyph.cs
- HtmlTextArea.cs
- DesignRelationCollection.cs
- FileIOPermission.cs
- hresults.cs
- NonSerializedAttribute.cs
- StandardBindingElement.cs
- WindowAutomationPeer.cs
- TableParaClient.cs
- ConfigXmlElement.cs
- UpdateManifestForBrowserApplication.cs
- CatalogZoneDesigner.cs
- TextEndOfLine.cs
- DocumentPageView.cs
- ListControlBoundActionList.cs
- TcpDuplicateContext.cs
- ModulesEntry.cs
- GridView.cs
- DockAndAnchorLayout.cs
- CompilerScopeManager.cs
- TemplateField.cs
- DllHostedComPlusServiceHost.cs
- TextEditorTyping.cs
- TextContainerHelper.cs
- ClientFormsAuthenticationCredentials.cs
- ExtensionSimplifierMarkupObject.cs
- PackagingUtilities.cs
- ModelServiceImpl.cs
- XmlUnspecifiedAttribute.cs
- BaseParagraph.cs
- CodeGotoStatement.cs
- WebScriptMetadataFormatter.cs
- KeyBinding.cs
- AliasExpr.cs
- RepeatBehaviorConverter.cs
- EntityReference.cs
- InplaceBitmapMetadataWriter.cs
- GridViewDeletedEventArgs.cs
- PackageFilter.cs
- BackStopAuthenticationModule.cs
- PublishLicense.cs
- IntSecurity.cs
- DataGridViewRowEventArgs.cs
- CallbackValidator.cs
- ActivityInterfaces.cs
- WindowsIdentity.cs
- CompilationRelaxations.cs
- ParseChildrenAsPropertiesAttribute.cs
- Brushes.cs
- ScaleTransform3D.cs
- ReaderContextStackData.cs
- OperatorExpressions.cs
- basecomparevalidator.cs
- FilterableData.cs
- HttpResponseHeader.cs
- AsyncCompletedEventArgs.cs
- CorrelationTokenTypeConvertor.cs
- MasterPage.cs
- CharacterShapingProperties.cs
- COM2ExtendedBrowsingHandler.cs
- ConstraintCollection.cs
- PropertyValueChangedEvent.cs
- ButtonChrome.cs
- ItemDragEvent.cs
- OwnerDrawPropertyBag.cs
- HMACSHA256.cs
- LazyTextWriterCreator.cs
- SecurityDescriptor.cs
- ButtonFieldBase.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- PackWebRequestFactory.cs
- PersistenceTypeAttribute.cs
- BaseResourcesBuildProvider.cs
- XmlAttributeCache.cs
- TextureBrush.cs
- UIAgentMonitorHandle.cs
- AuthenticatedStream.cs
- ObjectCacheSettings.cs
- ObjectPersistData.cs
- TransformerInfo.cs
- EventRouteFactory.cs
- HttpCacheVaryByContentEncodings.cs
- DecodeHelper.cs
- Int32RectConverter.cs
- XhtmlBasicPanelAdapter.cs
- FileDialog.cs
- Transactions.cs
- ProfileProvider.cs
- ModelUIElement3D.cs
- PropertyCollection.cs
- CultureInfoConverter.cs
- TextFindEngine.cs
- Stream.cs
- VoiceChangeEventArgs.cs
- BindingObserver.cs