Saml2SecurityToken.CanCreateKeyIdentifierClause<T> Method

.NET Framework 4.6 and 4.5

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

Namespace:  System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public override bool CanCreateKeyIdentifierClause<T>()
where T : SecurityKeyIdentifierClause

Type Parameters


A SecurityKeyIdentifierClause that specifies the key identifier to create.

Return Value

Type: System.Boolean
true when T is of type Saml2AssertionKeyIdentifierClause; otherwise, false.

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

.NET Framework

Supported in: 4.6, 4.5
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft