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
- PersonalizationDictionary.cs
- ClientSettingsSection.cs
- ReliabilityContractAttribute.cs
- DescendantOverDescendantQuery.cs
- GeneratedCodeAttribute.cs
- SelectedGridItemChangedEvent.cs
- DesignRelationCollection.cs
- SupportsEventValidationAttribute.cs
- DataGridViewIntLinkedList.cs
- BaseParser.cs
- VersionedStreamOwner.cs
- ConfigurationCollectionAttribute.cs
- UrlRoutingHandler.cs
- MaterializeFromAtom.cs
- ExpandSegmentCollection.cs
- ErrorHandlingAcceptor.cs
- TagMapInfo.cs
- StandardTransformFactory.cs
- ReadWriteSpinLock.cs
- Quaternion.cs
- RIPEMD160Managed.cs
- WebBrowsableAttribute.cs
- NativeMethods.cs
- LogicalExpr.cs
- PersistenceMetadataNamespace.cs
- CodeIdentifier.cs
- EntityCommandCompilationException.cs
- DiscoveryClientDuplexChannel.cs
- ServiceInfo.cs
- VScrollProperties.cs
- RefreshEventArgs.cs
- CountAggregationOperator.cs
- Int32CAMarshaler.cs
- UserControl.cs
- DataGridCaption.cs
- Normalization.cs
- QilFunction.cs
- MatrixTransform.cs
- WebPartConnectionsCloseVerb.cs
- SrgsToken.cs
- ReferenceAssemblyAttribute.cs
- DataSourceDesigner.cs
- SocketException.cs
- XmlSchemaValidator.cs
- ResourceDefaultValueAttribute.cs
- CompressEmulationStream.cs
- BamlResourceContent.cs
- AlternateViewCollection.cs
- XmlFormatExtensionPrefixAttribute.cs
- SizeConverter.cs
- IntPtr.cs
- DelegatedStream.cs
- DiscoveryDocumentSearchPattern.cs
- Point3DValueSerializer.cs
- Random.cs
- MouseCaptureWithinProperty.cs
- ApplicationFileParser.cs
- DBSqlParserTableCollection.cs
- EntityCollection.cs
- DataGridViewAutoSizeModeEventArgs.cs
- AncillaryOps.cs
- ButtonChrome.cs
- ProfileServiceManager.cs
- HttpEncoder.cs
- CatalogPartChrome.cs
- HashJoinQueryOperatorEnumerator.cs
- CompositeDataBoundControl.cs
- XpsFont.cs
- ArrayList.cs
- MultipartIdentifier.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- LinkArea.cs
- Asn1Utilities.cs
- XmlNamespaceMapping.cs
- InvalidDocumentContentsException.cs
- AutoGeneratedFieldProperties.cs
- XPathNavigatorReader.cs
- ReplacementText.cs
- List.cs
- HtmlFormWrapper.cs
- TemplatePartAttribute.cs
- TrackingMemoryStreamFactory.cs
- TextViewBase.cs
- SinglePageViewer.cs
- FieldNameLookup.cs
- iisPickupDirectory.cs
- IPAddressCollection.cs
- XmlCDATASection.cs
- ConfigsHelper.cs
- FileLoadException.cs
- ObjectComplexPropertyMapping.cs
- sqlmetadatafactory.cs
- HashSetEqualityComparer.cs
- WSSecureConversation.cs
- StringConverter.cs
- SamlAssertion.cs
- EntityException.cs
- ScrollChrome.cs
- AbstractDataSvcMapFileLoader.cs
- OpCodes.cs