com.atlassian.bamboo.user.authentication
Class BambooElevatedSecurityGuard

java.lang.Object
  extended by com.atlassian.bamboo.user.authentication.BambooElevatedSecurityGuard
All Implemented Interfaces:
com.atlassian.seraph.elevatedsecurity.ElevatedSecurityGuard, com.atlassian.seraph.Initable

public class BambooElevatedSecurityGuard
extends java.lang.Object
implements com.atlassian.seraph.elevatedsecurity.ElevatedSecurityGuard

The Bamboo implementation of the ElevatedSecurityGuard 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
BambooElevatedSecurityGuard()
           
 
Method Summary
 void init(java.util.Map<java.lang.String,java.lang.String> params, com.atlassian.seraph.config.SecurityConfig config)
           
static boolean isElevatedSecurityFailed(javax.servlet.ServletRequest request)
           
static boolean isElevatedSecurityRequired(javax.servlet.ServletRequest request)
           
 void onFailedLoginAttempt(javax.servlet.http.HttpServletRequest httpServletRequest, java.lang.String userName)
           
 void onSuccessfulLoginAttempt(javax.servlet.http.HttpServletRequest httpServletRequest, java.lang.String userName)
           
 boolean performElevatedSecurityCheck(javax.servlet.http.HttpServletRequest httpServletRequest, java.lang.String userName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BambooElevatedSecurityGuard

public BambooElevatedSecurityGuard()
Method Detail

performElevatedSecurityCheck

public boolean performElevatedSecurityCheck(javax.servlet.http.HttpServletRequest httpServletRequest,
                                            java.lang.String userName)
Specified by:
performElevatedSecurityCheck in interface com.atlassian.seraph.elevatedsecurity.ElevatedSecurityGuard

onFailedLoginAttempt

public void onFailedLoginAttempt(javax.servlet.http.HttpServletRequest httpServletRequest,
                                 java.lang.String userName)
Specified by:
onFailedLoginAttempt in interface com.atlassian.seraph.elevatedsecurity.ElevatedSecurityGuard

onSuccessfulLoginAttempt

public void onSuccessfulLoginAttempt(javax.servlet.http.HttpServletRequest httpServletRequest,
                                     java.lang.String userName)
Specified by:
onSuccessfulLoginAttempt in interface com.atlassian.seraph.elevatedsecurity.ElevatedSecurityGuard

init

public void init(java.util.Map<java.lang.String,java.lang.String> params,
                 com.atlassian.seraph.config.SecurityConfig config)
Specified by:
init in interface com.atlassian.seraph.Initable

isElevatedSecurityRequired

public static boolean isElevatedSecurityRequired(javax.servlet.ServletRequest request)

isElevatedSecurityFailed

public static boolean isElevatedSecurityFailed(javax.servlet.ServletRequest request)


Copyright © 2010 Atlassian. All Rights Reserved.