Saml2SecurityTokenHandler.CreateToken Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Överlagringar
| Name | Description |
|---|---|
| CreateToken(SecurityTokenDescriptor) |
Skapar en Saml2SecurityToken. |
| CreateToken(SecurityTokenDescriptor, AuthenticationInformation) |
Skapar en Saml2SecurityToken. |
CreateToken(SecurityTokenDescriptor)
Skapar en 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
Parametrar
- tokenDescriptor
- SecurityTokenDescriptor
Den SecurityTokenDescriptor som har information om att skapa.
Returer
En SecurityToken instans.
Undantag
Om tokenDescriptor är null.
Gäller för
CreateToken(SecurityTokenDescriptor, AuthenticationInformation)
Skapar en 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
Parametrar
- tokenDescriptor
- SecurityTokenDescriptor
Den SecurityTokenDescriptor som har information om att skapa.
- authenticationInformation
- AuthenticationInformation
ytterligare information för att skapa en Saml2AuthenticationStatement.
Returer
En SecurityToken instans.
Undantag
Om tokenDescriptor är null.