Class PortMapperConfigurer.HttpPortMapping
java.lang.Object
org.springframework.security.config.annotation.web.configurers.PortMapperConfigurer.HttpPortMapping
- Enclosing class:
- PortMapperConfigurer<H extends HttpSecurityBuilder<H>>
Allows specifying the HTTPS port for a given HTTP port when redirecting between
HTTP and HTTPS.
- Since:
- 3.2
-
Method Summary
Modifier and TypeMethodDescriptionmapsTo
(int httpsPort) Maps the given HTTP port to the provided HTTPS port and vice versa.
-
Method Details
-
mapsTo
Maps the given HTTP port to the provided HTTPS port and vice versa.- Parameters:
httpsPort
- the HTTPS port to map to- Returns:
- the
PortMapperConfigurer
for further customization
-