Επεξεργασία

Κοινή χρήση μέσω


SamlAudienceRestrictionCondition Class

Definition

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

public ref class SamlAudienceRestrictionCondition : System::IdentityModel::Tokens::SamlCondition
public class SamlAudienceRestrictionCondition : System.IdentityModel.Tokens.SamlCondition
type SamlAudienceRestrictionCondition = class
    inherit SamlCondition
Public Class SamlAudienceRestrictionCondition
Inherits SamlCondition
Inheritance
SamlAudienceRestrictionCondition

Remarks

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(IEnumerable<Uri>) constructor that accepts a set of audiences. To get the set of intended audiences, access the Audiences property.

Constructors

SamlAudienceRestrictionCondition()

Initializes a new instance of the SamlAudienceRestrictionCondition class.

SamlAudienceRestrictionCondition(IEnumerable<Uri>)

Initializes a new instance of the SamlAudienceRestrictionCondition class with the specified set of audiences a SAML assertion is intended for.

Properties

Audiences

Gets the set of audiences a SAML assertion is intended for.

IsReadOnly

Gets a value that indicates whether the properties of this instance are read-only.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MakeReadOnly()

Causes this instance to be read-only.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ReadXml(XmlDictionaryReader, SamlSerializer, SecurityTokenSerializer, SecurityTokenResolver)

Reads the <AudienceRestrictionCondition> element from the specified XML reader.

ToString()

Returns a string that represents the current object.

(Inherited from Object)
WriteXml(XmlDictionaryWriter, SamlSerializer, SecurityTokenSerializer)

Writes the <AudienceRestrictionCondition> element into the specified XML serializer.

Applies to

See also