|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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(java.util.Map<java.lang.String,java.lang.String> params,
SecurityConfig config)
Initialise the configuration object with the given "init-params". |
void |
onFailedLoginAttempt(javax.servlet.http.HttpServletRequest httpServletRequest,
java.lang.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,
java.lang.String userName)
This is called when a user passes a login check. |
boolean |
performElevatedSecurityCheck(javax.servlet.http.HttpServletRequest httpServletRequest,
java.lang.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(java.util.Map<java.lang.String,java.lang.String> params,
SecurityConfig config)
Initable
init in interface Initableparams - 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,
java.lang.String userName)
ElevatedSecurityGuard
performElevatedSecurityCheck in interface ElevatedSecurityGuardhttpServletRequest - the HTTP request in playuserName - the name of the user to get login information about
public void onFailedLoginAttempt(javax.servlet.http.HttpServletRequest httpServletRequest,
java.lang.String userName)
ElevatedSecurityGuard
onFailedLoginAttempt in interface ElevatedSecurityGuardhttpServletRequest - the HTTP request in playuserName - the name of the user to get login information about
public void onSuccessfulLoginAttempt(javax.servlet.http.HttpServletRequest httpServletRequest,
java.lang.String userName)
ElevatedSecurityGuard
onSuccessfulLoginAttempt in interface ElevatedSecurityGuardhttpServletRequest - 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 | |||||||||