Top Description Fields Constructors Methods
io.netty.handler.codec.haproxy

public final Class HAProxySSLTLV

extends HAProxyTLV
Class Inheritance
Imports
io.netty.buffer.ByteBuf, .Unpooled, io.netty.util.internal.StringUtil, java.util.Collections, .List

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 Summary

Modifier and TypeField and Description
private final byte
private final List<HAProxyTLV>
private final int

Constructor Summary

AccessConstructor and Description
public
HAProxySSLTLV(final int
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)
verify
,
final byte
the bitfield with client information
clientBitField
,
final List<HAProxyTLV>
the encapsulated HAProxyTLVs
tlvs
)

Creates a new HAProxySSLTLV

pack-priv
HAProxySSLTLV(final int
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)
verify
,
final byte
the bitfield with client information
clientBitField
,
final List<HAProxyTLV>
the encapsulated HAProxyTLVs
tlvs
,
final ByteBuf
the raw TLV content
rawContent
)

Creates a new HAProxySSLTLV

Method Summary

Modifier and TypeMethod and Description
public byte
client()

Returns the client bit field

pack-priv int
public List<HAProxyTLV>
encapsulatedTLVs()

Returns an unmodifiable Set of encapsulated HAProxyTLVs.

public boolean
isPP2ClientCertConn()

Returns true if the bit field for PP2_CLIENT_CERT_CONN was set

public boolean
isPP2ClientCertSess()

Returns true if the bit field for PP2_CLIENT_CERT_SESS was set

public boolean
isPP2ClientSSL()

Returns true if the bit field for PP2_CLIENT_SSL was set

public String
toString()

Overrides io.netty.handler.codec.haproxy.HAProxyTLV.toString.

Returns a string representation of the object.
public int
verify()

Returns the verification result

Inherited from io.netty.handler.codec.haproxy.HAProxyTLV:
copyduplicatereplaceretainretainretainedDuplicatetotalNumBytestouchtouchtypetypeByteValue

Field Detail

clientBitFieldback to summary
private final byte clientBitField
tlvsback to summary
private final List<HAProxyTLV> tlvs
verifyback to summary
private final int verify

Constructor Detail

HAProxySSLTLVback to summary
public HAProxySSLTLV(final int verify, final byte clientBitField, final List<HAProxyTLV> tlvs)

Creates a new HAProxySSLTLV

Parameters
verify:int

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:byte

the bitfield with client information

tlvs:List<HAProxyTLV>

the encapsulated HAProxyTLVs

HAProxySSLTLVback to summary
pack-priv HAProxySSLTLV(final int verify, final byte clientBitField, final List<HAProxyTLV> tlvs, final ByteBuf rawContent)

Creates a new HAProxySSLTLV

Parameters
verify:int

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:byte

the bitfield with client information

tlvs:List<HAProxyTLV>

the encapsulated HAProxyTLVs

rawContent:ByteBuf

the raw TLV content

Method Detail

clientback to summary
public byte client()

Returns the client bit field

contentNumBytesback to summary
pack-priv int contentNumBytes()

Overrides io.netty.handler.codec.haproxy.HAProxyTLV.contentNumBytes.

Annotations
@Override
encapsulatedTLVsback to summary
public List<HAProxyTLV> encapsulatedTLVs()

Returns an unmodifiable Set of encapsulated HAProxyTLVs.

isPP2ClientCertConnback to summary
public boolean isPP2ClientCertConn()

Returns true if the bit field for PP2_CLIENT_CERT_CONN was set

isPP2ClientCertSessback to summary
public boolean isPP2ClientCertSess()

Returns true if the bit field for PP2_CLIENT_CERT_SESS was set

isPP2ClientSSLback to summary
public boolean isPP2ClientSSL()

Returns true if the bit field for PP2_CLIENT_SSL was set

toStringback to summary
public String toString()

Overrides io.netty.handler.codec.haproxy.HAProxyTLV.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
verifyback to summary
public int verify()

Returns the verification result