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
- TemplateKeyConverter.cs
- ProfileEventArgs.cs
- ItemMap.cs
- ModelMemberCollection.cs
- XmlValidatingReader.cs
- DataTableTypeConverter.cs
- IndentedWriter.cs
- ButtonFieldBase.cs
- TableRowGroupCollection.cs
- MemberDomainMap.cs
- MemberInitExpression.cs
- MemberHolder.cs
- MediaContextNotificationWindow.cs
- SchemaMapping.cs
- FormsAuthenticationTicket.cs
- TextBoxBase.cs
- ToolTip.cs
- TimeoutConverter.cs
- DtdParser.cs
- CultureInfoConverter.cs
- MemberJoinTreeNode.cs
- XmlDocumentViewSchema.cs
- SqlGenericUtil.cs
- RegisteredScript.cs
- HandlerFactoryWrapper.cs
- CompatibleComparer.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- Input.cs
- MultiViewDesigner.cs
- SpellerInterop.cs
- MenuItem.cs
- HitTestWithPointDrawingContextWalker.cs
- XmlHelper.cs
- EventLogger.cs
- Attachment.cs
- CompatibleComparer.cs
- handlecollector.cs
- PositiveTimeSpanValidatorAttribute.cs
- MouseActionConverter.cs
- EditorPartChrome.cs
- ContentFilePart.cs
- CodeBinaryOperatorExpression.cs
- DockingAttribute.cs
- TextTreeTextBlock.cs
- MessageSmuggler.cs
- UnsafeNativeMethods.cs
- NamespaceEmitter.cs
- Exceptions.cs
- DataViewListener.cs
- DataGridViewIntLinkedList.cs
- WebHttpDispatchOperationSelector.cs
- SchemaContext.cs
- TemplateComponentConnector.cs
- WindowsPen.cs
- WinInetCache.cs
- CompressEmulationStream.cs
- RoleGroup.cs
- XmlAggregates.cs
- FieldValue.cs
- QuestionEventArgs.cs
- CodeDomComponentSerializationService.cs
- _HTTPDateParse.cs
- EnumValidator.cs
- RowToParametersTransformer.cs
- TopClause.cs
- JournalEntryStack.cs
- BindingSource.cs
- NamespaceCollection.cs
- DocumentPaginator.cs
- BinaryObjectInfo.cs
- WasAdminWrapper.cs
- HuffCodec.cs
- SID.cs
- MetafileHeader.cs
- TreeViewHitTestInfo.cs
- VisualStyleRenderer.cs
- BezierSegment.cs
- Operators.cs
- Instrumentation.cs
- RegexTree.cs
- RangeValidator.cs
- WorkItem.cs
- WebPartZoneBaseDesigner.cs
- BrowserCapabilitiesFactory.cs
- FixedNode.cs
- WebBrowserEvent.cs
- DeclarativeCatalogPart.cs
- SrgsNameValueTag.cs
- RemoteWebConfigurationHostServer.cs
- PrintingPermissionAttribute.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- EFDataModelProvider.cs
- MenuItemBindingCollection.cs
- Line.cs
- XamlInt32CollectionSerializer.cs
- EncoderParameter.cs
- DictionaryEditChange.cs
- XmlILAnnotation.cs
- TablePattern.cs
- ExtensionSurface.cs