public final class TrackEncryptionBox
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
TrackOutput.CryptoData |
cryptoData
A
TrackOutput.CryptoData instance containing the encryption information from this
TrackEncryptionBox. |
byte[] |
defaultInitializationVector
If
initializationVectorSize is 0, holds the default initialization vector as defined
in the track encryption box or sample group description box. |
int |
initializationVectorSize
The initialization vector size in bytes for the samples in the corresponding sample group.
|
boolean |
isEncrypted
Indicates the encryption state of the samples in the sample group.
|
java.lang.String |
schemeType
The protection scheme type, as defined by the 'schm' box, or null if unknown.
|
| Constructor and Description |
|---|
TrackEncryptionBox(boolean isEncrypted,
java.lang.String schemeType,
int initializationVectorSize,
byte[] keyId,
int defaultEncryptedBlocks,
int defaultClearBlocks,
byte[] defaultInitializationVector) |
public final boolean isEncrypted
@Nullable public final java.lang.String schemeType
public final TrackOutput.CryptoData cryptoData
TrackOutput.CryptoData instance containing the encryption information from this
TrackEncryptionBox.public final int initializationVectorSize
public final byte[] defaultInitializationVector
initializationVectorSize is 0, holds the default initialization vector as defined
in the track encryption box or sample group description box. Null otherwise.public TrackEncryptionBox(boolean isEncrypted,
@Nullable
java.lang.String schemeType,
int initializationVectorSize,
byte[] keyId,
int defaultEncryptedBlocks,
int defaultClearBlocks,
@Nullable
byte[] defaultInitializationVector)
isEncrypted - See isEncrypted.schemeType - See schemeType.initializationVectorSize - See initializationVectorSize.keyId - See TrackOutput.CryptoData#encryptionKey.defaultEncryptedBlocks - See TrackOutput.CryptoData#encryptedBlocks.defaultClearBlocks - See TrackOutput.CryptoData#clearBlocks.defaultInitializationVector - See defaultInitializationVector.