Class PortMapperConfigurer.HttpPortMapping
- java.lang.Object
-
- org.springframework.security.config.annotation.web.configurers.PortMapperConfigurer.HttpPortMapping
-
- Enclosing class:
- PortMapperConfigurer<H extends HttpSecurityBuilder<H>>
public final class PortMapperConfigurer.HttpPortMapping extends java.lang.Object
Allows specifying the HTTPS port for a given HTTP port when redirecting between HTTP and HTTPS.- Since:
- 3.2
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PortMapperConfigurer<H>
mapsTo(int httpsPort)
Maps the given HTTP port to the provided HTTPS port and vice versa.
-
-
-
Method Detail
-
mapsTo
public PortMapperConfigurer<H> mapsTo(int httpsPort)
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
-
-