- All Known Implementing Classes:
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
- Enclosing interface:
ProxyProtocolV2Data
public static sealed interface ProxyProtocolV2Data.Tlv
permits ProxyProtocolV2Data.Tlv.Alpn, ProxyProtocolV2Data.Tlv.Authority, ProxyProtocolV2Data.Tlv.Crc32c, ProxyProtocolV2Data.Tlv.Noop, ProxyProtocolV2Data.Tlv.UniqueId, ProxyProtocolV2Data.Tlv.Ssl, ProxyProtocolV2Data.Tlv.SslVersion, ProxyProtocolV2Data.Tlv.SslCn, ProxyProtocolV2Data.Tlv.SslCipher, ProxyProtocolV2Data.Tlv.SslSigAlg, ProxyProtocolV2Data.Tlv.SslKeyAlg, ProxyProtocolV2Data.Tlv.Netns, ProxyProtocolV2Data.Tlv.Unregistered
A Tag-Length-Value vector.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordApplication-Layer Protocol Negotiation (ALPN).static final recordContains the host name value passed by the client, as an UTF8-encoded string.static final recordThe value of the type PP2_TYPE_CRC32C is a 32-bit number storing the CRC32c checksum of the PROXY protocol header.static final recordDefines the value as the US-ASCII string representation of the namespace's name.static final recordThe TLV of this type should be ignored when parsed.static final recordContains information about the SSL presented by the proxied client.static final recordThe name of the used cipher, for example "ECDHE-RSA-AES128-GCM-SHA256".static final recordContains the representation of the Common Name field (OID: 2.5.4.3) of the client certificate's Distinguished Name.static final recordThe name of the algorithm used to generate the key of the certificate presented by the frontend when the incoming connection was made over an SSL/TLS transport layer, for example "RSA2048".static final recordThe name of the algorithm used to sign the certificate presented by the frontend when the incoming connection was made over an SSL/TLS transport layer, for example "SHA256".static final recordContains informatino about the version of the TLS protocol used.static final recordThe value of the type PP2_TYPE_UNIQUE_ID is an opaque byte sequence of up to 128 bytes generated by the upstream proxy that uniquely identifies the connection.static final recordA TLV whose type is not defined in the protocol specification. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe PP2_SUBTYPE_SSL_CIPHER TLV type identifier.static final intThe PP2_SUBTYPE_SSL_CN TLV type identifier.static final intThe PP2_SUBTYPE_SSL_KEY_ALG TLV type identifier.static final intThe PP2_SUBTYPE_SSL_SIG_ALG TLV type identifier.static final intThe PP2_SUBTYPE_SSL_VERSION TLV type identifier.static final intThe PP2_TYPE_ALPN TLV type identifier.static final intThe PP2_TYPE_AUTHORITY TLV type identifier.static final intThe PP2_TYPE_CRC32C TLV type identifier.static final intThe PP2_TYPE_NETNS TLV type identifier.static final intThe PP2_TYPE_NOOP TLV type identifier.static final intThe PP2_TYPE_SSL TLV type identifier.static final intThe PP2_TYPE_UNIQUE_ID TLV type identifier. -
Method Summary
-
Field Details
-
PP2_TYPE_ALPN
static final int PP2_TYPE_ALPNThe PP2_TYPE_ALPN TLV type identifier.- See Also:
-
PP2_TYPE_AUTHORITY
static final int PP2_TYPE_AUTHORITYThe PP2_TYPE_AUTHORITY TLV type identifier.- See Also:
-
PP2_TYPE_CRC32C
static final int PP2_TYPE_CRC32CThe PP2_TYPE_CRC32C TLV type identifier.- See Also:
-
PP2_TYPE_NOOP
static final int PP2_TYPE_NOOPThe PP2_TYPE_NOOP TLV type identifier.- See Also:
-
PP2_TYPE_UNIQUE_ID
static final int PP2_TYPE_UNIQUE_IDThe PP2_TYPE_UNIQUE_ID TLV type identifier.- See Also:
-
PP2_TYPE_SSL
static final int PP2_TYPE_SSLThe PP2_TYPE_SSL TLV type identifier.- See Also:
-
PP2_SUBTYPE_SSL_VERSION
static final int PP2_SUBTYPE_SSL_VERSIONThe PP2_SUBTYPE_SSL_VERSION TLV type identifier.- See Also:
-
PP2_SUBTYPE_SSL_CN
static final int PP2_SUBTYPE_SSL_CNThe PP2_SUBTYPE_SSL_CN TLV type identifier.- See Also:
-
PP2_SUBTYPE_SSL_CIPHER
static final int PP2_SUBTYPE_SSL_CIPHERThe PP2_SUBTYPE_SSL_CIPHER TLV type identifier.- See Also:
-
PP2_SUBTYPE_SSL_SIG_ALG
static final int PP2_SUBTYPE_SSL_SIG_ALGThe PP2_SUBTYPE_SSL_SIG_ALG TLV type identifier.- See Also:
-
PP2_SUBTYPE_SSL_KEY_ALG
static final int PP2_SUBTYPE_SSL_KEY_ALGThe PP2_SUBTYPE_SSL_KEY_ALG TLV type identifier.- See Also:
-
PP2_TYPE_NETNS
static final int PP2_TYPE_NETNSThe PP2_TYPE_NETNS TLV type identifier.- See Also:
-
-
Method Details
-
type
int type()Returns the TLV's type identifier.- Returns:
- The type identifier.
-