ome.security.auth
Class LoginAttemptListener

java.lang.Object
  extended by ome.security.auth.LoginAttemptListener
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationListener<LoginAttemptMessage>

public class LoginAttemptListener
extends Object
implements org.springframework.context.ApplicationListener<LoginAttemptMessage>

Listens for any LoginAttemptMessage. If there are more than some number of failures, then throttling beings to reduce the number of possible checks. The next successful check resets the count to 0. The state is not stored between server restarts.

Since:
4.2.1
Author:
Josh Moore, josh at glencoesoftware.com
See Also:
SecuritySystem, Permissions

Constructor Summary
LoginAttemptListener(int throttleCount, long throttleTime)
           
 
Method Summary
 void onApplicationEvent(LoginAttemptMessage lam)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginAttemptListener

public LoginAttemptListener(int throttleCount,
                            long throttleTime)
Method Detail

onApplicationEvent

public void onApplicationEvent(LoginAttemptMessage lam)
Specified by:
onApplicationEvent in interface org.springframework.context.ApplicationListener<LoginAttemptMessage>


OmeroJava Api

Version: Beta4.2.1-r8614-Beta4.2-b41

Copyright © 2009 The University of Dundee. All Rights Reserved.