SamlSecurityTokenHandler.CreateAttributeStatement Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates SamlAttributeStatements and adds them to a collection. Override this method to provide a custom implementation.
Default behavior is to create a new SamlAttributeStatement for each Subject in the tokenDescriptor.Subjects collection.
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
Parameters
- subject
- SamlSubject
The SamlSubject to use in the SamlAttributeStatement that are created.
- tokenDescriptor
- SecurityTokenDescriptor
Contains all the other information that is used in token issuance.
Returns
SamlAttributeStatement
Exceptions
if tokenDescriptor
is null.