public interface SecurityConfig
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getAuthenticationTokenCookieName() |
String |
getAuthenticationTokenHeaderName() |
String |
getAuthenticationTokenType() |
String |
getCookieDomain()
Optional.
|
String |
getCsrfHeaderName() |
String |
getCsrfParameterName() |
CsrfStore |
getCsrfStore()
Required.
|
int |
getDefaultAuthenticationExpires()
Returns the default expires time in seconds used in persisted authentication, such authentication cookie.
|
int |
getDefaultRememberMeExpires()
Returns the default expires time in seconds of remember-me cookie.
|
leap.core.web.RequestIgnore[] |
getIgnores()
Optional.
|
SecurityInterceptor[] |
getInterceptors()
Optional.
|
String |
getLoginAction()
Required.
|
String |
getLoginUrl()
Returns the url for promote user login.
|
String |
getLogoutAction()
Required.
|
String |
getLogoutSuccessUrl()
Optional.
|
leap.core.security.crypto.PasswordEncoder |
getPasswordEncoder()
Required.
|
Map<String,SecurityFailureHandler> |
getPathPrefixFailureHandlers()
Returns the failure handler map for path prefixes.
|
String |
getRememberMeCookieName()
Returns the name of remember-me cookie.
|
String |
getRememberMeExpiresParameterName()
Returns the request parameter name for specify the expires time of remember-me cookie in login flow.
|
String |
getRememberMeParameterName()
Returns the request parameter name for enable or disable remember-me in login flow.
|
String |
getRememberMeSecret()
Returns the secret key use to sign the remember-me cookie.
|
String |
getReturnUrlParameterName()
Returns the request parameter name of return url used by sigin flow.
|
String |
getSecret() |
SecuredPaths |
getSecuredPaths()
Returns the
SecuredPaths. |
UserStore |
getUserStore()
Required.
|
boolean |
isAuthenticateAnyRequests()
Returns
true if all request paths will be intercepted by security module and checks the user authentication. |
boolean |
isAuthenticationTokenEnabled() |
boolean |
isAuthorizeAnyRequests()
Returns
true if all request paths will be intercepted by security module and checks the user authorization. |
boolean |
isCorsIgnored()
Returns
true if ignore cors request. |
boolean |
isCrossContext()
Returns
true if user authentication is cross contexts in the same web server. |
boolean |
isCsrfEnabled()
Returns
true if csrf security enabled. |
boolean |
isEnabled()
Returns
true if web security is enabled. |
boolean |
isLoginEnabled()
Default is true.
|
boolean |
isLoginRedirectRoot()
Is redirect to root path after login success.
|
boolean |
isLogoutEnabled()
Default is true.
|
boolean |
isRememberMeEnabled()
Returns
true if remember-me authentication is enabled. |
boolean isEnabled()
true if web security is enabled.boolean isCrossContext()
true if user authentication is cross contexts in the same web server.
That means single sign on corss contexts.
Default is false.
boolean isCsrfEnabled()
true if csrf security enabled.
Default is true, it should not be disabled for security reason.
boolean isCorsIgnored()
true if ignore cors request.boolean isAuthenticateAnyRequests()
true if all request paths will be intercepted by security module and checks the user authentication.
Default is false.
boolean isAuthorizeAnyRequests()
true if all request paths will be intercepted by security module and checks the user authorization.
Default is false.
int getDefaultAuthenticationExpires()
String getReturnUrlParameterName()
boolean isRememberMeEnabled()
true if remember-me authentication is enabled.
Default is true.
String getRememberMeCookieName()
String getRememberMeParameterName()
String getRememberMeSecret()
Default is AppConfig.getSecret().
String getRememberMeExpiresParameterName()
int getDefaultRememberMeExpires()
String getSecret()
String getCsrfHeaderName()
String getCsrfParameterName()
boolean isAuthenticationTokenEnabled()
String getAuthenticationTokenCookieName()
String getAuthenticationTokenHeaderName()
String getAuthenticationTokenType()
String getCookieDomain()
boolean isLoginEnabled()
boolean isLoginRedirectRoot()
String getLoginUrl()
String getLoginAction()
boolean isLogoutEnabled()
String getLogoutAction()
String getLogoutSuccessUrl()
UserStore getUserStore()
CsrfStore getCsrfStore()
leap.core.security.crypto.PasswordEncoder getPasswordEncoder()
PasswordEncoder for authenticating user's password in security module.leap.core.web.RequestIgnore[] getIgnores()
Map<String,SecurityFailureHandler> getPathPrefixFailureHandlers()
SecuredPaths getSecuredPaths()
SecuredPaths.SecurityInterceptor[] getInterceptors()
Copyright © 2019. All rights reserved.