Package io.undertow.servlet.api
Interface ConfidentialPortManager
-
public interface ConfidentialPortManagerA utility to take theHttpServerExchangeof the current request and obtain the number of the port number to use in https redirects.- Author:
- Darran Lofthouse
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetConfidentialPort(HttpServerExchange exchange)Obtain the port number to redirect the current request to to provide the transport guarantee of CONDIFENTIAL.
-
-
-
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 currentHttpServerExchangebeing redirected.- Returns:
- The port to use in the redirection URI or
-1if no configured port is available.
-
-