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
- OracleDateTime.cs
- ConfigurationLockCollection.cs
- SystemKeyConverter.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- AssemblyBuilderData.cs
- ColumnResizeAdorner.cs
- LongSumAggregationOperator.cs
- CellIdBoolean.cs
- NullableConverter.cs
- PartialCachingAttribute.cs
- SessionEndingEventArgs.cs
- MailWebEventProvider.cs
- RelatedImageListAttribute.cs
- UpdateTranslator.cs
- PropertyChangedEventManager.cs
- MeshGeometry3D.cs
- SqlDeflator.cs
- BindingEditor.xaml.cs
- FontWeightConverter.cs
- ChtmlTextWriter.cs
- TextUtf8RawTextWriter.cs
- ExpressionPrinter.cs
- SizeChangedInfo.cs
- Membership.cs
- TextTreeRootTextBlock.cs
- DataGridViewColumnEventArgs.cs
- TableLayoutPanel.cs
- Stack.cs
- RuntimeConfig.cs
- SerializationEventsCache.cs
- SqlRemoveConstantOrderBy.cs
- SocketCache.cs
- StringArrayConverter.cs
- PropertyMetadata.cs
- AnnotationMap.cs
- PartManifestEntry.cs
- EtwProvider.cs
- SafeEventLogReadHandle.cs
- DynamicMethod.cs
- ImageSource.cs
- NavigationFailedEventArgs.cs
- DiscoveryClientOutputChannel.cs
- ModuleConfigurationInfo.cs
- ObjectMaterializedEventArgs.cs
- HwndHost.cs
- EnumerableWrapperWeakToStrong.cs
- CheckBoxStandardAdapter.cs
- TextParagraphCache.cs
- DataGridCommandEventArgs.cs
- DesignerCatalogPartChrome.cs
- StringHandle.cs
- Path.cs
- WriterOutput.cs
- InkCanvas.cs
- LineMetrics.cs
- SiteMapNodeItemEventArgs.cs
- VarRefManager.cs
- X509Certificate.cs
- _ContextAwareResult.cs
- Propagator.Evaluator.cs
- Transform3DGroup.cs
- SqlCacheDependencySection.cs
- LazyInitializer.cs
- SqlCommandBuilder.cs
- BatchParser.cs
- PersistenceTypeAttribute.cs
- EmptyElement.cs
- UInt16Converter.cs
- SqlConnectionPoolGroupProviderInfo.cs
- EntityRecordInfo.cs
- DebugInfoGenerator.cs
- PersonalizationProviderHelper.cs
- TypeUtils.cs
- XPathNavigatorKeyComparer.cs
- IndexedSelectQueryOperator.cs
- CommentEmitter.cs
- PrintControllerWithStatusDialog.cs
- SqlHelper.cs
- TargetInvocationException.cs
- FileDialog_Vista_Interop.cs
- ClrPerspective.cs
- MaskedTextProvider.cs
- DesignerActionListCollection.cs
- IRCollection.cs
- SecurityCookieModeValidator.cs
- ManipulationInertiaStartingEventArgs.cs
- TableDetailsRow.cs
- WindowsUpDown.cs
- TraceUtility.cs
- SelectionProviderWrapper.cs
- X509Certificate2.cs
- WebPartCloseVerb.cs
- DataSourceView.cs
- DataGridViewComboBoxColumn.cs
- LateBoundBitmapDecoder.cs
- DataColumnChangeEvent.cs
- IIS7UserPrincipal.cs
- EmptyEnumerator.cs
- Decoder.cs
- CodeExporter.cs