Class EncryptedPacket

    • Constructor Detail

      • EncryptedPacket

        private EncryptedPacket​(byte[] rawData,
                                int offset,
                                int length)
    • Method Detail

      • newPacket

        public static EncryptedPacket newPacket​(byte[] rawData,
                                                int offset,
                                                int length)
        A static factory method. This method validates the arguments by ByteArrays.validateBounds(byte[], int, int), which may throw exceptions undocumented here.
        Parameters:
        rawData - rawData
        offset - offset
        length - length
        Returns:
        a new EncryptedPacket object.
      • getBuilder

        public EncryptedPacket.Builder getBuilder()
        Description copied from interface: Packet
        Returns a new Builder object populated with this object's fields' values.
        Specified by:
        getBuilder in interface Packet
        Specified by:
        getBuilder in class AbstractPacket
        Returns:
        a new Builder object populated with this object's fields values