Package com.wowza.wms.dvr
Interface IDvrEncryptionInfo
-
- All Superinterfaces:
Cloneable
- All Known Implementing Classes:
CencInfo
public interface IDvrEncryptionInfo extends Cloneable
Interface for persisting encryption information for DVR.
-
-
Field Summary
Fields Modifier and Type Field Description static int
ENCRYPTION_TYPE_CENC
Common Encryption encryption type.static int
ENCRYPTION_TYPE_CUPERTINO
Cupertino AES encryption type.static int
ENCRYPTION_TYPE_PLAYREADY
Playready encryption type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
clone()
int
getEncryptionType()
Serialize encryption info.int
getSerializeSize()
Return number of bytes required to serialize this encryption info.byte[]
serialize()
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 Detail
-
ENCRYPTION_TYPE_CUPERTINO
static final int ENCRYPTION_TYPE_CUPERTINO
Cupertino AES encryption type.- See Also:
- Constant Field Values
-
ENCRYPTION_TYPE_PLAYREADY
static final int ENCRYPTION_TYPE_PLAYREADY
Playready encryption type.- See Also:
- Constant Field Values
-
ENCRYPTION_TYPE_CENC
static final int ENCRYPTION_TYPE_CENC
Common Encryption encryption type.- See Also:
- Constant Field Values
-
-
Method Detail
-
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
Object clone() throws CloneNotSupportedException
- Throws:
CloneNotSupportedException
-
-