Saml2SecurityTokenHandler.CreateToken Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateToken(SecurityTokenDescriptor) |
Creates a Saml2SecurityToken. |
CreateToken(SecurityTokenDescriptor, AuthenticationInformation) |
Creates a Saml2SecurityToken. |
CreateToken(SecurityTokenDescriptor)
Creates a 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
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 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
Parameters
- tokenDescriptor
- SecurityTokenDescriptor
The SecurityTokenDescriptor that has creation information.
- authenticationInformation
- AuthenticationInformation
additional information for creating a Saml2AuthenticationStatement.
Returns
A SecurityToken instance.
Exceptions
If tokenDescriptor
is null.