SecureConversationSecurityTokenParameters::CreateKeyIdentifierClause Method (SecurityToken^, SecurityTokenReferenceStyle)
.NET Framework (current version)
Creates a key identifier clause for a token.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public protected: virtual SecurityKeyIdentifierClause^ CreateKeyIdentifierClause( SecurityToken^ token, SecurityTokenReferenceStyle referenceStyle ) override
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 key identifier clause for a token.
| Exception | Condition |
|---|---|
| ArgumentNullException | token is null. |
| NotSupportedException | referenceStyle is not External or Internal. |
This method creates a key identifier clause using the CreateKeyIdentifierClause<T> method, with referenceStyle as a generic parameter.
.NET Framework
Available since 3.0
Available since 3.0
Show: