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
Constructor and Description |
---|
HAProxySSLTLV(int verify,
byte clientBitField,
List<HAProxyTLV> tlvs)
Creates a new HAProxySSLTLV
|
Modifier and Type | Method and Description |
---|---|
byte |
client()
Returns the client bit field
|
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 |
String |
toString() |
int |
verify()
Returns the verification result
|
copy, duplicate, replace, retain, retain, retainedDuplicate, touch, touch, type, typeByteValue
content, contentToString, equals, hashCode, refCnt, release, release
public HAProxySSLTLV(int verify, byte clientBitField, List<HAProxyTLV> tlvs)
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 encapsulated HAProxyTLV
spublic 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 byte client()
public int verify()
public List<HAProxyTLV> encapsulatedTLVs()
HAProxyTLV
s.public String toString()
toString
in class HAProxyTLV
Copyright © 2008–2024 The Netty Project. All rights reserved.