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
perSampleIvSize is 0, holds the default initialization vector as defined in the
track encryption box or sample group description box. |
boolean |
isEncrypted
Indicates the encryption state of the samples in the sample group.
|
int |
perSampleIvSize
The initialization vector size in bytes for the samples in the corresponding 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 perSampleIvSize,
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 perSampleIvSize
public final byte[] defaultInitializationVector
perSampleIvSize 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 perSampleIvSize,
byte[] keyId,
int defaultEncryptedBlocks,
int defaultClearBlocks,
@Nullable
byte[] defaultInitializationVector)
isEncrypted - See isEncrypted.schemeType - See schemeType.perSampleIvSize - See perSampleIvSize.keyId - See TrackOutput.CryptoData#encryptionKey.defaultEncryptedBlocks - See TrackOutput.CryptoData#encryptedBlocks.defaultClearBlocks - See TrackOutput.CryptoData#clearBlocks.defaultInitializationVector - See defaultInitializationVector.