Constructor and Description |
---|
OMACommonHeadersBox() |
Modifier and Type | Method and Description |
---|---|
void |
decode(MP4InputStream in)
Decodes the given input stream by reading this box and all of its
children (if any).
|
byte[] |
getContentID() |
int |
getEncryptionMethod()
The encryption method defines how the encrypted content can be decrypted.
|
int |
getPaddingScheme()
The padding scheme defines how the last block of ciphertext is padded.
|
long |
getPlaintextLength() |
byte[] |
getRightsIssuerURL() |
java.util.Map<java.lang.String,java.lang.String> |
getTextualHeaders() |
getChild, getChildren, getChildren, getLeft, getName, getOffset, getParent, getSize, getType, hasChild, hasChildren, readChildren, readChildren, setParams, toString
public void decode(MP4InputStream in) throws java.io.IOException
BoxImpl
public int getEncryptionMethod()
Value | Algorithm |
---|---|
0 | no encryption used |
1 | AES_128_CBC: AES symmetric encryption as defined by NIST. 128 bit keys, Cipher block chaining mode (CBC). For the first block a 128-bit initialisation vector (IV) is used. For DCF files, the IV is included in the OMADRMData as a prefix of the encrypted data. For non-streamable PDCF files, the IV is included in the IV field of the OMAAUHeader and the IVLength field in the OMAAUFormatBox MUST be set to 16. Padding according to RFC 2630 |
2 | AES_128_CTR: AES symmetric encryption as defined by NIST. 128 bit keys, Counter mode (CTR). The counter block has a length of 128 bits. For DCF files, the initial counter value is included in the OMADRMData as a prefix of the encrypted data. For non-streamable PDCF files, the initial counter value is included in the IV field of the OMAAUHeader and the IVLength field in the OMAAUFormatBox MUST be set to 16. For each cipherblock the counter is incremented by 1 (modulo 2128). No padding. |
public int getPaddingScheme()
Value | Padding scheme |
---|---|
0 | No padding (e.g. when using NULL or CTR algorithm) |
1 | Padding according to RFC 2630 |
public long getPlaintextLength()
public byte[] getContentID()
public byte[] getRightsIssuerURL()
public java.util.Map<java.lang.String,java.lang.String> getTextualHeaders()