Export (0) Print
Expand All
Expand Minimize

SamlSecurityTokenHandler.ValidateConditions Method

.NET Framework 4.5

Validates the specified SamlConditions object.

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

protected virtual void ValidateConditions(
	SamlConditions conditions,
	bool enforceAudienceRestriction
)

Parameters

conditions
Type: System.IdentityModel.Tokens.SamlConditions

The SAML 1.1 condition to be validated.

enforceAudienceRestriction
Type: System.Boolean

true to check for Audience Restriction condition.

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.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft