Språk

Saml2SecurityTokenHandler.CreateToken Metod

Definition

Överlagringar

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.

Gäller för