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
- DynamicQueryableWrapper.cs
- ExpressionBindingCollection.cs
- XmlDocumentFieldSchema.cs
- EncoderBestFitFallback.cs
- DesignerDataTable.cs
- XmlObjectSerializerReadContextComplex.cs
- Debug.cs
- DropShadowEffect.cs
- SynchronousChannelMergeEnumerator.cs
- BrowserCapabilitiesCompiler.cs
- CustomErrorsSection.cs
- AuthStoreRoleProvider.cs
- PersonalizablePropertyEntry.cs
- ReverseQueryOperator.cs
- TemplateBuilder.cs
- NativeMethods.cs
- ChooseAction.cs
- Encoder.cs
- IISUnsafeMethods.cs
- UInt16.cs
- StreamInfo.cs
- WebBrowserDocumentCompletedEventHandler.cs
- ModelPerspective.cs
- InsufficientMemoryException.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- NativeObjectSecurity.cs
- SequentialUshortCollection.cs
- ActivityBuilder.cs
- AsyncStreamReader.cs
- SqlGatherProducedAliases.cs
- SafeSecurityHandles.cs
- Hyperlink.cs
- AppDomainGrammarProxy.cs
- ResizeGrip.cs
- SliderAutomationPeer.cs
- NameGenerator.cs
- NetSectionGroup.cs
- ArgumentException.cs
- PlainXmlSerializer.cs
- BindingSource.cs
- TransformerConfigurationWizardBase.cs
- XmlQualifiedName.cs
- DiagnosticEventProvider.cs
- ControlBuilder.cs
- ToolStripContentPanelRenderEventArgs.cs
- Enum.cs
- ZoomingMessageFilter.cs
- Rss20FeedFormatter.cs
- EntityDataSource.cs
- SectionVisual.cs
- DataContractSerializerSection.cs
- ToolstripProfessionalRenderer.cs
- StorageAssociationTypeMapping.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- ByteStreamGeometryContext.cs
- PathTooLongException.cs
- DefaultAsyncDataDispatcher.cs
- DtdParser.cs
- NavigationPropertyEmitter.cs
- StringInfo.cs
- IntSumAggregationOperator.cs
- FlowPanelDesigner.cs
- RandomNumberGenerator.cs
- DropDownList.cs
- ToolBarOverflowPanel.cs
- URLMembershipCondition.cs
- PolicyStatement.cs
- PartialList.cs
- UnknownBitmapDecoder.cs
- VirtualPathProvider.cs
- OleDbRowUpdatingEvent.cs
- WebResourceUtil.cs
- TypedDatasetGenerator.cs
- RawStylusInput.cs
- Region.cs
- DataViewListener.cs
- VideoDrawing.cs
- BitmapSource.cs
- AuthenticationManager.cs
- CorrelationKey.cs
- CreateUserWizardStep.cs
- StyleTypedPropertyAttribute.cs
- Context.cs
- Validator.cs
- Padding.cs
- ConvertTextFrag.cs
- NullRuntimeConfig.cs
- FatalException.cs
- HttpResponseInternalBase.cs
- MultiView.cs
- AssemblyCollection.cs
- EncodingDataItem.cs
- FormsAuthentication.cs
- SoapAttributeOverrides.cs
- NegotiateStream.cs
- TypedElement.cs
- AsyncStreamReader.cs
- PaintEvent.cs
- safemediahandle.cs
- AxisAngleRotation3D.cs