Class ContentKeyPolicyRsaTokenKey
java.lang.Object
com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyRestrictionTokenKey
com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyRsaTokenKey
Specifies a RSA key for token validation.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ContentKeyPolicyRsaTokenKey class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
exponent()
Get the exponent property: The RSA Parameter exponent.byte[]
modulus()
Get the modulus property: The RSA Parameter modulus.void
validate()
Validates the instance.withExponent
(byte[] exponent) Set the exponent property: The RSA Parameter exponent.withModulus
(byte[] modulus) Set the modulus property: The RSA Parameter modulus.
-
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
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
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 classContentKeyPolicyRestrictionTokenKey
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-