Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Tokens / SecurityKeyIdentifierClause.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AsyncOperation.cs
- FilterEventArgs.cs
- SetterBase.cs
- HtmlToClrEventProxy.cs
- TableRowsCollectionEditor.cs
- XmlEncoding.cs
- UnsafePeerToPeerMethods.cs
- ObjectListCommandCollection.cs
- HttpBrowserCapabilitiesWrapper.cs
- Hex.cs
- RectConverter.cs
- X509Certificate2.cs
- CleanUpVirtualizedItemEventArgs.cs
- DataMisalignedException.cs
- PrimitiveXmlSerializers.cs
- DataColumnMapping.cs
- Vector3DKeyFrameCollection.cs
- DataGridViewEditingControlShowingEventArgs.cs
- Attributes.cs
- SuppressMessageAttribute.cs
- LogReserveAndAppendState.cs
- HttpWebRequestElement.cs
- HttpApplication.cs
- EpmSourcePathSegment.cs
- UIElementParagraph.cs
- AmbiguousMatchException.cs
- MetadataStore.cs
- XmlSignificantWhitespace.cs
- ControlCollection.cs
- ReadOnlyDictionary.cs
- PermissionListSet.cs
- VectorAnimationBase.cs
- WebPartUtil.cs
- DataGridCommandEventArgs.cs
- SqlCommand.cs
- SuppressIldasmAttribute.cs
- QilInvoke.cs
- WindowsRichEditRange.cs
- WindowsGraphicsCacheManager.cs
- TargetParameterCountException.cs
- DocumentXmlWriter.cs
- XsdDuration.cs
- XPathNavigator.cs
- NavigationCommands.cs
- ToolTipAutomationPeer.cs
- SwitchAttribute.cs
- GeometryGroup.cs
- TimeSpanConverter.cs
- IdentitySection.cs
- DataGridPageChangedEventArgs.cs
- WindowsTab.cs
- GlyphCollection.cs
- ObsoleteAttribute.cs
- ConfigXmlSignificantWhitespace.cs
- FontFamilyConverter.cs
- TimeSpanFormat.cs
- BCLDebug.cs
- KnownAssembliesSet.cs
- AdvancedBindingPropertyDescriptor.cs
- XmlWriterSettings.cs
- TextBlockAutomationPeer.cs
- HttpInputStream.cs
- SoapException.cs
- XPathSelectionIterator.cs
- InlineCategoriesDocument.cs
- CustomCategoryAttribute.cs
- DataReceivedEventArgs.cs
- x509utils.cs
- HuffmanTree.cs
- DesignerAdapterUtil.cs
- EntityModelBuildProvider.cs
- DispatcherExceptionFilterEventArgs.cs
- _HeaderInfoTable.cs
- ChangeConflicts.cs
- OleDbPropertySetGuid.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- Calendar.cs
- AssociationTypeEmitter.cs
- WeakReferenceEnumerator.cs
- XPathException.cs
- CodeActivityMetadata.cs
- COAUTHIDENTITY.cs
- LinqDataSourceDeleteEventArgs.cs
- FormView.cs
- ExtenderControl.cs
- DoubleLink.cs
- EndPoint.cs
- DbConnectionStringBuilder.cs
- RemoteWebConfigurationHostStream.cs
- ScopeElementCollection.cs
- HtmlTernaryTree.cs
- SecurityKeyType.cs
- assertwrapper.cs
- ResourceProviderFactory.cs
- GenericsInstances.cs
- WebPartsPersonalizationAuthorization.cs
- SafeSystemMetrics.cs
- IdentifierCollection.cs
- AutoResizedEvent.cs
- AccessibilityHelperForXpWin2k3.cs