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
- OdbcConnectionPoolProviderInfo.cs
- UTF32Encoding.cs
- Gdiplus.cs
- ApplicationSecurityManager.cs
- ItemPager.cs
- XmlChildEnumerator.cs
- ScrollProviderWrapper.cs
- ResourceExpressionEditor.cs
- WebPartConnectionsCancelEventArgs.cs
- TextRangeProviderWrapper.cs
- CodeComment.cs
- ProxyGenerationError.cs
- HostingEnvironment.cs
- DPCustomTypeDescriptor.cs
- NoneExcludedImageIndexConverter.cs
- StoreItemCollection.Loader.cs
- KeyedHashAlgorithm.cs
- NaturalLanguageHyphenator.cs
- UpdateTracker.cs
- ParserStreamGeometryContext.cs
- HWStack.cs
- RelativeSource.cs
- TimerEventSubscription.cs
- AsymmetricKeyExchangeDeformatter.cs
- MatrixAnimationUsingKeyFrames.cs
- ResourceDescriptionAttribute.cs
- CompileXomlTask.cs
- GroupBoxAutomationPeer.cs
- ExceptionTrace.cs
- Stackframe.cs
- NumericPagerField.cs
- DbProviderServices.cs
- XamlParser.cs
- TreeViewItem.cs
- DescendentsWalker.cs
- PolicyDesigner.cs
- RootBrowserWindow.cs
- SecurityTokenAuthenticator.cs
- CanonicalFontFamilyReference.cs
- WebServiceMethodData.cs
- xdrvalidator.cs
- DbConnectionPool.cs
- TableDetailsRow.cs
- ToolZone.cs
- WebPartEditVerb.cs
- StoryFragments.cs
- RewritingSimplifier.cs
- PreparingEnlistment.cs
- TraceInternal.cs
- UITypeEditor.cs
- InterleavedZipPartStream.cs
- BuildProviderAppliesToAttribute.cs
- GridViewColumnHeaderAutomationPeer.cs
- FormsAuthenticationCredentials.cs
- MimeMapping.cs
- QueryOperationResponseOfT.cs
- SizeKeyFrameCollection.cs
- EasingKeyFrames.cs
- CodeNamespace.cs
- ImportedNamespaceContextItem.cs
- NCryptNative.cs
- XmlSchemaRedefine.cs
- FrameworkElement.cs
- AnnotationStore.cs
- NamespaceDecl.cs
- Query.cs
- KeyInfo.cs
- XmlAtomErrorReader.cs
- RequiredFieldValidator.cs
- NullPackagingPolicy.cs
- Processor.cs
- querybuilder.cs
- ProcessManager.cs
- ServiceNameElement.cs
- EntityKey.cs
- XmlCharCheckingWriter.cs
- XamlNamespaceHelper.cs
- SqlConnection.cs
- CookielessHelper.cs
- MessageEventSubscriptionService.cs
- ControlBuilderAttribute.cs
- DetailsViewDeleteEventArgs.cs
- WhitespaceRuleReader.cs
- Deserializer.cs
- NetStream.cs
- ArrayConverter.cs
- DecimalStorage.cs
- ResourceSet.cs
- WebUtil.cs
- RenderOptions.cs
- SynchronizationContext.cs
- Grant.cs
- RelationshipConstraintValidator.cs
- HtmlWindow.cs
- OletxResourceManager.cs
- HttpModulesSection.cs
- DefaultConfirmation.cs
- CalendarDay.cs
- QilSortKey.cs
- WindowsStartMenu.cs