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 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

      public ContentKeyPolicyX509CertificateTokenKey withRawBody(byte[] rawBody)
      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 class ContentKeyPolicyRestrictionTokenKey
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.