Class JiraElevatedSecurityGuard
java.lang.Object
com.atlassian.jira.security.login.JiraElevatedSecurityGuard
- All Implemented Interfaces:
com.atlassian.seraph.elevatedsecurity.ElevatedSecurityGuard
,com.atlassian.seraph.Initable
public class JiraElevatedSecurityGuard
extends Object
implements com.atlassian.seraph.elevatedsecurity.ElevatedSecurityGuard
The JIRA implementation of the
ElevatedSecurityGuard
interface. Its
elevated security is based on CAPTCHA.
NOTE : This class is instatiated by Seraph at servlet context initialisation time hence it cant have its dependencies injected.
- Since:
- v4.0.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
static boolean
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)
-
Constructor Details
-
JiraElevatedSecurityGuard
public JiraElevatedSecurityGuard()
-
-
Method Details
-
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
- Specified by:
init
in interfacecom.atlassian.seraph.Initable
-
isInitialised
public static boolean isInitialised()- Returns:
- will return TRUE if the JiraElevatedSecurityGuard is initialised and therefore in action
-