Bagikan melalui


SamlSecurityTokenAuthenticator.ValidateAudienceRestriction Metode

Definisi

Memvalidasi bahwa SamlSecurityToken token keamanan ditujukan untuk layanan Web ini.

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

Parameter

audienceRestrictionCondition
SamlAudienceRestrictionCondition

SamlAudienceRestrictionCondition yang menentukan set layanan Web target tempat SamlSecurityToken token keamanan dimaksudkan.

Mengembalikan

trueAudiences jika properti audienceRestrictionCondition parameter ada dalam AllowedAudienceUris koleksi; jika tidak, false.

Keterangan

Metode ValidateAudienceRestriction ini dipanggil oleh ValidateTokenCore metode ketika AudienceUriMode properti diatur ke Always atau BearerKeyOnly.

Berlaku untuk