Saml2SecurityTokenHandler.CreateToken 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.
Przeciążenia
| Nazwa | Opis |
|---|---|
| CreateToken(SecurityTokenDescriptor) |
Tworzy Saml2SecurityToken. |
| CreateToken(SecurityTokenDescriptor, AuthenticationInformation) |
Tworzy Saml2SecurityToken. |
CreateToken(SecurityTokenDescriptor)
Tworzy Saml2SecurityToken.
public override Microsoft.IdentityModel.Tokens.SecurityToken CreateToken(Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor);
override this.CreateToken : Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor -> Microsoft.IdentityModel.Tokens.SecurityToken
Public Overrides Function CreateToken (tokenDescriptor As SecurityTokenDescriptor) As SecurityToken
Parametry
- tokenDescriptor
- SecurityTokenDescriptor
Element SecurityTokenDescriptor zawierający informacje o tworzeniu.
Zwraca
SecurityToken Instancja.
Wyjątki
Jeśli tokenDescriptor wartość ma wartość null.
Dotyczy
CreateToken(SecurityTokenDescriptor, AuthenticationInformation)
Tworzy Saml2SecurityToken.
public virtual Microsoft.IdentityModel.Tokens.SecurityToken CreateToken(Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor, Microsoft.IdentityModel.Tokens.Saml2.AuthenticationInformation authenticationInformation);
override this.CreateToken : Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor * Microsoft.IdentityModel.Tokens.Saml2.AuthenticationInformation -> Microsoft.IdentityModel.Tokens.SecurityToken
Public Overridable Function CreateToken (tokenDescriptor As SecurityTokenDescriptor, authenticationInformation As AuthenticationInformation) As SecurityToken
Parametry
- tokenDescriptor
- SecurityTokenDescriptor
Element SecurityTokenDescriptor zawierający informacje o tworzeniu.
- authenticationInformation
- AuthenticationInformation
dodatkowe informacje dotyczące tworzenia obiektu Saml2AuthenticationStatement.
Zwraca
SecurityToken Instancja.
Wyjątki
Jeśli tokenDescriptor wartość ma wartość null.