Muokkaa

Jaa


SamlSecurityTokenRequirement.ValidateAudienceRestriction Method

Definition

Checks the specified list of Audience URIs with the AllowedAudienceUri list.

public:
 virtual void ValidateAudienceRestriction(System::Collections::Generic::IList<Uri ^> ^ allowedAudienceUris, System::Collections::Generic::IList<Uri ^> ^ tokenAudiences);
public virtual void ValidateAudienceRestriction (System.Collections.Generic.IList<Uri> allowedAudienceUris, System.Collections.Generic.IList<Uri> tokenAudiences);
abstract member ValidateAudienceRestriction : System.Collections.Generic.IList<Uri> * System.Collections.Generic.IList<Uri> -> unit
override this.ValidateAudienceRestriction : System.Collections.Generic.IList<Uri> * System.Collections.Generic.IList<Uri> -> unit
Public Overridable Sub ValidateAudienceRestriction (allowedAudienceUris As IList(Of Uri), tokenAudiences As IList(Of Uri))

Parameters

allowedAudienceUris
IList<Uri>

Collection of AudienceUris.

tokenAudiences
IList<Uri>

Collection of audience URIs the token applies to.

Exceptions

allowedAudienceUris is null.

-or-

tokenAudiences is null.

tokenAudiences is an empty collection.

-or-

allowedAudienceUris is an empty collection.

-or-

Validation fails.

Applies to