Edit

Share via


SamlSecurityTokenHandler.ValidateConditions(SamlConditions, Boolean) Method

Definition

Validates the specified SamlConditions object.

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

Parameters

conditions
SamlConditions

The SAML 1.1 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 1.1 elements.

Applies to