Package io.undertow.security.handlers
Class SinglePortConfidentialityHandler
java.lang.Object
io.undertow.security.handlers.AbstractConfidentialityHandler
io.undertow.security.handlers.SinglePortConfidentialityHandler
- All Implemented Interfaces:
HttpHandler
An extension to
AbstractConfidentialityHandler
that uses the Host header from the incoming message and specifies the
confidential address by just switching the port.- Author:
- Darran Lofthouse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected URI
getRedirectURI
(HttpServerExchange exchange) All sub-classes are required to provide an implementation of this method, using the HttpServerExchange for the current request return the address to use for a redirect should confidentiality be required and the request not be confidential.protected URI
getRedirectURI
(HttpServerExchange exchange, int port) Methods inherited from class io.undertow.security.handlers.AbstractConfidentialityHandler
confidentialityRequired, handleRequest, isConfidential
-
Constructor Details
-
SinglePortConfidentialityHandler
-
-
Method Details
-
getRedirectURI
Description copied from class:AbstractConfidentialityHandler
All sub-classes are required to provide an implementation of this method, using the HttpServerExchange for the current request return the address to use for a redirect should confidentiality be required and the request not be confidential.- Specified by:
getRedirectURI
in classAbstractConfidentialityHandler
- Parameters:
exchange
- - TheHttpServerExchange
for the request being processed.- Returns:
- The
URI
to redirect to. - Throws:
URISyntaxException
-
getRedirectURI
- Throws:
URISyntaxException
-