#[non_exhaustive]pub struct PlayReadyDrmBuilder { /* private fields */ }
Expand description
A builder for PlayReadyDrm
.
Implementations§
source§impl PlayReadyDrmBuilder
impl PlayReadyDrmBuilder
sourcepub fn format(self, input: impl Into<String>) -> Self
pub fn format(self, input: impl Into<String>) -> Self
The type of DRM, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.
sourcepub fn set_format(self, input: Option<String>) -> Self
pub fn set_format(self, input: Option<String>) -> Self
The type of DRM, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.
sourcepub fn get_format(&self) -> &Option<String>
pub fn get_format(&self) -> &Option<String>
The type of DRM, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.
sourcepub fn key(self, input: impl Into<String>) -> Self
pub fn key(self, input: impl Into<String>) -> Self
The DRM key for your file, provided by your DRM license provider. The key must be base64-encoded, and it must be one of the following bit lengths before being base64-encoded:
128
, 192
, or 256
.
The key must also be encrypted by using AWS KMS.
sourcepub fn set_key(self, input: Option<String>) -> Self
pub fn set_key(self, input: Option<String>) -> Self
The DRM key for your file, provided by your DRM license provider. The key must be base64-encoded, and it must be one of the following bit lengths before being base64-encoded:
128
, 192
, or 256
.
The key must also be encrypted by using AWS KMS.
sourcepub fn get_key(&self) -> &Option<String>
pub fn get_key(&self) -> &Option<String>
The DRM key for your file, provided by your DRM license provider. The key must be base64-encoded, and it must be one of the following bit lengths before being base64-encoded:
128
, 192
, or 256
.
The key must also be encrypted by using AWS KMS.
sourcepub fn key_md5(self, input: impl Into<String>) -> Self
pub fn key_md5(self, input: impl Into<String>) -> Self
The MD5 digest of the key used for DRM on your file, and that you want Elastic Transcoder to use as a checksum to make sure your key was not corrupted in transit. The key MD5 must be base64-encoded, and it must be exactly 16 bytes before being base64-encoded.
sourcepub fn set_key_md5(self, input: Option<String>) -> Self
pub fn set_key_md5(self, input: Option<String>) -> Self
The MD5 digest of the key used for DRM on your file, and that you want Elastic Transcoder to use as a checksum to make sure your key was not corrupted in transit. The key MD5 must be base64-encoded, and it must be exactly 16 bytes before being base64-encoded.
sourcepub fn get_key_md5(&self) -> &Option<String>
pub fn get_key_md5(&self) -> &Option<String>
The MD5 digest of the key used for DRM on your file, and that you want Elastic Transcoder to use as a checksum to make sure your key was not corrupted in transit. The key MD5 must be base64-encoded, and it must be exactly 16 bytes before being base64-encoded.
sourcepub fn key_id(self, input: impl Into<String>) -> Self
pub fn key_id(self, input: impl Into<String>) -> Self
The ID for your DRM key, so that your DRM license provider knows which key to provide.
The key ID must be provided in big endian, and Elastic Transcoder converts it to little endian before inserting it into the PlayReady DRM headers. If you are unsure whether your license server provides your key ID in big or little endian, check with your DRM provider.
sourcepub fn set_key_id(self, input: Option<String>) -> Self
pub fn set_key_id(self, input: Option<String>) -> Self
The ID for your DRM key, so that your DRM license provider knows which key to provide.
The key ID must be provided in big endian, and Elastic Transcoder converts it to little endian before inserting it into the PlayReady DRM headers. If you are unsure whether your license server provides your key ID in big or little endian, check with your DRM provider.
sourcepub fn get_key_id(&self) -> &Option<String>
pub fn get_key_id(&self) -> &Option<String>
The ID for your DRM key, so that your DRM license provider knows which key to provide.
The key ID must be provided in big endian, and Elastic Transcoder converts it to little endian before inserting it into the PlayReady DRM headers. If you are unsure whether your license server provides your key ID in big or little endian, check with your DRM provider.
sourcepub fn initialization_vector(self, input: impl Into<String>) -> Self
pub fn initialization_vector(self, input: impl Into<String>) -> Self
The series of random bits created by a random bit generator, unique for every encryption operation, that you want Elastic Transcoder to use to encrypt your files. The initialization vector must be base64-encoded, and it must be exactly 8 bytes long before being base64-encoded. If no initialization vector is provided, Elastic Transcoder generates one for you.
sourcepub fn set_initialization_vector(self, input: Option<String>) -> Self
pub fn set_initialization_vector(self, input: Option<String>) -> Self
The series of random bits created by a random bit generator, unique for every encryption operation, that you want Elastic Transcoder to use to encrypt your files. The initialization vector must be base64-encoded, and it must be exactly 8 bytes long before being base64-encoded. If no initialization vector is provided, Elastic Transcoder generates one for you.
sourcepub fn get_initialization_vector(&self) -> &Option<String>
pub fn get_initialization_vector(&self) -> &Option<String>
The series of random bits created by a random bit generator, unique for every encryption operation, that you want Elastic Transcoder to use to encrypt your files. The initialization vector must be base64-encoded, and it must be exactly 8 bytes long before being base64-encoded. If no initialization vector is provided, Elastic Transcoder generates one for you.
sourcepub fn license_acquisition_url(self, input: impl Into<String>) -> Self
pub fn license_acquisition_url(self, input: impl Into<String>) -> Self
The location of the license key required to play DRM content. The URL must be an absolute path, and is referenced by the PlayReady header. The PlayReady header is referenced in the protection header of the client manifest for Smooth Streaming outputs, and in the EXT-X-DXDRM and EXT-XDXDRMINFO metadata tags for HLS playlist outputs. An example URL looks like this: https://www.example.com/exampleKey/
sourcepub fn set_license_acquisition_url(self, input: Option<String>) -> Self
pub fn set_license_acquisition_url(self, input: Option<String>) -> Self
The location of the license key required to play DRM content. The URL must be an absolute path, and is referenced by the PlayReady header. The PlayReady header is referenced in the protection header of the client manifest for Smooth Streaming outputs, and in the EXT-X-DXDRM and EXT-XDXDRMINFO metadata tags for HLS playlist outputs. An example URL looks like this: https://www.example.com/exampleKey/
sourcepub fn get_license_acquisition_url(&self) -> &Option<String>
pub fn get_license_acquisition_url(&self) -> &Option<String>
The location of the license key required to play DRM content. The URL must be an absolute path, and is referenced by the PlayReady header. The PlayReady header is referenced in the protection header of the client manifest for Smooth Streaming outputs, and in the EXT-X-DXDRM and EXT-XDXDRMINFO metadata tags for HLS playlist outputs. An example URL looks like this: https://www.example.com/exampleKey/
sourcepub fn build(self) -> PlayReadyDrm
pub fn build(self) -> PlayReadyDrm
Consumes the builder and constructs a PlayReadyDrm
.
Trait Implementations§
source§impl Clone for PlayReadyDrmBuilder
impl Clone for PlayReadyDrmBuilder
source§fn clone(&self) -> PlayReadyDrmBuilder
fn clone(&self) -> PlayReadyDrmBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PlayReadyDrmBuilder
impl Debug for PlayReadyDrmBuilder
source§impl Default for PlayReadyDrmBuilder
impl Default for PlayReadyDrmBuilder
source§fn default() -> PlayReadyDrmBuilder
fn default() -> PlayReadyDrmBuilder
source§impl PartialEq<PlayReadyDrmBuilder> for PlayReadyDrmBuilder
impl PartialEq<PlayReadyDrmBuilder> for PlayReadyDrmBuilder
source§fn eq(&self, other: &PlayReadyDrmBuilder) -> bool
fn eq(&self, other: &PlayReadyDrmBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.