ContentKeyPolicyTokenRestriction Constructor
Definition
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.
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
Azure SDK for .NET