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
- NavigationPropertyEmitter.cs
- DurableOperationAttribute.cs
- UrlPropertyAttribute.cs
- BulletedListEventArgs.cs
- FirewallWrapper.cs
- ObjectNavigationPropertyMapping.cs
- MULTI_QI.cs
- ClientOperationFormatterProvider.cs
- ProviderException.cs
- MsmqHostedTransportManager.cs
- TargetException.cs
- MetadataCollection.cs
- XmlnsDictionary.cs
- SmtpReplyReader.cs
- BitmapEffectDrawingContent.cs
- HttpCookiesSection.cs
- AnnotationComponentChooser.cs
- prompt.cs
- Query.cs
- BindingExpressionUncommonField.cs
- Internal.cs
- XamlVector3DCollectionSerializer.cs
- CompositeCollectionView.cs
- SatelliteContractVersionAttribute.cs
- XamlStream.cs
- Mappings.cs
- Track.cs
- WeakReferenceKey.cs
- PtsHost.cs
- InlineObject.cs
- CodeArgumentReferenceExpression.cs
- BrowserCapabilitiesCompiler.cs
- DeliveryStrategy.cs
- ConfigurationSectionCollection.cs
- BuilderInfo.cs
- ParseNumbers.cs
- TemplateApplicationHelper.cs
- DataGridViewColumnHeaderCell.cs
- ExpressionEvaluator.cs
- CallTemplateAction.cs
- ChildrenQuery.cs
- CroppedBitmap.cs
- EncodingInfo.cs
- DesignerCategoryAttribute.cs
- Registry.cs
- ModifiableIteratorCollection.cs
- WindowsMenu.cs
- ValueChangedEventManager.cs
- DataGridViewCellCollection.cs
- Line.cs
- GPPOINTF.cs
- SystemIcmpV6Statistics.cs
- ControlIdConverter.cs
- Int16Converter.cs
- SwitchLevelAttribute.cs
- IndependentlyAnimatedPropertyMetadata.cs
- SharedPersonalizationStateInfo.cs
- X509ScopedServiceCertificateElement.cs
- FlowLayoutSettings.cs
- XmlSchemaIdentityConstraint.cs
- ComplexType.cs
- EventLogPermissionEntry.cs
- _BaseOverlappedAsyncResult.cs
- Permission.cs
- MutexSecurity.cs
- NameHandler.cs
- DCSafeHandle.cs
- KerberosTicketHashIdentifierClause.cs
- XmlMemberMapping.cs
- LinqDataSourceStatusEventArgs.cs
- ListSourceHelper.cs
- RouteParametersHelper.cs
- SoapHeaderException.cs
- AssemblyHash.cs
- FrameworkRichTextComposition.cs
- ObsoleteAttribute.cs
- CopyCodeAction.cs
- ObjectList.cs
- PathParser.cs
- PageStatePersister.cs
- EventHandlers.cs
- DeferredRunTextReference.cs
- DecimalConverter.cs
- Help.cs
- BufferedOutputStream.cs
- CompileLiteralTextParser.cs
- AuthenticationModulesSection.cs
- XslAst.cs
- SpeechSeg.cs
- AspNetSynchronizationContext.cs
- PropertyRecord.cs
- ColorConverter.cs
- ByteAnimationUsingKeyFrames.cs
- WpfKnownTypeInvoker.cs
- InternalBase.cs
- DataGridViewCellMouseEventArgs.cs
- ModelTreeEnumerator.cs
- TemplatedControlDesigner.cs
- EventSetter.cs
- ListViewDeletedEventArgs.cs