java.lang.Object
java.lang.Record
io.helidon.webserver.ProxyProtocolV2Data.Tlv.Ssl
- Record Components:
client- Client flags bitfield.verify- Verification status.subTlvs- The SSL subtype TLVs.
- All Implemented Interfaces:
ProxyProtocolV2Data.Tlv
- Enclosing interface:
ProxyProtocolV2Data.Tlv
public static record ProxyProtocolV2Data.Tlv.Ssl(int client, int verify, List<ProxyProtocolV2Data.Tlv> subTlvs)
extends Record
implements ProxyProtocolV2Data.Tlv
Contains information about the SSL presented by the proxied client.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.webserver.ProxyProtocolV2Data.Tlv
ProxyProtocolV2Data.Tlv.Alpn, ProxyProtocolV2Data.Tlv.Authority, ProxyProtocolV2Data.Tlv.Crc32c, ProxyProtocolV2Data.Tlv.Netns, ProxyProtocolV2Data.Tlv.Noop, ProxyProtocolV2Data.Tlv.Ssl, ProxyProtocolV2Data.Tlv.SslCipher, ProxyProtocolV2Data.Tlv.SslCn, ProxyProtocolV2Data.Tlv.SslKeyAlg, ProxyProtocolV2Data.Tlv.SslSigAlg, ProxyProtocolV2Data.Tlv.SslVersion, ProxyProtocolV2Data.Tlv.UniqueId, ProxyProtocolV2Data.Tlv.Unregistered -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe PP2_CLIENT_CERT_CONN bitflag.static final intThe PP2_CLIENT_CERT_SESS bitflag.static final intThe PP2_CLIENT_SSL bitflag.Fields inherited from interface io.helidon.webserver.ProxyProtocolV2Data.Tlv
PP2_SUBTYPE_SSL_CIPHER, PP2_SUBTYPE_SSL_CN, PP2_SUBTYPE_SSL_KEY_ALG, PP2_SUBTYPE_SSL_SIG_ALG, PP2_SUBTYPE_SSL_VERSION, PP2_TYPE_ALPN, PP2_TYPE_AUTHORITY, PP2_TYPE_CRC32C, PP2_TYPE_NETNS, PP2_TYPE_NOOP, PP2_TYPE_SSL, PP2_TYPE_UNIQUE_ID -
Constructor Summary
ConstructorsConstructorDescriptionSsl(int client, int verify, List<ProxyProtocolV2Data.Tlv> subTlvs) Creates an instance of aSslrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintclient()Returns the value of theclientrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanTests whether the PP2_CLIENT_CERT_CONN flag is set.booleanTests whether the PP2_CLIENT_CERT_SESS flag is set.booleanTests whether the PP2_CLIENT_SSL flag is set.final inthashCode()Returns a hash code value for this object.booleanTests whether the client presented a certificate and it was successfully verified.subTlvs()Returns the value of thesubTlvsrecord component.final StringtoString()Returns a string representation of this record class.inttype()Returns the TLV's type identifier.intverify()Returns the value of theverifyrecord component.
-
Field Details
-
PP2_CLIENT_SSL
public static final int PP2_CLIENT_SSLThe PP2_CLIENT_SSL bitflag.- See Also:
-
PP2_CLIENT_CERT_CONN
public static final int PP2_CLIENT_CERT_CONNThe PP2_CLIENT_CERT_CONN bitflag.- See Also:
-
PP2_CLIENT_CERT_SESS
public static final int PP2_CLIENT_CERT_SESSThe PP2_CLIENT_CERT_SESS bitflag.- See Also:
-
-
Constructor Details
-
Method Details
-
type
public int type()Description copied from interface:ProxyProtocolV2Data.TlvReturns the TLV's type identifier.- Specified by:
typein interfaceProxyProtocolV2Data.Tlv- Returns:
- The type identifier.
-
isSuccessfullyVerified
public boolean isSuccessfullyVerified()Tests whether the client presented a certificate and it was successfully verified.- Returns:
- True if the client cert was present and valid.
-
hasClientSsl
public boolean hasClientSsl()Tests whether the PP2_CLIENT_SSL flag is set.- Returns:
- True if the PP2_CLIENT_SSL is set.
-
hasClientCertConn
public boolean hasClientCertConn()Tests whether the PP2_CLIENT_CERT_CONN flag is set.- Returns:
- True if the PP2_CLIENT_CERT_CONN is set.
-
hasClientCertSess
public boolean hasClientCertSess()Tests whether the PP2_CLIENT_CERT_SESS flag is set.- Returns:
- True if the PP2_CLIENT_CERT_SESS is set.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
client
public int client()Returns the value of theclientrecord component.- Returns:
- the value of the
clientrecord component
-
verify
public int verify()Returns the value of theverifyrecord component.- Returns:
- the value of the
verifyrecord component
-
subTlvs
Returns the value of thesubTlvsrecord component.- Returns:
- the value of the
subTlvsrecord component
-