Class ContentKeyPolicySymmetricTokenKey

java.lang.Object
com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyRestrictionTokenKey
com.azure.resourcemanager.mediaservices.models.ContentKeyPolicySymmetricTokenKey

public final class ContentKeyPolicySymmetricTokenKey extends ContentKeyPolicyRestrictionTokenKey
Specifies a symmetric key for token validation.
  • Constructor Details

    • ContentKeyPolicySymmetricTokenKey

      public ContentKeyPolicySymmetricTokenKey()
      Creates an instance of ContentKeyPolicySymmetricTokenKey class.
  • Method Details

    • keyValue

      public byte[] keyValue()
      Get the keyValue property: The key value of the key.
      Returns:
      the keyValue value.
    • withKeyValue

      public ContentKeyPolicySymmetricTokenKey withKeyValue(byte[] keyValue)
      Set the keyValue property: The key value of the key.
      Parameters:
      keyValue - the keyValue value to set.
      Returns:
      the ContentKeyPolicySymmetricTokenKey object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ContentKeyPolicyRestrictionTokenKey
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.