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 HAProxyTLV
HAProxyTLV.TypeModifier and TypeClassDescriptionstatic enumThe registered types a TLV can have regarding the PROXY protocol 1.5 spec -
Constructor Summary
ConstructorsConstructorDescriptionHAProxySSLTLV(int verify, byte clientBitField, List<HAProxyTLV> tlvs) Creates a new HAProxySSLTLV -
Method Summary
Modifier and TypeMethodDescriptionbyteclient()Returns the client bit fieldReturns an unmodifiable Set of encapsulatedHAProxyTLVs.booleanReturnstrueif the bit field for PP2_CLIENT_CERT_CONN was setbooleanReturnstrueif the bit field for PP2_CLIENT_CERT_SESS was setbooleanReturnstrueif the bit field for PP2_CLIENT_SSL was settoString()intverify()Returns the verification resultMethods inherited from class HAProxyTLV
copy, duplicate, replace, retain, retain, retainedDuplicate, touch, touch, type, typeByteValueModifier and TypeMethodDescriptioncopy()Creates a deep copy of thisByteBufHolder.Duplicates thisByteBufHolder.Returns a newByteBufHolderwhich contains the specifiedcontent.retain()Increases the reference count by1.retain(int increment) Increases the reference count by the specifiedincrement.Duplicates thisByteBufHolder.touch()Records the current access location of this object for debugging purposes.Records the current access location of this object with an additional arbitrary information for debugging purposes.type()Returns theHAProxyTLV.Typeof this TLVbyteReturns the type of the TLV as byteMethods inherited from class DefaultByteBufHolder
content, contentToString, equals, hashCode, refCnt, release, releaseModifier and TypeMethodDescriptioncontent()Return the data which is held by thisByteBufHolder.protected final StringReturnByteBuf.toString()without checking the reference count first.booleanThis implementation of theequalsoperation is restricted to work only with instances of the same class.inthashCode()intrefCnt()Returns the reference count of this object.booleanrelease()Decreases the reference count by1and deallocates this object if the reference count reaches at0.booleanrelease(int decrement) Decreases the reference count by the specifieddecrementand deallocates this object if the reference count reaches at0.
-
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 encapsulatedHAProxyTLVs
-
-
Method Details
-
isPP2ClientCertConn
public boolean isPP2ClientCertConn()Returnstrueif the bit field for PP2_CLIENT_CERT_CONN was set -
isPP2ClientSSL
public boolean isPP2ClientSSL()Returnstrueif the bit field for PP2_CLIENT_SSL was set -
isPP2ClientCertSess
public boolean isPP2ClientCertSess()Returnstrueif 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 encapsulatedHAProxyTLVs. -
toString
- Overrides:
toStringin classHAProxyTLV
-