Interface IDvrEncryptionInfo

  • All Superinterfaces:
    Cloneable
    All Known Implementing Classes:
    CencInfo

    public interface IDvrEncryptionInfo
    extends Cloneable
    Interface for persisting encryption information for DVR.
    • 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 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

        Object clone()
              throws CloneNotSupportedException
        Throws:
        CloneNotSupportedException