public final class HAProxySSLTLV extends HAProxyTLV
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.HAProxyTLV.Type
Modifier and Type | Field and Description |
---|---|
private byte |
clientBitField |
private java.util.List<HAProxyTLV> |
tlvs |
private int |
verify |
Constructor and Description |
---|
HAProxySSLTLV(int verify,
byte clientBitField,
java.util.List<HAProxyTLV> tlvs,
ByteBuf rawContent)
Creates a new HAProxySSLTLV
|
Modifier and Type | Method and Description |
---|---|
java.util.List<HAProxyTLV> |
encapsulatedTLVs()
Returns an unmodifiable Set of encapsulated
HAProxyTLV s. |
boolean |
isPP2ClientCertConn()
Returns
true if the bit field for PP2_CLIENT_CERT_CONN was set |
boolean |
isPP2ClientCertSess()
Returns
true if the bit field for PP2_CLIENT_CERT_SESS was set |
boolean |
isPP2ClientSSL()
Returns
true if the bit field for PP2_CLIENT_SSL was set |
int |
verify()
Returns the verification result
|
copy, duplicate, replace, retain, retain, retainedDuplicate, touch, touch, type, typeByteValue
content, contentToString, equals, hashCode, refCnt, release, release, toString
private final int verify
private final java.util.List<HAProxyTLV> tlvs
private final byte clientBitField
HAProxySSLTLV(int verify, byte clientBitField, java.util.List<HAProxyTLV> tlvs, ByteBuf rawContent)
verify
- the verification result as defined in the specification for the pp2_tlv_ssl struct (see
http://www.haproxy.org/download/1.5/doc/proxy-protocol.txt)clientBitField
- the bitfield with client informationtlvs
- the encapsulated HAProxyTLV
srawContent
- the raw TLV contentpublic boolean isPP2ClientCertConn()
true
if the bit field for PP2_CLIENT_CERT_CONN was setpublic boolean isPP2ClientSSL()
true
if the bit field for PP2_CLIENT_SSL was setpublic boolean isPP2ClientCertSess()
true
if the bit field for PP2_CLIENT_CERT_SESS was setpublic int verify()
public java.util.List<HAProxyTLV> encapsulatedTLVs()
HAProxyTLV
s.