Package | Description |
---|---|
org.springframework.security.config.annotation.web.builders | |
org.springframework.security.config.annotation.web.configurers |
Modifier and Type | Method and Description |
---|---|
LogoutConfigurer<HttpSecurity> |
HttpSecurity.logout()
Provides logout support.
|
Modifier and Type | Method and Description |
---|---|
LogoutConfigurer<H> |
LogoutConfigurer.addLogoutHandler(LogoutHandler logoutHandler)
Adds a
LogoutHandler . |
LogoutConfigurer<H> |
LogoutConfigurer.clearAuthentication(boolean clearAuthentication)
Specifies if
SecurityContextLogoutHandler should clear the Authentication at the time of logout. |
LogoutConfigurer<H> |
LogoutConfigurer.deleteCookies(String... cookieNamesToClear)
Allows specifying the names of cookies to be removed on logout success.
|
LogoutConfigurer<H> |
LogoutConfigurer.invalidateHttpSession(boolean invalidateHttpSession)
Configures
SecurityContextLogoutHandler to invalidate the HttpSession at the time of logout. |
LogoutConfigurer<H> |
LogoutConfigurer.logoutRequestMatcher(RequestMatcher logoutRequestMatcher)
The RequestMatcher that triggers log out to occur.
|
LogoutConfigurer<H> |
LogoutConfigurer.logoutSuccessHandler(LogoutSuccessHandler logoutSuccessHandler)
Sets the
LogoutSuccessHandler to use. |
LogoutConfigurer<H> |
LogoutConfigurer.logoutSuccessUrl(String logoutSuccessUrl)
The URL to redirect to after logout has occurred.
|
LogoutConfigurer<H> |
LogoutConfigurer.logoutUrl(String logoutUrl)
The URL that triggers log out to occur (default is "/logout").
|
LogoutConfigurer<H> |
LogoutConfigurer.permitAll()
A shortcut for
permitAll(boolean) with true as an argument. |
LogoutConfigurer<H> |
LogoutConfigurer.permitAll(boolean permitAll)
Grants access to the
logoutSuccessUrl(String) and the logoutUrl(String) for every user. |
Copyright © 2019. All rights reserved.