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