Share via


ContentKeyPolicyTokenRestriction Constructor

Definition

Initializes a new instance of ContentKeyPolicyTokenRestriction.

public ContentKeyPolicyTokenRestriction (string issuer, string audience, Azure.ResourceManager.Media.Models.ContentKeyPolicyRestrictionTokenKey primaryVerificationKey, Azure.ResourceManager.Media.Models.ContentKeyPolicyRestrictionTokenType restrictionTokenType);
new Azure.ResourceManager.Media.Models.ContentKeyPolicyTokenRestriction : string * string * Azure.ResourceManager.Media.Models.ContentKeyPolicyRestrictionTokenKey * Azure.ResourceManager.Media.Models.ContentKeyPolicyRestrictionTokenType -> Azure.ResourceManager.Media.Models.ContentKeyPolicyTokenRestriction
Public Sub New (issuer As String, audience As String, primaryVerificationKey As ContentKeyPolicyRestrictionTokenKey, restrictionTokenType As ContentKeyPolicyRestrictionTokenType)

Parameters

issuer
String

The token issuer.

audience
String

The audience for the token.

primaryVerificationKey
ContentKeyPolicyRestrictionTokenKey

The primary verification key. Please note ContentKeyPolicyRestrictionTokenKey is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ContentKeyPolicyRsaTokenKey, ContentKeyPolicySymmetricTokenKey and ContentKeyPolicyX509CertificateTokenKey.

restrictionTokenType
ContentKeyPolicyRestrictionTokenType

The type of token.

Exceptions

issuer or audience is null.

Applies to