public interface ProxyInformation
HiveMQ supports arbitrary TLVs which can be retrieved as raw TLV values (see rawTLVs())
| Modifier and Type | Method and Description |
|---|---|
InetAddress |
proxyAddress()
Returns the address of the load balancer that is used to proxy the client connection.
|
int |
proxyPort()
Returns the port of the load balancer that is used to proxy the client connection.
|
com.google.common.collect.ImmutableMap<Byte,byte[]> |
rawTLVs()
HiveMQ supports arbitrary TLVs, even TLVs that aren't specified by the PROXY protocol.
|
InetAddress |
sourceAddress()
Returns the original source address of the MQTT client.
|
int |
sourcePort()
Return the original source port of the MQTT client.
|
com.google.common.base.Optional<String> |
sslCertificateCN()
If the PROXY protocol implementation of the load balancer supports TLVs and proxies
a SSL connection with a X509 client certificate that is sent by the MQTT client,
this method returns the forwarded common name of the X509 client certificate
(if the client used one to authenticate the SSL connection).
|
com.google.common.base.Optional<String> |
tlsVersion()
If the PROXY protocol implementation of the load balancer supports TLVs and proxies
a SSL connection, this method returns the TLS version of the original SSL connection
|
int sourcePort()
InetAddress sourceAddress()
int proxyPort()
InetAddress proxyAddress()
com.google.common.base.Optional<String> tlsVersion()
Optional that contains the original TLS version if supported by the load balancercom.google.common.base.Optional<String> sslCertificateCN()
Optional that contains the Common Name of the X509 client certificatecom.google.common.collect.ImmutableMap<Byte,byte[]> rawTLVs()
The key is the byte value of the TLV type and the value is the raw TLV as byte value.
Copyright © 2013-2018 dc-square GmbH. All Rights Reserved.