|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.seraph.config.SecurityConfigImpl
public class SecurityConfigImpl
The main implementation of Seraph's configuration - reads from seraph-config.xml.
This class is a Singleton, access it using SecurityConfigFactory.getInstance().
Field Summary | |
---|---|
static String |
DEFAULT_CONFIG_LOCATION
|
Fields inherited from interface com.atlassian.seraph.config.SecurityConfig |
---|
BASIC_AUTH, STORAGE_KEY |
Constructor Summary | |
---|---|
SecurityConfigImpl(String configFileLocation)
|
Method Summary | ||
---|---|---|
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()
|
|
String |
getCookieEncoding()
|
|
ElevatedSecurityGuard |
getElevatedSecurityGuard()
|
|
|
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 |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_CONFIG_LOCATION
Constructor Detail |
---|
public SecurityConfigImpl(String configFileLocation) throws ConfigurationException
ConfigurationException
Method Detail |
---|
protected void configureRedirectPolicy(Element rootEl) throws ConfigurationException
ConfigurationException
public void destroy()
destroy
in interface SecurityConfig
public void addInterceptor(Interceptor interceptor)
interceptor
- the Interceptor to addpublic List<SecurityService> getServices()
getServices
in interface SecurityConfig
public String getLoginURL()
getLoginURL
in interface SecurityConfig
public String getLoginForwardPath()
SecurityConfig
javax.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 SecurityConfig
public String getLinkLoginURL()
getLinkLoginURL
in interface SecurityConfig
public String getLogoutURL()
getLogoutURL
in interface SecurityConfig
public String getOriginalURLKey()
getOriginalURLKey
in interface SecurityConfig
public Authenticator getAuthenticator()
getAuthenticator
in interface SecurityConfig
Authenticator
in playpublic AuthenticationContext getAuthenticationContext()
getAuthenticationContext
in interface SecurityConfig
AuthenticationContext
in playpublic SecurityController getController()
getController
in interface SecurityConfig
SecurityController
in playpublic RoleMapper getRoleMapper()
getRoleMapper
in interface SecurityConfig
RoleMapper
in playpublic RedirectPolicy getRedirectPolicy()
SecurityConfig
getRedirectPolicy
in interface SecurityConfig
public <T extends Interceptor> List<T> getInterceptors(Class<T> desiredInterceptorClass)
getInterceptors
in interface SecurityConfig
public String getCookieEncoding()
getCookieEncoding
in interface SecurityConfig
public String getLoginCookiePath()
getLoginCookiePath
in interface SecurityConfig
public String getLoginCookieKey()
SecurityConfig
getLoginCookieKey
in interface SecurityConfig
public String getWebsudoRequestKey()
SecurityConfig
getWebsudoRequestKey
in interface SecurityConfig
public String getAuthType()
getAuthType
in interface SecurityConfig
public boolean isInsecureCookie()
SecurityConfig
isInsecureCookie
in interface SecurityConfig
public int getAutoLoginCookieAge()
getAutoLoginCookieAge
in interface SecurityConfig
public ElevatedSecurityGuard getElevatedSecurityGuard()
getElevatedSecurityGuard
in interface SecurityConfig
ElevatedSecurityGuard
in playpublic RememberMeService getRememberMeService()
getRememberMeService
in interface SecurityConfig
public boolean isInvalidateSessionOnLogin()
SecurityConfig
isInvalidateSessionOnLogin
in interface SecurityConfig
public boolean isInvalidateSessionOnWebsudo()
SecurityConfig
isInvalidateSessionOnWebsudo
in interface SecurityConfig
public List<String> getInvalidateSessionExcludeList()
SecurityConfig
getInvalidateSessionExcludeList
in interface SecurityConfig
public List<String> getInvalidateWebsudoSessionExcludeList()
SecurityConfig
getInvalidateWebsudoSessionExcludeList
in interface SecurityConfig
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |