SamlSecurityTokenAuthenticator.ValidateAudienceRestriction Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- audienceRestrictionCondition
- SamlAudienceRestrictionCondition
A SamlAudienceRestrictionCondition that specifies the set of target Web services for which the SamlSecurityToken security token is intended.
true
if the Audiences property of the audienceRestrictionCondition
parameter is in the AllowedAudienceUris collection; otherwise, false
.
The ValidateAudienceRestriction method is called by the ValidateTokenCore method when the AudienceUriMode property is set to Always or BearerKeyOnly.
Продукт | Версії |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Відгук про .NET
.NET – це проект із відкритим кодом. Виберіть посилання, щоб надати відгук: