Redigera

Dela via


Saml2SecurityTokenHandler Constructors

Definition

Initializes a new instance of the Saml2SecurityTokenHandler class.

Overloads

Saml2SecurityTokenHandler()

Initializes a new instance of the Saml2SecurityTokenHandler class with default security token requirements.

Saml2SecurityTokenHandler(SamlSecurityTokenRequirement)

Initializes a new instance of the Saml2SecurityTokenHandler class with the specified security token requirements.

Saml2SecurityTokenHandler()

Initializes a new instance of the Saml2SecurityTokenHandler class with default security token requirements.

public:
 Saml2SecurityTokenHandler();
public Saml2SecurityTokenHandler ();
Public Sub New ()

Remarks

The SamlSecurityTokenRequirement property is set to an instance of SamlSecurityTokenRequirement that is crated with the parameterless constructor.

Applies to

Saml2SecurityTokenHandler(SamlSecurityTokenRequirement)

Initializes a new instance of the Saml2SecurityTokenHandler class with the specified security token requirements.

public:
 Saml2SecurityTokenHandler(System::IdentityModel::Tokens::SamlSecurityTokenRequirement ^ samlSecurityTokenRequirement);
public Saml2SecurityTokenHandler (System.IdentityModel.Tokens.SamlSecurityTokenRequirement samlSecurityTokenRequirement);
new System.IdentityModel.Tokens.Saml2SecurityTokenHandler : System.IdentityModel.Tokens.SamlSecurityTokenRequirement -> System.IdentityModel.Tokens.Saml2SecurityTokenHandler
Public Sub New (samlSecurityTokenRequirement As SamlSecurityTokenRequirement)

Parameters

samlSecurityTokenRequirement
SamlSecurityTokenRequirement

The SamlSecurityTokenRequirement to be used by this instance when validating tokens. Sets the SamlSecurityTokenRequirement property.

Exceptions

samlSecurityTokenRequirement is null.

See also

Applies to