public abstract class ProxyHandler extends Object
An implementation of this abstract class inspects a given request for the custom request headers through which the proxy server communicates the information about the original client request to the appserver instance, and makes this information available to the appserver.
This allows the appserver to work with any number of 3rd party SSL offloader implementations configured on the front-end web server, for which a corresponding ProxyHandler implementation has been configured on the backend appserver.
Constructor and Description |
---|
ProxyHandler() |
Modifier and Type | Method and Description |
---|---|
String |
getRemoteAddress(javax.servlet.http.HttpServletRequest request)
Gets the Internet Protocol (IP) address of the original client request
that was intercepted by the proxy server.
|
int |
getRemotePort(javax.servlet.http.HttpServletRequest request)
Gets the port of the client request that was intercepted by the
proxy server.
|
X509Certificate[] |
getSSLClientCertificateChain(javax.servlet.http.HttpServletRequest request)
Gets the SSL client certificate chain with which the client
had authenticated itself to the SSL offloader, and which the
SSL offloader has added as a custom request header on the
given request.
|
int |
getSSLKeysize(javax.servlet.http.HttpServletRequest request)
Returns the SSL keysize with which the original client request that
was intercepted by the SSL offloader has been protected, and which
the SSL offloader has added as a custom request header on the
given request.
|
public X509Certificate[] getSSLClientCertificateChain(javax.servlet.http.HttpServletRequest request) throws CertificateException
request
- The request from which to retrieve the SSL client
certificate chainCertificateException
- if the certificate chain retrieved
from the request header cannot be parsedpublic int getSSLKeysize(javax.servlet.http.HttpServletRequest request)
request
- The request from which to retrieve the SSL key
sizepublic String getRemoteAddress(javax.servlet.http.HttpServletRequest request)
request
- The request from which to retrieve the IP address of the
original client requestpublic int getRemotePort(javax.servlet.http.HttpServletRequest request)
request
- The request from which to retrieve the port
of the original client requestCopyright © 2006–2018 TinyGroup. All rights reserved.