|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.auth.AggregateDnResolver
public class AggregateDnResolver
Looks up a user's DN using multiple DN resolvers. Each DN resolver is invoked on a separate thread. If multiple DNs are allowed then the first one retrieved is returned.
| Nested Class Summary | |
|---|---|
static class |
AggregateDnResolver.AuthenticationHandler
Used in conjunction with an AggregateDnResolver to authenticate the
resolved DN. |
| Field Summary | |
|---|---|
protected org.slf4j.Logger |
logger
Logger for this class. |
| Constructor Summary | |
|---|---|
AggregateDnResolver()
Default constructor. |
|
AggregateDnResolver(Map<String,DnResolver> resolvers)
Creates a new aggregate dn resolver. |
|
AggregateDnResolver(Map<String,DnResolver> resolvers,
ExecutorService es)
Creates a new aggregate dn resolver. |
|
| Method Summary | |
|---|---|
protected void |
finalize()
|
boolean |
getAllowMultipleDns()
Returns whether DN resolution should fail if multiple DNs are found. |
Map<String,DnResolver> |
getDnResolvers()
Returns the DN resolvers to aggregate over. |
String |
resolve(String user)
Attempts to find the LDAP DN for the supplied user. |
String |
resolve(User user)
Attempts to find the LDAP DN for the supplied user. |
void |
setAllowMultipleDns(boolean b)
Sets whether DN resolution should fail if multiple DNs are found If false an exception will be thrown if resolve(User) finds that more
than one DN resolver returns a DN. |
void |
setDnResolvers(Map<String,DnResolver> resolvers)
Sets the DN resolvers to aggregate over. |
void |
shutdown()
Invokes ExecutorService.shutdown() on the underlying executor
service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.slf4j.Logger logger
| Constructor Detail |
|---|
public AggregateDnResolver()
public AggregateDnResolver(Map<String,DnResolver> resolvers)
resolvers - dn resolvers
public AggregateDnResolver(Map<String,DnResolver> resolvers,
ExecutorService es)
resolvers - dn resolverses - executor service for invoking DN resolvers| Method Detail |
|---|
public Map<String,DnResolver> getDnResolvers()
public void setDnResolvers(Map<String,DnResolver> resolvers)
resolvers - to setpublic boolean getAllowMultipleDns()
public void setAllowMultipleDns(boolean b)
resolve(User) finds that more
than one DN resolver returns a DN. Otherwise the first DN found is
returned.
b - whether multiple DNs are allowed
public String resolve(String user)
throws LdapException
resolve in interface DnResolveruser - to find DN for
LdapException - if an LDAP error occurs
public String resolve(User user)
throws LdapException
resolve in interface DnResolverExuser - to find DN for
LdapException - if an LDAP error occurspublic void shutdown()
ExecutorService.shutdown() on the underlying executor
service.
protected void finalize()
throws Throwable
finalize in class ObjectThrowable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||