Język

SamlSecurityTokenHandler.CreateAttributeStatement Metoda

Definicja

Tworzy stan SamlAttributeStatements i dodaje je do kolekcji. Zastąpi tę metodę, aby zapewnić implementację niestandardową.

Domyślne zachowanie polega na utworzeniu nowego obiektu SamlAttributeStatement dla każdego tematu w kolekcji tokenDescriptor.Subjects.

protected virtual Microsoft.IdentityModel.Tokens.Saml.SamlAttributeStatement CreateAttributeStatement(Microsoft.IdentityModel.Tokens.Saml.SamlSubject subject, Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor);
abstract member CreateAttributeStatement : Microsoft.IdentityModel.Tokens.Saml.SamlSubject * Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor -> Microsoft.IdentityModel.Tokens.Saml.SamlAttributeStatement
override this.CreateAttributeStatement : Microsoft.IdentityModel.Tokens.Saml.SamlSubject * Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor -> Microsoft.IdentityModel.Tokens.Saml.SamlAttributeStatement
Protected Overridable Function CreateAttributeStatement (subject As SamlSubject, tokenDescriptor As SecurityTokenDescriptor) As SamlAttributeStatement

Parametry

subject
SamlSubject

Element SamlSubject do użycia w utworzonym elemecie SamlAttributeStatement.

tokenDescriptor
SecurityTokenDescriptor

Zawiera wszystkie inne informacje używane w wystawianiu tokenów.

Zwraca

Samlattributestatement

Wyjątki

jeśli tokenDescriptor ma wartość null.

Dotyczy