Package io.undertow.servlet.api
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 Summary
Modifier and TypeMethodDescriptionint
getConfidentialPort
(io.undertow.server.HttpServerExchange exchange) Obtain the port number to redirect the current request to to provide the transport guarantee of CONDIFENTIAL.
-
Method Details
-
getConfidentialPort
int getConfidentialPort(io.undertow.server.HttpServerExchange exchange) Obtain the port number to redirect the current request to to provide the transport guarantee of CONDIFENTIAL.- Parameters:
exchange
- The currentHttpServerExchange
being redirected.- Returns:
- The port to use in the redirection URI or
-1
if no configured port is available.
-