Package edu.vt.middleware.ldap.auth
Interface DnResolver
-
- All Known Implementing Classes:
ConstructDnResolver
,NoopDnResolver
,SearchDnResolver
public interface DnResolver
DnResolver
provides an interface for finding LDAP DNs.- Version:
- $Revision: 1330 $ $Date: 2010-05-24 00:10:53 +0200 (Mon, 24 May 2010) $
- Author:
- Middleware Services
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
This will close any resources associated with this resolver.AuthenticatorConfig
getAuthenticatorConfig()
Returns the authenticator config.java.lang.String
resolve(java.lang.String user)
Attempts to find the LDAP DN for the supplied user.void
setAuthenticatorConfig(AuthenticatorConfig config)
Sets the authenticator config.
-
-
-
Method Detail
-
resolve
java.lang.String resolve(java.lang.String user) throws javax.naming.NamingException
Attempts to find the LDAP DN for the supplied user.- Parameters:
user
-String
to find dn for- Returns:
String
- user's dn- Throws:
javax.naming.NamingException
- if an LDAP error occurs
-
getAuthenticatorConfig
AuthenticatorConfig getAuthenticatorConfig()
Returns the authenticator config.- Returns:
- authenticator configuration
-
setAuthenticatorConfig
void setAuthenticatorConfig(AuthenticatorConfig config)
Sets the authenticator config.- Parameters:
config
- authenticator configuration
-
close
void close()
This will close any resources associated with this resolver.
-
-