|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.james.user.ldap.SimpleLDAPConnection
public class SimpleLDAPConnection
A connection handle to an LDAP server which is created by means of a simple principal and password/credentials authentication against the LDAP server.
| Method Summary | |
|---|---|
javax.naming.directory.DirContext |
getLdapContext()
Returns the root directory context that is visible to the authenticated user. |
static SimpleLDAPConnection |
openLDAPConnection(java.lang.String principal,
java.lang.String credentials,
java.lang.String ldapURL)
Opens a connection to the specified LDAP server using the specified user details. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static SimpleLDAPConnection openLDAPConnection(java.lang.String principal,
java.lang.String credentials,
java.lang.String ldapURL)
throws javax.naming.NamingException
Opens a connection to the specified LDAP server using the specified user details.
principal - The distinguished-name (DN) of the user to authenticate
against the server.credentials - The credentials with which to authenticate the user e.g. the
user's password.ldapURL - The URL of the LDAP server against which to authenticate the
user.
javax.naming.NamingException - Propagated from the underlying LDAP connection.public javax.naming.directory.DirContext getLdapContext()
Returns the root directory context that is visible to the authenticated user.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||