Επεξεργασία

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


SamlSecurityTokenAuthenticator.ValidateAudienceRestriction Method

Definition

Validates that the SamlSecurityToken security token was intended for this Web service.

protected:
 virtual bool ValidateAudienceRestriction(System::IdentityModel::Tokens::SamlAudienceRestrictionCondition ^ audienceRestrictionCondition);
protected virtual bool ValidateAudienceRestriction (System.IdentityModel.Tokens.SamlAudienceRestrictionCondition audienceRestrictionCondition);
abstract member ValidateAudienceRestriction : System.IdentityModel.Tokens.SamlAudienceRestrictionCondition -> bool
override this.ValidateAudienceRestriction : System.IdentityModel.Tokens.SamlAudienceRestrictionCondition -> bool
Protected Overridable Function ValidateAudienceRestriction (audienceRestrictionCondition As SamlAudienceRestrictionCondition) As Boolean

Parameters

audienceRestrictionCondition
SamlAudienceRestrictionCondition

A SamlAudienceRestrictionCondition that specifies the set of target Web services for which the SamlSecurityToken security token is intended.

Returns

true if the Audiences property of the audienceRestrictionCondition parameter is in the AllowedAudienceUris collection; otherwise, false.

Remarks

The ValidateAudienceRestriction method is called by the ValidateTokenCore method when the AudienceUriMode property is set to Always or BearerKeyOnly.

Applies to