Package com.wowza.wms.dvr
Interface IDvrEncryptionInfo
- All Superinterfaces:
Cloneable
- All Known Implementing Classes:
CencInfo
Interface for persisting encryption information for DVR.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Common Encryption encryption type.static final int
Cupertino AES encryption type.static final int
Playready encryption type. -
Method Summary
Modifier and TypeMethodDescriptionclone()
int
Serialize encryption info.int
Return number of bytes required to serialize this encryption info.byte[]
Serialize the encryption info, returning a byte buffer containing the serialized data.int
serialize
(byte[] buffer, int pos) Serialize the encryption info into buffer starting at position 'pos'.
-
Field Details
-
ENCRYPTION_TYPE_CUPERTINO
static final int ENCRYPTION_TYPE_CUPERTINOCupertino AES encryption type.- See Also:
-
ENCRYPTION_TYPE_PLAYREADY
static final int ENCRYPTION_TYPE_PLAYREADYPlayready encryption type.- See Also:
-
ENCRYPTION_TYPE_CENC
static final int ENCRYPTION_TYPE_CENCCommon Encryption encryption type.- See Also:
-
-
Method Details
-
getSerializeSize
int getSerializeSize()Return number of bytes required to serialize this encryption info.- Returns:
- number of bytes to serialize.
-
getEncryptionType
int getEncryptionType()Serialize encryption info.The encryption should consist of the following:
- version (1 byte)
- encryption type (1 byte)
- length of 'blob' (2 bytes)
- byte blob (n bytes)
- Returns:
- encryption type (constants defined in this class)
-
serialize
int serialize(byte[] buffer, int pos) Serialize the encryption info into buffer starting at position 'pos'.- Parameters:
buffer
- buffer to serialize topos
- position to start serializing- Returns:
- new position into buffer
-
serialize
byte[] serialize()Serialize the encryption info, returning a byte buffer containing the serialized data.- Returns:
- byte buffer of serialized data
-
clone
- Throws:
CloneNotSupportedException
-