public class NoopElevatedSecurityGuard extends Object implements ElevatedSecurityGuard
ElevatedSecurityGuard does nothing, as its name might suggest| Modifier and Type | Field and Description |
|---|---|
static NoopElevatedSecurityGuard |
INSTANCE
A singleton instance of NoopElevatedSecurityGuard that does nothing!
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final NoopElevatedSecurityGuard INSTANCE
public void init(Map<String,String> params, SecurityConfig config)
Initablepublic boolean performElevatedSecurityCheck(javax.servlet.http.HttpServletRequest httpServletRequest,
String userName)
ElevatedSecurityGuardperformElevatedSecurityCheck in interface ElevatedSecurityGuardhttpServletRequest - the HTTP request in playuserName - the name of the user to get login information aboutpublic void onFailedLoginAttempt(javax.servlet.http.HttpServletRequest httpServletRequest,
String userName)
ElevatedSecurityGuardThe username MAY be null if a valid username cannot be found for example
onFailedLoginAttempt in interface ElevatedSecurityGuardhttpServletRequest - the HTTP request in playuserName - the name of the user to get login information aboutpublic void onSuccessfulLoginAttempt(javax.servlet.http.HttpServletRequest httpServletRequest,
String userName)
ElevatedSecurityGuardThe username MAY be null if a valid username cannot be found for example
onSuccessfulLoginAttempt in interface ElevatedSecurityGuardhttpServletRequest - the HTTP request in playuserName - the name of the user to get login information aboutCopyright © 2018 Atlassian. All rights reserved.