public class SecurityConfigImpl extends Object implements Serializable, SecurityConfig
This class is a Singleton, access it using SecurityConfigFactory.getInstance().
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CONFIG_LOCATION |
BASIC_AUTH, STORAGE_KEY| Constructor and Description |
|---|
SecurityConfigImpl(String configFileLocation) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInterceptor(Interceptor interceptor)
Do not use in production! Only used in tests, will be removed.
|
protected void |
configureRedirectPolicy(Element rootEl) |
void |
destroy() |
AuthenticationContext |
getAuthenticationContext() |
Authenticator |
getAuthenticator() |
String |
getAuthType() |
int |
getAutoLoginCookieAge() |
SecurityController |
getController() |
ElevatedSecurityGuard |
getElevatedSecurityGuard() |
<T extends Interceptor> |
getInterceptors(Class<T> desiredInterceptorClass) |
List<String> |
getInvalidateSessionExcludeList()
When sessions are invalidated upon login, sometimes there are session attributes that should be excluded from
the new session.
|
List<String> |
getInvalidateWebsudoSessionExcludeList()
When sessions are invalidated upon websudo, sometimes there are session attributes that should be excluded from
the new session.
|
String |
getLinkLoginURL() |
String |
getLoginCookieKey()
The name of the remember me cookie
|
String |
getLoginCookiePath() |
String |
getLoginForwardPath()
Returns the login forward path.
|
String |
getLoginURL() |
String |
getLoginURL(boolean forUserRole,
boolean forPageCaps) |
String |
getLogoutURL() |
String |
getOriginalURLKey() |
RedirectPolicy |
getRedirectPolicy()
Returns the configured RedirectPolicy, or the default if none is configured.
|
RememberMeService |
getRememberMeService() |
RoleMapper |
getRoleMapper() |
List<SecurityService> |
getServices() |
String |
getWebsudoRequestKey()
The name of the websudo request
|
boolean |
isInsecureCookie()
returns true if the remember me cookie should never be set to secure
|
boolean |
isInvalidateSessionOnLogin()
Whether the session (and the JSESSIONID) should be thrown away and replaced on successful login to prevent
session fixation.
|
boolean |
isInvalidateSessionOnWebsudo()
Whether the session (and the JSESSIONID) should be thrown away and replaced on successful websudo to prevent
session fixation.
|
public static final String DEFAULT_CONFIG_LOCATION
public SecurityConfigImpl(String configFileLocation) throws ConfigurationException
ConfigurationExceptionprotected void configureRedirectPolicy(Element rootEl) throws ConfigurationException
ConfigurationExceptionpublic void destroy()
destroy in interface SecurityConfigpublic void addInterceptor(Interceptor interceptor)
interceptor - the Interceptor to addpublic List<SecurityService> getServices()
getServices in interface SecurityConfigpublic String getLoginURL()
getLoginURL in interface SecurityConfigpublic String getLoginURL(boolean forUserRole, boolean forPageCaps)
getLoginURL in interface SecurityConfigpublic String getLoginForwardPath()
SecurityConfigjavax.servlet.forward.*
request attributes.
At this point you will probably want to save the user's POST params so he can log in again and retry the POST.
Defaults to null, in which case Seraph will just do a redirect instead of a FORWARD.
getLoginForwardPath in interface SecurityConfigpublic String getLinkLoginURL()
getLinkLoginURL in interface SecurityConfigpublic String getLogoutURL()
getLogoutURL in interface SecurityConfigpublic String getOriginalURLKey()
getOriginalURLKey in interface SecurityConfigpublic Authenticator getAuthenticator()
getAuthenticator in interface SecurityConfigAuthenticator in playpublic AuthenticationContext getAuthenticationContext()
getAuthenticationContext in interface SecurityConfigAuthenticationContext in playpublic SecurityController getController()
getController in interface SecurityConfigSecurityController in playpublic RoleMapper getRoleMapper()
getRoleMapper in interface SecurityConfigRoleMapper in playpublic RedirectPolicy getRedirectPolicy()
SecurityConfiggetRedirectPolicy in interface SecurityConfigpublic <T extends Interceptor> List<T> getInterceptors(Class<T> desiredInterceptorClass)
getInterceptors in interface SecurityConfigpublic String getLoginCookiePath()
getLoginCookiePath in interface SecurityConfigpublic String getLoginCookieKey()
SecurityConfiggetLoginCookieKey in interface SecurityConfigpublic String getWebsudoRequestKey()
SecurityConfiggetWebsudoRequestKey in interface SecurityConfigpublic String getAuthType()
getAuthType in interface SecurityConfigpublic boolean isInsecureCookie()
SecurityConfigisInsecureCookie in interface SecurityConfigpublic int getAutoLoginCookieAge()
getAutoLoginCookieAge in interface SecurityConfigpublic ElevatedSecurityGuard getElevatedSecurityGuard()
getElevatedSecurityGuard in interface SecurityConfigElevatedSecurityGuard in playpublic RememberMeService getRememberMeService()
getRememberMeService in interface SecurityConfigpublic boolean isInvalidateSessionOnLogin()
SecurityConfigisInvalidateSessionOnLogin in interface SecurityConfigpublic boolean isInvalidateSessionOnWebsudo()
SecurityConfigisInvalidateSessionOnWebsudo in interface SecurityConfigpublic List<String> getInvalidateSessionExcludeList()
SecurityConfiggetInvalidateSessionExcludeList in interface SecurityConfigpublic List<String> getInvalidateWebsudoSessionExcludeList()
SecurityConfiggetInvalidateWebsudoSessionExcludeList in interface SecurityConfigCopyright © 2018 Atlassian. All rights reserved.