Export (0) Print
Expand All

SamlAudienceRestrictionCondition Class

Specifies that a SAML assertion is addressed to a particular audience.

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

public class SamlAudienceRestrictionCondition : SamlCondition
public class SamlAudienceRestrictionCondition extends SamlCondition
public class SamlAudienceRestrictionCondition extends SamlCondition
Not applicable.

The SamlAudienceRestrictionCondition class corresponds to the <saml:AudienceRestrictionCondition> XML element, which is defined in the OASIS SAML 1.1 specification. The SamlAudienceRestrictionCondition is one of several SamlConditions that can be used to scope a SAML assertion

Use the SamlAudienceRestrictionCondition class to specify a SamlAssertion is intended for a specific audience and that the issuing SAML authority does not warrant the SAML assertion for other audiences that receive the security token. The claims for SamlSecurityToken security tokens are expressed as part of a SamlAssertion, which can optionally have a set of conditions affect the validity of the assertion. One of those conditions is a SamlAudienceRestrictionCondition, which specifies that the assertion is addressed to one or more specific audiences. The issuing SAML authority cannot prevent an unintended recipient from taking action on the basis of the information provided in the SAML assertion. However, the SamlAudienceRestrictionCondition class allows the SAML authority to state explicitly that no warranty is provided to such a party in a machine- and human-readable form.

To specify the set of intended audiences, use the SamlAudienceRestrictionCondition(Generic IEnumerable) constructor that accepts a set of audiences. To get the set of intended audiences, access the Audiences property.

System.Object
   System.IdentityModel.Tokens.SamlCondition
    System.IdentityModel.Tokens.SamlAudienceRestrictionCondition

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft