Export (0) Print
Expand All

IssuedSecurityTokenParameters.CreateKeyIdentifierClause Method

Creates a key identifier clause for a token.

Namespace:  System.ServiceModel.Security.Tokens
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

protected internal override SecurityKeyIdentifierClause CreateKeyIdentifierClause(
	SecurityToken token,
	SecurityTokenReferenceStyle referenceStyle
)

Parameters

token
Type: System.IdentityModel.Tokens.SecurityToken

The token.

referenceStyle
Type: System.ServiceModel.Security.Tokens.SecurityTokenReferenceStyle

The reference style of the security token.

Return Value

Type: System.IdentityModel.Tokens.SecurityKeyIdentifierClause
The security key identifier clause.

ExceptionCondition
ArgumentNullException

token is null.

NotSupportedException

referenceStyle is not External or Internal.

Creates a key identifier clause using the CreateKeyIdentifierClause<T> method, with referenceStyle as a generic parameter.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft