Class BambooElevatedSecurityGuard
- java.lang.Object
-
- com.atlassian.bamboo.user.authentication.BambooElevatedSecurityGuard
-
- All Implemented Interfaces:
com.atlassian.seraph.elevatedsecurity.ElevatedSecurityGuard
,com.atlassian.seraph.Initable
public class BambooElevatedSecurityGuard extends Object implements com.atlassian.seraph.elevatedsecurity.ElevatedSecurityGuard
The Bamboo implementation of theElevatedSecurityGuard
interface. Its elevated security is based on CAPTCHA.NOTE : This class is instantiated by Seraph at servlet context initialisation time hence it cant have its dependencies injected.
-
-
Constructor Summary
Constructors Constructor Description BambooElevatedSecurityGuard()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(Map<String,String> params, com.atlassian.seraph.config.SecurityConfig config)
static boolean
isAuthCounterUpdateFailed(javax.servlet.ServletRequest request)
static boolean
isElevatedSecurityFailed(javax.servlet.ServletRequest request)
static boolean
isElevatedSecurityRequired(javax.servlet.ServletRequest request)
void
onFailedLoginAttempt(javax.servlet.http.HttpServletRequest httpServletRequest, String userName)
void
onSuccessfulLoginAttempt(javax.servlet.http.HttpServletRequest httpServletRequest, String userName)
boolean
performElevatedSecurityCheck(javax.servlet.http.HttpServletRequest httpServletRequest, String userName)
-
-
-
Method Detail
-
performElevatedSecurityCheck
public boolean performElevatedSecurityCheck(javax.servlet.http.HttpServletRequest httpServletRequest, String userName)
- Specified by:
performElevatedSecurityCheck
in interfacecom.atlassian.seraph.elevatedsecurity.ElevatedSecurityGuard
-
onFailedLoginAttempt
public void onFailedLoginAttempt(javax.servlet.http.HttpServletRequest httpServletRequest, String userName)
- Specified by:
onFailedLoginAttempt
in interfacecom.atlassian.seraph.elevatedsecurity.ElevatedSecurityGuard
-
onSuccessfulLoginAttempt
public void onSuccessfulLoginAttempt(javax.servlet.http.HttpServletRequest httpServletRequest, String userName)
- Specified by:
onSuccessfulLoginAttempt
in interfacecom.atlassian.seraph.elevatedsecurity.ElevatedSecurityGuard
-
init
public void init(Map<String,String> params, com.atlassian.seraph.config.SecurityConfig config)
- Specified by:
init
in interfacecom.atlassian.seraph.Initable
-
isElevatedSecurityRequired
public static boolean isElevatedSecurityRequired(javax.servlet.ServletRequest request)
-
isElevatedSecurityFailed
public static boolean isElevatedSecurityFailed(javax.servlet.ServletRequest request)
-
isAuthCounterUpdateFailed
public static boolean isAuthCounterUpdateFailed(javax.servlet.ServletRequest request)
-
-