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
- CopyNamespacesAction.cs
- ResourceManager.cs
- SymbolDocumentGenerator.cs
- CapabilitiesSection.cs
- StorageSetMapping.cs
- Oid.cs
- SessionSwitchEventArgs.cs
- XmlNodeChangedEventArgs.cs
- ConnectionStringsExpressionBuilder.cs
- WebPartMinimizeVerb.cs
- ObjectListDataBindEventArgs.cs
- shaperfactoryquerycachekey.cs
- ColorConvertedBitmap.cs
- TiffBitmapDecoder.cs
- CatalogPartCollection.cs
- AccessedThroughPropertyAttribute.cs
- DBParameter.cs
- TemplateControlParser.cs
- Variant.cs
- BrowserCapabilitiesFactoryBase.cs
- PropertyChangeTracker.cs
- Unit.cs
- AppDomainProtocolHandler.cs
- SettingsBase.cs
- XmlTextEncoder.cs
- SmtpMail.cs
- UnsafeNativeMethods.cs
- BitmapImage.cs
- MeasureItemEvent.cs
- Keywords.cs
- ItemContainerGenerator.cs
- DesignerTransaction.cs
- Exception.cs
- DataColumnPropertyDescriptor.cs
- BuildProviderAppliesToAttribute.cs
- MailHeaderInfo.cs
- StringFreezingAttribute.cs
- HelpInfo.cs
- SettingsBindableAttribute.cs
- OleDbCommandBuilder.cs
- DefaultSerializationProviderAttribute.cs
- UITypeEditor.cs
- SqlBulkCopyColumnMapping.cs
- SqlClientWrapperSmiStream.cs
- XPathDescendantIterator.cs
- PartitionedDataSource.cs
- ArgIterator.cs
- XmlCollation.cs
- AnimatedTypeHelpers.cs
- ResXFileRef.cs
- XPathNodeHelper.cs
- SizeConverter.cs
- Pkcs7Recipient.cs
- OleDbRowUpdatedEvent.cs
- SR.Designer.cs
- IProvider.cs
- PrivateFontCollection.cs
- ActiveXSite.cs
- WebPartAddingEventArgs.cs
- SymLanguageVendor.cs
- MediaElementAutomationPeer.cs
- NativeRightsManagementAPIsStructures.cs
- ProjectionPruner.cs
- EntityUtil.cs
- BitmapEffectDrawingContextState.cs
- RequestValidator.cs
- PagerSettings.cs
- AutoCompleteStringCollection.cs
- TextStore.cs
- WebSysDefaultValueAttribute.cs
- Vector3DIndependentAnimationStorage.cs
- LineUtil.cs
- WebPartDisplayMode.cs
- BitmapCache.cs
- BackgroundWorker.cs
- ReadOnlyDictionary.cs
- ColorConvertedBitmap.cs
- StrokeCollectionDefaultValueFactory.cs
- HttpCookiesSection.cs
- NoneExcludedImageIndexConverter.cs
- XhtmlBasicListAdapter.cs
- XmlDataSourceView.cs
- LayoutTableCell.cs
- LocationFactory.cs
- MimeXmlImporter.cs
- Encoding.cs
- CodeStatement.cs
- XmlDocumentType.cs
- UpdateRecord.cs
- InputProcessorProfiles.cs
- ResourceCategoryAttribute.cs
- EdmConstants.cs
- PropagatorResult.cs
- RestHandlerFactory.cs
- IOThreadTimer.cs
- IxmlLineInfo.cs
- RSAPKCS1SignatureDeformatter.cs
- ReceiveMessageRecord.cs
- PersonalizationDictionary.cs
- JsonSerializer.cs