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

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


Saml2SecurityTokenHandler.ProcessAttributeStatement Method

Definition

Creates claims from a SAML 2.0 attribute statement and adds them to the specified subject.

C#
protected virtual void ProcessAttributeStatement(System.IdentityModel.Tokens.Saml2AttributeStatement statement, System.Security.Claims.ClaimsIdentity subject, string issuer);

Parameters

statement
Saml2AttributeStatement

The Saml2AttributeStatement from which the claims are created.

subject
ClaimsIdentity

The subject to which the claims are added.

issuer
String

The issuer.

Exceptions

statement is null.

-or-

subject is null.

Remarks

The created claims are added to the subject.

Applies to

Продукт Версии
.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