Class ServerHttpSecurity.SessionManagementSpec
java.lang.Object
org.springframework.security.config.web.server.ServerHttpSecurity.SessionManagementSpec
- Enclosing class:
- ServerHttpSecurity
Configures how sessions are managed.
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Configures how many sessions are allowed for a given user. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconcurrentSessions
(Customizer<ServerHttpSecurity.SessionManagementSpec.ConcurrentSessionsSpec> customizer) Configures how many sessions are allowed for a given user.
-
Constructor Details
-
SessionManagementSpec
public SessionManagementSpec()
-
-
Method Details
-
concurrentSessions
public ServerHttpSecurity.SessionManagementSpec concurrentSessions(Customizer<ServerHttpSecurity.SessionManagementSpec.ConcurrentSessionsSpec> customizer) Configures how many sessions are allowed for a given user.- Parameters:
customizer
- the customizer to provide more options- Returns:
- the
ServerHttpSecurity.SessionManagementSpec
to customize
-