SamlSecurityToken.Initialize Method (SamlAssertion)

 

Initializes the properties of the SamlSecurityToken class using the specified SAML assertion.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

protected void Initialize(
	SamlAssertion assertion
)

Parameters

assertion
Type: System.IdentityModel.Tokens.SamlAssertion

A SamlAssertion that represents the SAML assertion for this security token.

Exception Condition
ArgumentNullException

assertion is null.

The SamlSecurityToken(SamlAssertion) constructor calls the Initialize(SamlAssertion) method, which can be overridden in derived classes.

For SamlSecurityToken security tokens, the claims are specified using a SAML assertion.

.NET Framework
Available since 3.0
Return to top
Show: