SamlSecurityTokenHandler.CreateSecurityTokenReference Metod

Definition

Skapar referensen för säkerhetstoken när token inte är kopplad till meddelandet.

public:
 override System::IdentityModel::Tokens::SecurityKeyIdentifierClause ^ CreateSecurityTokenReference(System::IdentityModel::Tokens::SecurityToken ^ token, bool attached);
public override System.IdentityModel.Tokens.SecurityKeyIdentifierClause CreateSecurityTokenReference(System.IdentityModel.Tokens.SecurityToken token, bool attached);
override this.CreateSecurityTokenReference : System.IdentityModel.Tokens.SecurityToken * bool -> System.IdentityModel.Tokens.SecurityKeyIdentifierClause
Public Overrides Function CreateSecurityTokenReference (token As SecurityToken, attached As Boolean) As SecurityKeyIdentifierClause

Parametrar

token
SecurityToken

SAML-token.

attached
Boolean

Ett värde som anger om en bifogad eller oansluten referens ska skapas.

Returer

En SecurityKeyIdentifierClause som representerar tokenreferensen. (En instans av SamlAssertionKeyIdentifierClause returneras faktiskt.)

Undantag

token är null.

Gäller för