Class PrivateHeader

java.lang.Object
org.drasyl.handler.remote.protocol.PrivateHeader

public abstract class PrivateHeader extends Object
This class models the private header of a drasyl protocol message. If the PublicHeader.getArmed() flag is set, this header is fully encrypted. The header is structured as follows:
  • Type: The 1 byte type value. Indicates the message type.
  • ArmedLength: The 2 bytes armed length value. Indicates, the length of the encrypted portion of the message without AEAD tag.