|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 java.lang.String |
DEFAULT_CONFIG_LOCATION
|
| Fields inherited from interface com.atlassian.seraph.config.SecurityConfig |
|---|
BASIC_AUTH, STORAGE_KEY |
| Constructor Summary | |
|---|---|
SecurityConfigImpl(java.lang.String configFileLocation)
|
|
| Method Summary | ||
|---|---|---|
void |
addInterceptor(Interceptor interceptor)
Do not use in production! Only used in tests, will be removed. |
|
protected void |
configureRedirectPolicy(org.w3c.dom.Element rootEl)
|
|
void |
destroy()
|
|
AuthenticationContext |
getAuthenticationContext()
|
|
Authenticator |
getAuthenticator()
|
|
java.lang.String |
getAuthType()
|
|
int |
getAutoLoginCookieAge()
|
|
SecurityController |
getController()
|
|
java.lang.String |
getCookieEncoding()
|
|
ElevatedSecurityGuard |
getElevatedSecurityGuard()
|
|
|
getInterceptors(java.lang.Class<T> desiredInterceptorClass)
|
|
java.util.List<java.lang.String> |
getInvalidateSessionExcludeList()
When sessions are invalidated upon login, sometimes there are session attributes that should be excluded from the new session. |
|
java.util.List<java.lang.String> |
getInvalidateWebsudoSessionExcludeList()
When sessions are invalidated upon websudo, sometimes there are session attributes that should be excluded from the new session. |
|
java.lang.String |
getLinkLoginURL()
|
|
java.lang.String |
getLoginCookieKey()
The name of the remember me cookie |
|
java.lang.String |
getLoginCookiePath()
|
|
java.lang.String |
getLoginForwardPath()
Returns the login forward path. |
|
java.lang.String |
getLoginURL()
|
|
java.lang.String |
getLogoutURL()
|
|
java.lang.String |
getOriginalURLKey()
|
|
RedirectPolicy |
getRedirectPolicy()
Returns the configured RedirectPolicy, or the default if none is configured. |
|
RememberMeService |
getRememberMeService()
|
|
RoleMapper |
getRoleMapper()
|
|
java.util.List<SecurityService> |
getServices()
|
|
java.lang.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 java.lang.String DEFAULT_CONFIG_LOCATION
| Constructor Detail |
|---|
public SecurityConfigImpl(java.lang.String configFileLocation)
throws ConfigurationException
ConfigurationException| Method Detail |
|---|
protected void configureRedirectPolicy(org.w3c.dom.Element rootEl)
throws ConfigurationException
ConfigurationExceptionpublic void destroy()
destroy in interface SecurityConfigpublic void addInterceptor(Interceptor interceptor)
interceptor - the Interceptor to addpublic java.util.List<SecurityService> getServices()
getServices in interface SecurityConfigpublic java.lang.String getLoginURL()
getLoginURL in interface SecurityConfigpublic java.lang.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 java.lang.String getLinkLoginURL()
getLinkLoginURL in interface SecurityConfigpublic java.lang.String getLogoutURL()
getLogoutURL in interface SecurityConfigpublic java.lang.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()
SecurityConfig
getRedirectPolicy in interface SecurityConfigpublic <T extends Interceptor> java.util.List<T> getInterceptors(java.lang.Class<T> desiredInterceptorClass)
getInterceptors in interface SecurityConfigpublic java.lang.String getCookieEncoding()
getCookieEncoding in interface SecurityConfigpublic java.lang.String getLoginCookiePath()
getLoginCookiePath in interface SecurityConfigpublic java.lang.String getLoginCookieKey()
SecurityConfig
getLoginCookieKey in interface SecurityConfigpublic java.lang.String getWebsudoRequestKey()
SecurityConfig
getWebsudoRequestKey in interface SecurityConfigpublic java.lang.String getAuthType()
getAuthType in interface SecurityConfigpublic boolean isInsecureCookie()
SecurityConfig
isInsecureCookie 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()
SecurityConfig
isInvalidateSessionOnLogin in interface SecurityConfigpublic boolean isInvalidateSessionOnWebsudo()
SecurityConfig
isInvalidateSessionOnWebsudo in interface SecurityConfigpublic java.util.List<java.lang.String> getInvalidateSessionExcludeList()
SecurityConfig
getInvalidateSessionExcludeList in interface SecurityConfigpublic java.util.List<java.lang.String> getInvalidateWebsudoSessionExcludeList()
SecurityConfig
getInvalidateWebsudoSessionExcludeList in interface SecurityConfig
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||