Class ProxyHandlerImpl


  • public class ProxyHandlerImpl
    extends ProxyHandler
    Default ProxyHandler implementation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getRemoteAddress​(jakarta.servlet.http.HttpServletRequest request)
      Gets the Internet Protocol (IP) source port of the client request that was intercepted by the proxy server.
      X509Certificate[] getSSLClientCertificateChain​(jakarta.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​(jakarta.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.
    • Constructor Detail

      • ProxyHandlerImpl

        public ProxyHandlerImpl()
    • Method Detail

      • getSSLClientCertificateChain

        public X509Certificate[] getSSLClientCertificateChain​(jakarta.servlet.http.HttpServletRequest request)
                                                       throws CertificateException
        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.
        Overrides:
        getSSLClientCertificateChain in class ProxyHandler
        Parameters:
        request - The request from which to retrieve the SSL client certificate chain
        Returns:
        Array of java.security.cert.X509Certificate instances representing the SSL client certificate chain, or null if this information is not available from the given request
        Throws:
        CertificateException - if the certificate chain retrieved from the request header cannot be parsed
      • getSSLKeysize

        public int getSSLKeysize​(jakarta.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.
        Overrides:
        getSSLKeysize in class ProxyHandler
        Parameters:
        request - The request from which to retrieve the SSL key size
        Returns:
        SSL keysize, or -1 if this information is not available from the given request
      • getRemoteAddress

        public String getRemoteAddress​(jakarta.servlet.http.HttpServletRequest request)
        Gets the Internet Protocol (IP) source port of the client request that was intercepted by the proxy server.
        Overrides:
        getRemoteAddress in class ProxyHandler
        Parameters:
        request - The request from which to retrieve the IP source port of the original client request
        Returns:
        IP source port of the original client request, or null if this information is not available from the given request