Class CommonEncryptionCenc
java.lang.Object
com.azure.resourcemanager.mediaservices.models.CommonEncryptionCenc
Class for envelope encryption scheme.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the clearKeyEncryptionConfiguration property: Optional configuration supporting ClearKey in CommonEncryptionCenc encryption scheme.Get 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.drm()
Get the drm property: Configuration of DRMs for CommonEncryptionCenc encryption scheme.Get the enabledProtocols property: Representing supported protocols.void
validate()
Validates the instance.withClearKeyEncryptionConfiguration
(ClearKeyEncryptionConfiguration clearKeyEncryptionConfiguration) Set the clearKeyEncryptionConfiguration property: Optional configuration supporting ClearKey in CommonEncryptionCenc encryption scheme.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.Set the drm property: Configuration of DRMs for CommonEncryptionCenc encryption scheme.withEnabledProtocols
(EnabledProtocols enabledProtocols) Set the enabledProtocols property: Representing supported protocols.
-
Constructor Details
-
CommonEncryptionCenc
public CommonEncryptionCenc()Creates an instance of CommonEncryptionCenc 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 CommonEncryptionCenc 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 CommonEncryptionCenc 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 CommonEncryptionCenc object itself.
-
drm
Get the drm property: Configuration of DRMs for CommonEncryptionCenc encryption scheme.- Returns:
- the drm value.
-
withDrm
Set the drm property: Configuration of DRMs for CommonEncryptionCenc encryption scheme.- Parameters:
drm
- the drm value to set.- Returns:
- the CommonEncryptionCenc object itself.
-
clearKeyEncryptionConfiguration
Get the clearKeyEncryptionConfiguration property: Optional configuration supporting ClearKey in CommonEncryptionCenc encryption scheme.- Returns:
- the clearKeyEncryptionConfiguration value.
-
withClearKeyEncryptionConfiguration
public CommonEncryptionCenc withClearKeyEncryptionConfiguration(ClearKeyEncryptionConfiguration clearKeyEncryptionConfiguration) Set the clearKeyEncryptionConfiguration property: Optional configuration supporting ClearKey in CommonEncryptionCenc encryption scheme.- Parameters:
clearKeyEncryptionConfiguration
- the clearKeyEncryptionConfiguration value to set.- Returns:
- the CommonEncryptionCenc object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-