Class ContentKeyPolicyX509CertificateTokenKey
java.lang.Object
com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyRestrictionTokenKey
com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyX509CertificateTokenKey
public final class ContentKeyPolicyX509CertificateTokenKey
extends ContentKeyPolicyRestrictionTokenKey
Specifies a certificate for token validation.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ContentKeyPolicyX509CertificateTokenKey class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
rawBody()
Get the rawBody property: The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET).void
validate()
Validates the instance.withRawBody
(byte[] rawBody) Set the rawBody property: The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET).
-
Constructor Details
-
ContentKeyPolicyX509CertificateTokenKey
public ContentKeyPolicyX509CertificateTokenKey()Creates an instance of ContentKeyPolicyX509CertificateTokenKey class.
-
-
Method Details
-
rawBody
public byte[] rawBody()Get the rawBody property: The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET).- Returns:
- the rawBody value.
-
withRawBody
Set the rawBody property: The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET).- Parameters:
rawBody
- the rawBody value to set.- Returns:
- the ContentKeyPolicyX509CertificateTokenKey object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classContentKeyPolicyRestrictionTokenKey
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-