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 final int
    Common Encryption encryption type.
    static final int
    Cupertino AES encryption type.
    static final int
    Playready encryption type.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    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_CUPERTINO
      Cupertino AES encryption type.
      See Also:
    • ENCRYPTION_TYPE_PLAYREADY

      static final int ENCRYPTION_TYPE_PLAYREADY
      Playready encryption type.
      See Also:
    • ENCRYPTION_TYPE_CENC

      static final int ENCRYPTION_TYPE_CENC
      Common 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 to
      pos - 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