Maven module :un.storage : media-mpeg4 :
Class : un.storage.media.mp4.boxes.impl.oma.OMACommonHeadersBox
Extends/Implements : un.storage.media.mp4.boxes.FullBox
Subclasses : -

author  Alexander Simm


Variables : -
Functions : OMACommonHeadersBox, decode, getEncryptionMethod, getPaddingScheme, getPlaintextLength, getContentID, getRightsIssuerURL, getTextualHeaders



public void OMACommonHeadersBox ()

public void decode (MP4InputStream in)


The encryption method defines how the encrypted content can be decrypted.
Values for the field are defined in the following table:






ValueAlgorithm
0no encryption used
1AES_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
2AES_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.


@return the encryption method
public int getEncryptionMethod ()


The padding scheme defines how the last block of ciphertext is padded.
Values of the padding scheme field are defined in the following table:





ValuePadding scheme
0No padding (e.g. when using NULL or CTR algorithm)
1Padding according to RFC 2630


@return the padding scheme
public int getPaddingScheme ()

public long getPlaintextLength ()

public byte[] getContentID ()

public byte[] getRightsIssuerURL ()

public Map getTextualHeaders ()