Package io.netty.handler.codec.haproxy
Class HAProxySSLTLV
java.lang.Object
io.netty.buffer.DefaultByteBufHolder
io.netty.handler.codec.haproxy.HAProxyTLV
io.netty.handler.codec.haproxy.HAProxySSLTLV
- All Implemented Interfaces:
ByteBufHolder
,ReferenceCounted
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.-
Nested Class Summary
Nested classes/interfaces inherited from class io.netty.handler.codec.haproxy.HAProxyTLV
HAProxyTLV.Type
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte
private final List
<HAProxyTLV> private final int
-
Constructor Summary
ConstructorsConstructorDescriptionHAProxySSLTLV
(int verify, byte clientBitField, List<HAProxyTLV> tlvs) Creates a new HAProxySSLTLVHAProxySSLTLV
(int verify, byte clientBitField, List<HAProxyTLV> tlvs, ByteBuf rawContent) Creates a new HAProxySSLTLV -
Method Summary
Modifier and TypeMethodDescriptionbyte
client()
Returns the client bit field(package private) int
Returns an unmodifiable Set of encapsulatedHAProxyTLV
s.boolean
Returnstrue
if the bit field for PP2_CLIENT_CERT_CONN was setboolean
Returnstrue
if the bit field for PP2_CLIENT_CERT_SESS was setboolean
Returnstrue
if the bit field for PP2_CLIENT_SSL was settoString()
int
verify()
Returns the verification resultMethods inherited from class io.netty.handler.codec.haproxy.HAProxyTLV
copy, duplicate, replace, retain, retain, retainedDuplicate, totalNumBytes, touch, touch, type, typeByteValue
Methods inherited from class io.netty.buffer.DefaultByteBufHolder
content, contentToString, equals, hashCode, refCnt, release, release
-
Field Details
-
verify
private final int verify -
tlvs
-
clientBitField
private final byte clientBitField
-
-
Constructor Details
-
HAProxySSLTLV
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 informationtlvs
- the encapsulatedHAProxyTLV
s
-
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 informationtlvs
- the encapsulatedHAProxyTLV
srawContent
- the raw TLV content
-
-
Method Details
-
isPP2ClientCertConn
public boolean isPP2ClientCertConn()Returnstrue
if the bit field for PP2_CLIENT_CERT_CONN was set -
isPP2ClientSSL
public boolean isPP2ClientSSL()Returnstrue
if the bit field for PP2_CLIENT_SSL was set -
isPP2ClientCertSess
public boolean isPP2ClientCertSess()Returnstrue
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
Returns an unmodifiable Set of encapsulatedHAProxyTLV
s. -
contentNumBytes
int contentNumBytes()- Overrides:
contentNumBytes
in classHAProxyTLV
-
toString
- Overrides:
toString
in classHAProxyTLV
-