org.ldaptive.auth
Class AggregateDnResolver.AuthenticationHandler

java.lang.Object
  extended by org.ldaptive.auth.AggregateDnResolver.AuthenticationHandler
All Implemented Interfaces:
AuthenticationHandler
Enclosing class:
AggregateDnResolver

public static class AggregateDnResolver.AuthenticationHandler
extends Object
implements AuthenticationHandler

Used in conjunction with an AggregateDnResolver to authenticate the resolved DN. In particular, the resolved DN is expected to be of the form: label:DN where the label indicates the authentication handler to use. This class only invokes one authentication handler that matches the label found on the DN.


Field Summary
protected  org.slf4j.Logger logger
          Logger for this class.
 
Constructor Summary
AggregateDnResolver.AuthenticationHandler()
          Default constructor.
AggregateDnResolver.AuthenticationHandler(Map<String,AuthenticationHandler> handlers)
          Creates a new aggregate authentication handler.
 
Method Summary
 AuthenticationHandlerResponse authenticate(AuthenticationCriteria criteria)
          Perform an ldap authentication.
 Map<String,AuthenticationHandler> getAuthenticationHandlers()
          Returns the authentication handlers to aggregate over.
 void setAuthenticationHandlers(Map<String,AuthenticationHandler> handlers)
          Sets the authentication handlers to aggregate over.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

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

Constructor Detail

AggregateDnResolver.AuthenticationHandler

public AggregateDnResolver.AuthenticationHandler()
Default constructor.


AggregateDnResolver.AuthenticationHandler

public AggregateDnResolver.AuthenticationHandler(Map<String,AuthenticationHandler> handlers)
Creates a new aggregate authentication handler.

Parameters:
handlers - authentication handlers
Method Detail

getAuthenticationHandlers

public Map<String,AuthenticationHandler> getAuthenticationHandlers()
Returns the authentication handlers to aggregate over.

Returns:
map of label to authentication handler

setAuthenticationHandlers

public void setAuthenticationHandlers(Map<String,AuthenticationHandler> handlers)
Sets the authentication handlers to aggregate over.

Parameters:
handlers - to set

authenticate

public AuthenticationHandlerResponse authenticate(AuthenticationCriteria criteria)
                                           throws LdapException
Perform an ldap authentication.

Specified by:
authenticate in interface AuthenticationHandler
Parameters:
criteria - to perform the authentication with
Returns:
authentication handler response
Throws:
LdapException - if ldap operation fails


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