Saml2SecurityTokenHandler.CreateSecurityTokenReference Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Tworzy odwołanie do tokenu zabezpieczającego, gdy token nie jest dołączony do komunikatu.
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
Parametry
- token
- SecurityToken
Token SAML.
- attached
- Boolean
Wartość wskazująca, czy należy utworzyć dołączone, czy nieprzyłączone odwołanie.
Zwraca
Element SecurityKeyIdentifierClause reprezentujący odwołanie do tokenu. (Wystąpienie jest Saml2AssertionKeyIdentifierClause rzeczywiście zwracane).
Wyjątki
token
to null
.