|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.ldap.auth.ConstructDnResolver
public class ConstructDnResolver
ConstructDnResolver creates an LDAP DN using known information
about the LDAP. Specifically it concatenates the first user field with the
base DN.
| Field Summary | |
|---|---|
protected AuthenticatorConfig |
config
Authentication configuration. |
protected org.apache.commons.logging.Log |
logger
Log for this class. |
| Constructor Summary | |
|---|---|
ConstructDnResolver()
Default constructor. |
|
ConstructDnResolver(AuthenticatorConfig authConfig)
This will create a new ConstructDnResolver with the supplied
AuthenticatorConfig. |
|
| Method Summary | |
|---|---|
void |
close()
This will close any resources associated with this resolver. |
AuthenticatorConfig |
getAuthenticatorConfig()
This returns the AuthenticatorConfig of the
Authenticator. |
String |
resolve(String user)
Creates a LDAP DN by combining the userField and the base dn. |
void |
setAuthenticatorConfig(AuthenticatorConfig authConfig)
This will set the config parameters of this Authenticator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log logger
protected AuthenticatorConfig config
| Constructor Detail |
|---|
public ConstructDnResolver()
public ConstructDnResolver(AuthenticatorConfig authConfig)
ConstructDnResolver with the supplied
AuthenticatorConfig.
authConfig - AuthenticatorConfig| Method Detail |
|---|
public void setAuthenticatorConfig(AuthenticatorConfig authConfig)
Authenticator.
setAuthenticatorConfig in interface DnResolverauthConfig - AuthenticatorConfigpublic AuthenticatorConfig getAuthenticatorConfig()
AuthenticatorConfig of the
Authenticator.
getAuthenticatorConfig in interface DnResolverAuthenticatorConfig
public String resolve(String user)
throws NamingException
resolve in interface DnResolveruser - String to find dn for
String - user's dn
NamingException - if the LDAP search failspublic void close()
close in interface DnResolver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||