Språk

SamlSecurityTokenHandler.CreateToken Metod

Definition

Överlagringar

Name Description
CreateToken(SecurityTokenDescriptor)

Skapar en SamlSecurityToken baserat på en information som finns i SecurityTokenDescriptor.

CreateToken(SecurityTokenDescriptor, AuthenticationInformation)

Skapar en SamlSecurityToken baserat på en information som finns i SecurityTokenDescriptor.

CreateToken(SecurityTokenDescriptor)

Skapar en SamlSecurityToken baserat på en information som finns i SecurityTokenDescriptor.

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 SamlSecurityToken baserat på en information som finns i SecurityTokenDescriptor.

public virtual Microsoft.IdentityModel.Tokens.SecurityToken CreateToken(Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor, Microsoft.IdentityModel.Tokens.Saml.AuthenticationInformation authenticationInformation);
override this.CreateToken : Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor * Microsoft.IdentityModel.Tokens.Saml.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 SamlAuthenticationStatement.

Returer

En SecurityToken instans.

Undantag

Om tokenDescriptor är null.

Gäller för