|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.seraph.elevatedsecurity.NoopElevatedSecurityGuard
public class NoopElevatedSecurityGuard
This ElevatedSecurityGuard
does nothing, as its name might suggest
Field Summary | |
---|---|
static NoopElevatedSecurityGuard |
INSTANCE
A singleton instance of NoopElevatedSecurityGuard that does nothing! |
Method Summary | |
---|---|
void |
init(Map<String,String> params,
SecurityConfig config)
Initialise the configuration object with the given "init-params". |
void |
onFailedLoginAttempt(javax.servlet.http.HttpServletRequest httpServletRequest,
String userName)
This is called when a user fails a login check, either because they failed the elevated security check or they failed the more basic username and password check. |
void |
onSuccessfulLoginAttempt(javax.servlet.http.HttpServletRequest httpServletRequest,
String userName)
This is called when a user passes a login check. |
boolean |
performElevatedSecurityCheck(javax.servlet.http.HttpServletRequest httpServletRequest,
String userName)
This will be called to perform an elevated security check for a given user name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static NoopElevatedSecurityGuard INSTANCE
Method Detail |
---|
public void init(Map<String,String> params, SecurityConfig config)
Initable
init
in interface Initable
params
- The map of "init-params" extracted from the Seraph config file. This is guaranteed not null.config
- The Seraph SecurityConfig class that is initialising the config objects. This object will only be partially initialised at this time.public boolean performElevatedSecurityCheck(javax.servlet.http.HttpServletRequest httpServletRequest, String userName)
ElevatedSecurityGuard
performElevatedSecurityCheck
in interface ElevatedSecurityGuard
httpServletRequest
- the HTTP request in playuserName
- the name of the user to get login information about
public void onFailedLoginAttempt(javax.servlet.http.HttpServletRequest httpServletRequest, String userName)
ElevatedSecurityGuard
onFailedLoginAttempt
in interface ElevatedSecurityGuard
httpServletRequest
- the HTTP request in playuserName
- the name of the user to get login information aboutpublic void onSuccessfulLoginAttempt(javax.servlet.http.HttpServletRequest httpServletRequest, String userName)
ElevatedSecurityGuard
onSuccessfulLoginAttempt
in interface ElevatedSecurityGuard
httpServletRequest
- the HTTP request in playuserName
- the name of the user to get login information about
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |