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
- Attributes.cs
- SerializationBinder.cs
- QilIterator.cs
- EntityClientCacheEntry.cs
- MsmqIntegrationMessageProperty.cs
- ReliableMessagingVersion.cs
- PerspectiveCamera.cs
- DesignerAttribute.cs
- DescendentsWalkerBase.cs
- ContentIterators.cs
- SystemResourceKey.cs
- DataFieldEditor.cs
- CodeMethodMap.cs
- DATA_BLOB.cs
- HttpCookie.cs
- SiteMapDataSource.cs
- FieldBuilder.cs
- AncillaryOps.cs
- XPathCompiler.cs
- TextInfo.cs
- MouseGestureValueSerializer.cs
- MenuItem.cs
- SqlConnectionStringBuilder.cs
- CompiledAction.cs
- CodeGen.cs
- UdpTransportBindingElement.cs
- BooleanAnimationUsingKeyFrames.cs
- TimelineClockCollection.cs
- NativeMethods.cs
- SqlMultiplexer.cs
- PrivilegeNotHeldException.cs
- DocumentPageView.cs
- ProcessHostMapPath.cs
- MaterializeFromAtom.cs
- FileLoadException.cs
- COMException.cs
- securitycriticaldataformultiplegetandset.cs
- DetailsViewDeleteEventArgs.cs
- ModelUtilities.cs
- ThreadExceptionDialog.cs
- PeerTransportSecuritySettings.cs
- SystemInformation.cs
- ConfigXmlComment.cs
- LowerCaseStringConverter.cs
- HostingEnvironmentWrapper.cs
- OleAutBinder.cs
- Misc.cs
- ApplicationHost.cs
- MouseBinding.cs
- CustomTypeDescriptor.cs
- FlowLayoutSettings.cs
- LongCountAggregationOperator.cs
- BooleanAnimationUsingKeyFrames.cs
- TagPrefixCollection.cs
- KeyValuePairs.cs
- ListView.cs
- ComplexPropertyEntry.cs
- StateManagedCollection.cs
- SqlErrorCollection.cs
- HttpHandlerActionCollection.cs
- GridViewColumnCollection.cs
- StorageRoot.cs
- LineBreakRecord.cs
- DaylightTime.cs
- AttributeCollection.cs
- SafeBitVector32.cs
- SqlDataAdapter.cs
- odbcmetadatafactory.cs
- SiteMapPath.cs
- ObservableCollection.cs
- GuidelineSet.cs
- TextTreeNode.cs
- FamilyTypefaceCollection.cs
- IPAddressCollection.cs
- UnknownBitmapDecoder.cs
- OwnerDrawPropertyBag.cs
- MetadataArtifactLoaderCompositeFile.cs
- UriParserTemplates.cs
- Message.cs
- SecurityToken.cs
- AtomMaterializer.cs
- TextBoxLine.cs
- RewritingSimplifier.cs
- SinglePhaseEnlistment.cs
- GridViewCellAutomationPeer.cs
- XmlName.cs
- DynamicHyperLink.cs
- ListBase.cs
- AssemblyBuilder.cs
- UrlPropertyAttribute.cs
- ReliableRequestSessionChannel.cs
- VisualTreeUtils.cs
- COM2PropertyPageUITypeConverter.cs
- FileLogRecordHeader.cs
- PropertyInfo.cs
- SetterBase.cs
- SkinBuilder.cs
- DynamicContractTypeBuilder.cs
- ComponentConverter.cs
- Unit.cs