Class SplibWebSecurityConfigForAdmin
java.lang.Object
jp.ecuacion.splib.web.config.SplibWebSecurityConfigForAdmin
Provides the abstract SecurityConfig class for admin.
Since using this class is not mandatory in the library,
it's abstract and It has no annotations to be recognized as it.
If you want to use this, create a new class
which extends it and put class annotations on the new class:
Configuration and EnableWebSecurity.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefines the string for the role "ACCOUNT_FULL_ACCESS". -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringReturns the url when the access denied page is accessed.protected abstract List<AuthorizationBean> Returns the authority list ofAuthorizationBean.protected abstract StringReturns the url when the login procedure successfully ended.protected abstract StringReturns the url when the login needed page when there is no logged in account in the session.protected abstract List<AuthorizationBean> Returns the role list ofAuthorizationBean.
-
Field Details
-
ADMIN_FULL_ACCESS
Defines the string for the role "ACCOUNT_FULL_ACCESS".- See Also:
-
-
Constructor Details
-
SplibWebSecurityConfigForAdmin
public SplibWebSecurityConfigForAdmin()
-
-
Method Details
-
getDefaultSuccessUrl
Returns the url when the login procedure successfully ended. -
getLoginNeededPage
Returns the url when the login needed page when there is no logged in account in the session. -
getRoleInfo
Returns the role list ofAuthorizationBean.There's a reserved role:
ACCOUNT_FULL_ACCESS. This offers full access to /account/** so it's easily used for admin user or power user.- Returns:
- the role list of AuthorizationBean
-
getAuthorityInfo
Returns the authority list ofAuthorizationBean.- Returns:
- the authority list of AuthorizationBean
-
getAccessDeniedPage
Returns the url when the access denied page is accessed.This happens in the case of non-exist url access and csrf token error.
-