편집

다음을 통해 공유


GenericXmlSecurityToken.CanCreateKeyIdentifierClause<T> Method

Definition

Gets a value that indicates whether this security token is capable of creating the specified key identifier clause.

public:
generic <typename T>
 where T : System::IdentityModel::Tokens::SecurityKeyIdentifierClause override bool CanCreateKeyIdentifierClause();
public override bool CanCreateKeyIdentifierClause<T> () where T : System.IdentityModel.Tokens.SecurityKeyIdentifierClause;
override this.CanCreateKeyIdentifierClause : unit -> bool (requires 'T :> System.IdentityModel.Tokens.SecurityKeyIdentifierClause)
Public Overrides Function CanCreateKeyIdentifierClause(Of T As SecurityKeyIdentifierClause) () As Boolean

Type Parameters

T

A SecurityKeyIdentifierClause that specifies the key identifier to create.

Returns

true when T is not null and the same type as either the InternalTokenReference or ExternalTokenReference property values; otherwise, false.

Remarks

Use the CanCreateKeyIdentifierClause<T>() method to determine if a GenericXmlSecurityToken security token can create a specific key identifier. To create the key identifier call the CreateKeyIdentifierClause<T>() method.

Applies to