Muokkaa

Jaa


Saml2SecurityTokenHandler.ValidateConditions(Saml2Conditions, Boolean) Method

Definition

Validates the specified Saml2Conditions object.

protected:
 virtual void ValidateConditions(System::IdentityModel::Tokens::Saml2Conditions ^ conditions, bool enforceAudienceRestriction);
protected virtual void ValidateConditions (System.IdentityModel.Tokens.Saml2Conditions conditions, bool enforceAudienceRestriction);
abstract member ValidateConditions : System.IdentityModel.Tokens.Saml2Conditions * bool -> unit
override this.ValidateConditions : System.IdentityModel.Tokens.Saml2Conditions * bool -> unit
Protected Overridable Sub ValidateConditions (conditions As Saml2Conditions, enforceAudienceRestriction As Boolean)

Parameters

conditions
Saml2Conditions

The SAML 2.0 condition to be validated.

enforceAudienceRestriction
Boolean

true to check for Audience Restriction condition.

Remarks

Throws an appropriate exception if the condition is not valid. The token may not be valid for a number of reasons. For example, the current time may not be within the token's validity period, the token may contain data that is contradictory or not valid, or the token may contain unsupported SAML 2.0 elements.

Applies to