Compartilhar via


SamlSecurityTokenHandler.CreateToken Method

Definition

Overloads

CreateToken(SecurityTokenDescriptor)

Creates a SamlSecurityToken based on a information contained in the SecurityTokenDescriptor.

CreateToken(SecurityTokenDescriptor, AuthenticationInformation)

Creates a SamlSecurityToken based on a information contained in the SecurityTokenDescriptor.

CreateToken(SecurityTokenDescriptor)

Creates a SamlSecurityToken based on a information contained in the 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

Parameters

tokenDescriptor
SecurityTokenDescriptor

The SecurityTokenDescriptor that has creation information.

Returns

A SecurityToken instance.

Exceptions

If tokenDescriptor is null.

Applies to

CreateToken(SecurityTokenDescriptor, AuthenticationInformation)

Creates a SamlSecurityToken based on a information contained in the 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

Parameters

tokenDescriptor
SecurityTokenDescriptor

The SecurityTokenDescriptor that has creation information.

authenticationInformation
AuthenticationInformation

additional information for creating the SamlAuthenticationStatement.

Returns

A SecurityToken instance.

Exceptions

If tokenDescriptor is null.

Applies to