Прочетете на английски Редактиране

Споделяне чрез


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.

C#
public Saml2SecurityTokenHandler();

Remarks

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

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Saml2SecurityTokenHandler(SamlSecurityTokenRequirement)

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

C#
public Saml2SecurityTokenHandler(System.IdentityModel.Tokens.SamlSecurityTokenRequirement 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

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1