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 TypeMethodDescriptionintgetConfidentialPort(HttpServerExchange exchange) Obtain the port number to redirect the current request to to provide the transport guarantee of CONDIFENTIAL.
-
Method Details
-
getConfidentialPort
Obtain the port number to redirect the current request to to provide the transport guarantee of CONDIFENTIAL.- Parameters:
exchange- The currentHttpServerExchangebeing redirected.- Returns:
- The port to use in the redirection URI or
-1if no configured port is available.
-