Class ContentKeyPolicyRsaTokenKey

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

public final class ContentKeyPolicyRsaTokenKey extends ContentKeyPolicyRestrictionTokenKey
Specifies a RSA key for token validation.
  • Constructor Details

    • ContentKeyPolicyRsaTokenKey

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

    • exponent

      public byte[] exponent()
      Get the exponent property: The RSA Parameter exponent.
      Returns:
      the exponent value.
    • withExponent

      public ContentKeyPolicyRsaTokenKey withExponent(byte[] exponent)
      Set the exponent property: The RSA Parameter exponent.
      Parameters:
      exponent - the exponent value to set.
      Returns:
      the ContentKeyPolicyRsaTokenKey object itself.
    • modulus

      public byte[] modulus()
      Get the modulus property: The RSA Parameter modulus.
      Returns:
      the modulus value.
    • withModulus

      public ContentKeyPolicyRsaTokenKey withModulus(byte[] modulus)
      Set the modulus property: The RSA Parameter modulus.
      Parameters:
      modulus - the modulus value to set.
      Returns:
      the ContentKeyPolicyRsaTokenKey object itself.
    • validate

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