Saml2SecurityTokenHandler.ValidateConditions Method

Definition

Validates the Lifetime and Audience conditions.

protected virtual void ValidateConditions (Microsoft.IdentityModel.Tokens.Saml2.Saml2SecurityToken samlToken, Microsoft.IdentityModel.Tokens.TokenValidationParameters validationParameters);
abstract member ValidateConditions : Microsoft.IdentityModel.Tokens.Saml2.Saml2SecurityToken * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> unit
override this.ValidateConditions : Microsoft.IdentityModel.Tokens.Saml2.Saml2SecurityToken * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> unit
Protected Overridable Sub ValidateConditions (samlToken As Saml2SecurityToken, validationParameters As TokenValidationParameters)

Parameters

samlToken
Saml2SecurityToken

a Saml2SecurityToken that contains the Saml2Conditions.

validationParameters
TokenValidationParameters

The TokenValidationParameters to be used for validating the token.

Exceptions

If samlToken.Assertion' is null.

if the Condition 'ProxyRestriction' is specified. Requires overriding.

Applies to