org.ldaptive.auth.ext
Class FreeIPAAuthenticationResponseHandler

java.lang.Object
  extended by org.ldaptive.auth.ext.FreeIPAAuthenticationResponseHandler
All Implemented Interfaces:
AuthenticationResponseHandler

public class FreeIPAAuthenticationResponseHandler
extends Object
implements AuthenticationResponseHandler

Attempts to parse the authentication response and set the account state using data associated with FreeIPA. The Authenticator should be configured to return 'krbPasswordExpiration', 'krbLoginFailedCount' and 'krbLastPwdChange' attributes so they can be consumed by this handler.

Version:
$Revision: 3189 $
Author:
tduehr

Field Summary
protected  org.slf4j.Logger logger
          Logger for this class.
 
Constructor Summary
FreeIPAAuthenticationResponseHandler()
          Default constructor.
FreeIPAAuthenticationResponseHandler(int warning, int passwordAge, int loginFailures)
          Creates a new freeipa authentication response handler.
FreeIPAAuthenticationResponseHandler(String warning, String passwordAge, int loginFailures)
          Creates a new freeipa authentication response handler.
 
Method Summary
 boolean equals(Object o)
          
 void handle(AuthenticationResponse response)
          Handle the response from an ldap authentication.
 int hashCode()
          
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

protected final org.slf4j.Logger logger
Logger for this class.

Constructor Detail

FreeIPAAuthenticationResponseHandler

public FreeIPAAuthenticationResponseHandler()
Default constructor.


FreeIPAAuthenticationResponseHandler

public FreeIPAAuthenticationResponseHandler(int warning,
                                            int passwordAge,
                                            int loginFailures)
Creates a new freeipa authentication response handler.

Parameters:
warning - length of time before expiration that should produce a warning
passwordAge - length of time in days that a password is valid
loginFailures - number of login failures to allow

FreeIPAAuthenticationResponseHandler

public FreeIPAAuthenticationResponseHandler(String warning,
                                            String passwordAge,
                                            int loginFailures)
Creates a new freeipa authentication response handler.

Parameters:
warning - length of time before expiration that should produce a warning
passwordAge - length of time in days that a password is valid
loginFailures - number of login failures to allow
Method Detail

handle

public void handle(AuthenticationResponse response)
Description copied from interface: AuthenticationResponseHandler
Handle the response from an ldap authentication.

Specified by:
handle in interface AuthenticationResponseHandler
Parameters:
response - produced from an authentication

equals

public boolean equals(Object o)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003-2017 Virginia Tech. All Rights Reserved.