Compartilhar via


SamlSecurityTokenHandler.ValidateConditions Method

Definition

Validates the Lifetime and Audience conditions.

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

Parameters

securityToken
SamlSecurityToken

a SamlSecurityToken that contains the SamlConditions.

validationParameters
TokenValidationParameters

The TokenValidationParameters to be used for validating the token.

Exceptions

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

Applies to