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
- FormsAuthenticationConfiguration.cs
- MemberJoinTreeNode.cs
- KnownBoxes.cs
- MsmqHostedTransportConfiguration.cs
- UpWmlPageAdapter.cs
- DynamicResourceExtensionConverter.cs
- TreeWalker.cs
- CharacterHit.cs
- AssemblyNameProxy.cs
- WrapperEqualityComparer.cs
- SecurityDocument.cs
- OutOfMemoryException.cs
- RootNamespaceAttribute.cs
- QuestionEventArgs.cs
- TextParaLineResult.cs
- AudioFormatConverter.cs
- SecurityPolicySection.cs
- PrivateFontCollection.cs
- InkCanvasFeedbackAdorner.cs
- ListViewItem.cs
- ParsedRoute.cs
- RichTextBoxDesigner.cs
- DataGridViewCell.cs
- XmlEncoding.cs
- ComAdminInterfaces.cs
- SqlDataSource.cs
- XmlDictionaryReader.cs
- UIElementCollection.cs
- RoleGroupCollection.cs
- DBCommand.cs
- DispatcherOperation.cs
- ConfigurationSectionGroupCollection.cs
- XmlDataProvider.cs
- TextWriter.cs
- SslStream.cs
- OleDbDataReader.cs
- RbTree.cs
- FilterException.cs
- ListControlBoundActionList.cs
- JsonServiceDocumentSerializer.cs
- ActionMessageFilterTable.cs
- TextEffect.cs
- KeyedCollection.cs
- SafeCertificateContext.cs
- FixedTextView.cs
- EntryPointNotFoundException.cs
- PathSegmentCollection.cs
- SelectedGridItemChangedEvent.cs
- DesignerAttribute.cs
- ValidationRuleCollection.cs
- ApplicationId.cs
- DataExpression.cs
- DataBinding.cs
- CodeCatchClause.cs
- ApplicationDirectory.cs
- QueryNode.cs
- ExtensionWindow.cs
- X509AsymmetricSecurityKey.cs
- versioninfo.cs
- Transform3DGroup.cs
- DBBindings.cs
- RemoteWebConfigurationHost.cs
- SecurityHelper.cs
- RoutedEventValueSerializer.cs
- EtwTrace.cs
- AnimatedTypeHelpers.cs
- ApplicationGesture.cs
- BamlBinaryWriter.cs
- RootProfilePropertySettingsCollection.cs
- OleDbCommandBuilder.cs
- AssemblyAssociatedContentFileAttribute.cs
- CommandDevice.cs
- ValueOfAction.cs
- SecurityProtocol.cs
- NotifyParentPropertyAttribute.cs
- InvariantComparer.cs
- xdrvalidator.cs
- CalendarBlackoutDatesCollection.cs
- PersianCalendar.cs
- RawStylusActions.cs
- MailHeaderInfo.cs
- NativeMethodsOther.cs
- ListParagraph.cs
- UDPClient.cs
- StaticSiteMapProvider.cs
- SoapFormatterSinks.cs
- PersonalizationAdministration.cs
- TextParaLineResult.cs
- ControlParser.cs
- DbQueryCommandTree.cs
- CompositeActivityDesigner.cs
- Walker.cs
- OdbcConnectionFactory.cs
- DataGridView.cs
- DataBoundControlAdapter.cs
- TableColumnCollection.cs
- ColumnMap.cs
- XmlSerializerSection.cs
- ProcessHostConfigUtils.cs
- EventManager.cs