public class PlayReadyDrm extends Object implements Serializable, Cloneable
The PlayReady DRM settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.
PlayReady DRM encrypts your media files using AES-CTR
encryption.
If you use DRM for an HLSv3
playlist, your outputs must
have a master playlist.
Constructor and Description |
---|
PlayReadyDrm() |
Modifier and Type | Method and Description |
---|---|
PlayReadyDrm |
clone() |
boolean |
equals(Object obj) |
String |
getFormat()
The type of DRM, if any, that you want Elastic Transcoder to apply to
the output files associated with this playlist.
|
String |
getInitializationVector()
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.
|
String |
getKey()
The DRM key for your file, provided by your DRM license provider.
|
String |
getKeyId()
The ID for your DRM key, so that your DRM license provider knows which
key to provide.
|
String |
getKeyMd5()
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.
|
String |
getLicenseAcquisitionUrl()
The location of the license key required to play DRM content.
|
int |
hashCode() |
void |
setFormat(String format)
The type of DRM, if any, that you want Elastic Transcoder to apply to
the output files associated with this playlist.
|
void |
setInitializationVector(String initializationVector)
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.
|
void |
setKey(String key)
The DRM key for your file, provided by your DRM license provider.
|
void |
setKeyId(String keyId)
The ID for your DRM key, so that your DRM license provider knows which
key to provide.
|
void |
setKeyMd5(String keyMd5)
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.
|
void |
setLicenseAcquisitionUrl(String licenseAcquisitionUrl)
The location of the license key required to play DRM content.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PlayReadyDrm |
withFormat(String format)
The type of DRM, if any, that you want Elastic Transcoder to apply to
the output files associated with this playlist.
|
PlayReadyDrm |
withInitializationVector(String initializationVector)
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.
|
PlayReadyDrm |
withKey(String key)
The DRM key for your file, provided by your DRM license provider.
|
PlayReadyDrm |
withKeyId(String keyId)
The ID for your DRM key, so that your DRM license provider knows which
key to provide.
|
PlayReadyDrm |
withKeyMd5(String keyMd5)
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.
|
PlayReadyDrm |
withLicenseAcquisitionUrl(String licenseAcquisitionUrl)
The location of the license key required to play DRM content.
|
public String getFormat()
Constraints:
Pattern: (^microsoft$)|(^discretix-3.0$)
public void setFormat(String format)
Constraints:
Pattern: (^microsoft$)|(^discretix-3.0$)
format
- The type of DRM, if any, that you want Elastic Transcoder to apply to
the output files associated with this playlist.public PlayReadyDrm withFormat(String format)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: (^microsoft$)|(^discretix-3.0$)
format
- The type of DRM, if any, that you want Elastic Transcoder to apply to
the output files associated with this playlist.public String getKey()
128
,
192
, or 256
.
The key must also be encrypted by using AWS KMS.
Constraints:
Pattern: (^(?:[A-Za-z0-9\+/]{4})*(?:[A-Za-z0-9\+/]{2}==|[A-Za-z0-9\+/]{3}=)?$)
128
,
192
, or 256
.
The key must also be encrypted by using AWS KMS.
public void setKey(String key)
128
,
192
, or 256
.
The key must also be encrypted by using AWS KMS.
Constraints:
Pattern: (^(?:[A-Za-z0-9\+/]{4})*(?:[A-Za-z0-9\+/]{2}==|[A-Za-z0-9\+/]{3}=)?$)
key
- 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.
public PlayReadyDrm withKey(String key)
128
,
192
, or 256
.
The key must also be encrypted by using AWS KMS.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: (^(?:[A-Za-z0-9\+/]{4})*(?:[A-Za-z0-9\+/]{2}==|[A-Za-z0-9\+/]{3}=)?$)
key
- 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.
public String getKeyMd5()
Constraints:
Pattern: (^(?:[A-Za-z0-9\+/]{4})*(?:[A-Za-z0-9\+/]{2}==|[A-Za-z0-9\+/]{3}=)?$)
public void setKeyMd5(String keyMd5)
Constraints:
Pattern: (^(?:[A-Za-z0-9\+/]{4})*(?:[A-Za-z0-9\+/]{2}==|[A-Za-z0-9\+/]{3}=)?$)
keyMd5
- 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.public PlayReadyDrm withKeyMd5(String keyMd5)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: (^(?:[A-Za-z0-9\+/]{4})*(?:[A-Za-z0-9\+/]{2}==|[A-Za-z0-9\+/]{3}=)?$)
keyMd5
- 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.public String getKeyId()
The key ID must be provided in big endian, and Elastic Transcoder will convert 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.
Constraints:
Pattern: (^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$)|(^[0-9A-Fa-f]{32}$)
The key ID must be provided in big endian, and Elastic Transcoder will convert 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.
public void setKeyId(String keyId)
The key ID must be provided in big endian, and Elastic Transcoder will convert 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.
Constraints:
Pattern: (^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$)|(^[0-9A-Fa-f]{32}$)
keyId
- 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 will convert 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.
public PlayReadyDrm withKeyId(String keyId)
The key ID must be provided in big endian, and Elastic Transcoder will convert 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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: (^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$)|(^[0-9A-Fa-f]{32}$)
keyId
- 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 will convert 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.
public String getInitializationVector()
Constraints:
Length: 0 - 255
public void setInitializationVector(String initializationVector)
Constraints:
Length: 0 - 255
initializationVector
- 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.public PlayReadyDrm withInitializationVector(String initializationVector)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 255
initializationVector
- 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.public String getLicenseAcquisitionUrl()
Constraints:
Length: 1 - 512
public void setLicenseAcquisitionUrl(String licenseAcquisitionUrl)
Constraints:
Length: 1 - 512
licenseAcquisitionUrl
- 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:
public PlayReadyDrm withLicenseAcquisitionUrl(String licenseAcquisitionUrl)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
licenseAcquisitionUrl
- 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:
public String toString()
toString
in class Object
Object.toString()
public PlayReadyDrm clone()
Copyright © 2015. All rights reserved.