|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LdapContextFactory
Interface that encapsulates the creation of LdapContext objects that are used by subclasses
of AbstractLdapRealm to query for AuthenticationInfo security data (roles, permissions, etc) of particular
Subjects (users).
| Method Summary | |
|---|---|
LdapContext |
getLdapContext(String username,
String password)
Creates (or retrieves from a pool) a LdapContext connection bound using the username and password specified. |
LdapContext |
getSystemLdapContext()
Creates (or retrieves from a pool) a LdapContext connection bound using the system account, or anonymously if no system account is configured. |
| Method Detail |
|---|
LdapContext getSystemLdapContext()
throws NamingException
NamingException - if there is an error creating the context.
LdapContext getLdapContext(String username,
String password)
throws NamingException
username - the username to use when creating the connection.password - the password to use when creating the connection.
NamingException - if there is an error creating the context.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||