Class HAProxySSLTLV

All Implemented Interfaces:
ByteBufHolder, ReferenceCounted

public final class HAProxySSLTLV extends HAProxyTLV
Represents a HAProxyTLV of the type HAProxyTLV.Type.PP2_TYPE_SSL. This TLV encapsulates other TLVs and has additional information like verification information and a client bitfield.
  • Field Details

    • verify

      private final int verify
    • tlvs

      private final List<HAProxyTLV> tlvs
    • clientBitField

      private final byte clientBitField
  • Constructor Details

    • HAProxySSLTLV

      public HAProxySSLTLV(int verify, byte clientBitField, List<HAProxyTLV> tlvs)
      Creates a new HAProxySSLTLV
      Parameters:
      verify - the verification result as defined in the specification for the pp2_tlv_ssl struct (see https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt)
      clientBitField - the bitfield with client information
      tlvs - the encapsulated HAProxyTLVs
    • HAProxySSLTLV

      HAProxySSLTLV(int verify, byte clientBitField, List<HAProxyTLV> tlvs, ByteBuf rawContent)
      Creates a new HAProxySSLTLV
      Parameters:
      verify - the verification result as defined in the specification for the pp2_tlv_ssl struct (see https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt)
      clientBitField - the bitfield with client information
      tlvs - the encapsulated HAProxyTLVs
      rawContent - the raw TLV content
  • Method Details

    • isPP2ClientCertConn

      public boolean isPP2ClientCertConn()
      Returns true if the bit field for PP2_CLIENT_CERT_CONN was set
    • isPP2ClientSSL

      public boolean isPP2ClientSSL()
      Returns true if the bit field for PP2_CLIENT_SSL was set
    • isPP2ClientCertSess

      public boolean isPP2ClientCertSess()
      Returns true if the bit field for PP2_CLIENT_CERT_SESS was set
    • client

      public byte client()
      Returns the client bit field
    • verify

      public int verify()
      Returns the verification result
    • encapsulatedTLVs

      public List<HAProxyTLV> encapsulatedTLVs()
      Returns an unmodifiable Set of encapsulated HAProxyTLVs.
    • contentNumBytes

      int contentNumBytes()
      Overrides:
      contentNumBytes in class HAProxyTLV
    • toString

      public String toString()
      Overrides:
      toString in class HAProxyTLV