Partager via


SamlSecurityTokenHandler.CreateAuthenticationStatement Method

Definition

Creates a SamlAuthenticationStatement for each AuthenticationInformation found in AuthenticationInformation. Override this method to provide a custom implementation.

protected virtual Microsoft.IdentityModel.Tokens.Saml.SamlAuthenticationStatement CreateAuthenticationStatement (Microsoft.IdentityModel.Tokens.Saml.SamlSubject subject, Microsoft.IdentityModel.Tokens.Saml.AuthenticationInformation authenticationInformation);
abstract member CreateAuthenticationStatement : Microsoft.IdentityModel.Tokens.Saml.SamlSubject * Microsoft.IdentityModel.Tokens.Saml.AuthenticationInformation -> Microsoft.IdentityModel.Tokens.Saml.SamlAuthenticationStatement
override this.CreateAuthenticationStatement : Microsoft.IdentityModel.Tokens.Saml.SamlSubject * Microsoft.IdentityModel.Tokens.Saml.AuthenticationInformation -> Microsoft.IdentityModel.Tokens.Saml.SamlAuthenticationStatement
Protected Overridable Function CreateAuthenticationStatement (subject As SamlSubject, authenticationInformation As AuthenticationInformation) As SamlAuthenticationStatement

Parameters

subject
SamlSubject

The SamlSubject of the Statement.

authenticationInformation
AuthenticationInformation

Contains all the other information that is used in token issuance.

Returns

SamlAuthenticationStatement

Exceptions

if subject is null.

if Assertion has one or more AuthenticationStatement, and one of AuthenticationMethod and authenticationInstant is null.

Applies to