Class EnvelopeEncryption
java.lang.Object
com.azure.resourcemanager.mediaservices.models.EnvelopeEncryption
Class for EnvelopeEncryption encryption scheme.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the clearTracks property: Representing which tracks should not be encrypted.Get the contentKeys property: Representing default content key for each encryption scheme and separate content keys for specific tracks.Get the customKeyAcquisitionUrlTemplate property: Template for the URL of the custom service delivering keys to end user players.Get the enabledProtocols property: Representing supported protocols.void
validate()
Validates the instance.withClearTracks
(List<TrackSelection> clearTracks) Set the clearTracks property: Representing which tracks should not be encrypted.withContentKeys
(StreamingPolicyContentKeys contentKeys) Set the contentKeys property: Representing default content key for each encryption scheme and separate content keys for specific tracks.withCustomKeyAcquisitionUrlTemplate
(String customKeyAcquisitionUrlTemplate) Set the customKeyAcquisitionUrlTemplate property: Template for the URL of the custom service delivering keys to end user players.withEnabledProtocols
(EnabledProtocols enabledProtocols) Set the enabledProtocols property: Representing supported protocols.
-
Constructor Details
-
EnvelopeEncryption
public EnvelopeEncryption()Creates an instance of EnvelopeEncryption class.
-
-
Method Details
-
enabledProtocols
Get the enabledProtocols property: Representing supported protocols.- Returns:
- the enabledProtocols value.
-
withEnabledProtocols
Set the enabledProtocols property: Representing supported protocols.- Parameters:
enabledProtocols
- the enabledProtocols value to set.- Returns:
- the EnvelopeEncryption object itself.
-
clearTracks
Get the clearTracks property: Representing which tracks should not be encrypted.- Returns:
- the clearTracks value.
-
withClearTracks
Set the clearTracks property: Representing which tracks should not be encrypted.- Parameters:
clearTracks
- the clearTracks value to set.- Returns:
- the EnvelopeEncryption object itself.
-
contentKeys
Get the contentKeys property: Representing default content key for each encryption scheme and separate content keys for specific tracks.- Returns:
- the contentKeys value.
-
withContentKeys
Set the contentKeys property: Representing default content key for each encryption scheme and separate content keys for specific tracks.- Parameters:
contentKeys
- the contentKeys value to set.- Returns:
- the EnvelopeEncryption object itself.
-
customKeyAcquisitionUrlTemplate
Get the customKeyAcquisitionUrlTemplate property: Template for the URL of the custom service delivering keys to end user players. Not required when using Azure Media Services for issuing keys. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested.- Returns:
- the customKeyAcquisitionUrlTemplate value.
-
withCustomKeyAcquisitionUrlTemplate
public EnvelopeEncryption withCustomKeyAcquisitionUrlTemplate(String customKeyAcquisitionUrlTemplate) Set the customKeyAcquisitionUrlTemplate property: Template for the URL of the custom service delivering keys to end user players. Not required when using Azure Media Services for issuing keys. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested.- Parameters:
customKeyAcquisitionUrlTemplate
- the customKeyAcquisitionUrlTemplate value to set.- Returns:
- the EnvelopeEncryption object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-