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
- NamedPipeProcessProtocolHandler.cs
- XslAst.cs
- EdmRelationshipRoleAttribute.cs
- RepeaterItemCollection.cs
- RSAPKCS1SignatureFormatter.cs
- NegotiateStream.cs
- HtmlCommandAdapter.cs
- ProfileService.cs
- DocumentOrderComparer.cs
- SettingsPropertyWrongTypeException.cs
- SchemaMapping.cs
- SoapProcessingBehavior.cs
- Annotation.cs
- sqlstateclientmanager.cs
- RayHitTestParameters.cs
- AdPostCacheSubstitution.cs
- SizeAnimationBase.cs
- UnsafeNativeMethods.cs
- SessionEndingCancelEventArgs.cs
- XmlDataSourceNodeDescriptor.cs
- DbProviderFactories.cs
- TouchesCapturedWithinProperty.cs
- WmlTextBoxAdapter.cs
- BCLDebug.cs
- XmlDomTextWriter.cs
- CompilerInfo.cs
- XmlSchemaImporter.cs
- CollectionChangeEventArgs.cs
- FigureHelper.cs
- VirtualizedCellInfoCollection.cs
- HttpClientProtocol.cs
- PrintControllerWithStatusDialog.cs
- FrameworkTemplate.cs
- CellPartitioner.cs
- EncryptedPackage.cs
- DocumentEventArgs.cs
- SystemTcpStatistics.cs
- SyncOperationState.cs
- InsufficientExecutionStackException.cs
- Utility.cs
- FrameworkContentElement.cs
- TimeManager.cs
- IconHelper.cs
- XamlSerializationHelper.cs
- BuildProvidersCompiler.cs
- Matrix3D.cs
- UserControlCodeDomTreeGenerator.cs
- HotCommands.cs
- IsolatedStoragePermission.cs
- RadioButton.cs
- Binding.cs
- QuaternionAnimationUsingKeyFrames.cs
- ProvidersHelper.cs
- X509ChainElement.cs
- VirtualPathUtility.cs
- RegistryPermission.cs
- ListenerAdapter.cs
- DeclaredTypeValidator.cs
- TableLayout.cs
- ChtmlTextWriter.cs
- DrawingContextWalker.cs
- SqlInternalConnectionSmi.cs
- BaseConfigurationRecord.cs
- TextOnlyOutput.cs
- ObjectRef.cs
- TemplateControlCodeDomTreeGenerator.cs
- TreeNodeBinding.cs
- ActiveXContainer.cs
- CheckBoxField.cs
- SqlDataAdapter.cs
- XmlDataSourceView.cs
- BinaryOperationBinder.cs
- HtmlEmptyTagControlBuilder.cs
- CalendarButton.cs
- Select.cs
- GZipStream.cs
- PolygonHotSpot.cs
- CompensationToken.cs
- Utilities.cs
- SqlException.cs
- SqlResolver.cs
- Geometry.cs
- TranslateTransform3D.cs
- XmlSchemaGroup.cs
- WebSysDefaultValueAttribute.cs
- Tokenizer.cs
- DataPagerFieldCommandEventArgs.cs
- DesignerSerializerAttribute.cs
- ItemCheckEvent.cs
- CodeComment.cs
- SqlCacheDependencySection.cs
- ProtocolsSection.cs
- DataSourceComponent.cs
- Timer.cs
- DrawingAttributes.cs
- ProcessManager.cs
- CodeConditionStatement.cs
- TreeView.cs
- SevenBitStream.cs
- DbInsertCommandTree.cs