Interface ConfidentialPortManager


  • public interface ConfidentialPortManager
    A utility to take the HttpServerExchange of the current request and obtain the number of the port number to use in https redirects.
    Author:
    Darran Lofthouse
    • Method Detail

      • getConfidentialPort

        int getConfidentialPort​(HttpServerExchange exchange)
        Obtain the port number to redirect the current request to to provide the transport guarantee of CONDIFENTIAL.
        Parameters:
        exchange - The current HttpServerExchange being redirected.
        Returns:
        The port to use in the redirection URI or -1 if no configured port is available.