|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas.ldap.DataSourceLDAPImpl
This object acts as a factory for LDAP connections (tested on Netscape Directory Server 3.0)
Constructor Summary | |
DataSourceLDAPImpl()
Constructor for DataSourceLDAPImplFactory |
Method Summary | |
java.lang.String |
getDataSourceName()
|
javax.naming.directory.DirContext |
getDirContext()
Attempts to get a context to interface the LDAP server via JNDI. |
javax.naming.directory.DirContext |
getDirContext(java.lang.String userName,
java.lang.String password)
Attempts to get a context to interface the LDAP server via JNDI. |
java.lang.String |
getPassword()
|
javax.naming.Reference |
getReference()
Retrieves the Reference of this object. |
java.lang.String |
getUrl()
|
java.lang.String |
getUserName()
|
void |
setBinAttribs(java.lang.String s)
Set the list of byte-array attributes for this bean. |
void |
setDataSourceName(java.lang.String s)
|
void |
setPassword(java.lang.String s)
|
void |
setUrl(java.lang.String s)
|
void |
setUserName(java.lang.String s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataSourceLDAPImpl()
Method Detail |
public java.lang.String getDataSourceName()
public void setDataSourceName(java.lang.String s)
public java.lang.String getUserName()
public void setUserName(java.lang.String s)
public java.lang.String getPassword()
public void setPassword(java.lang.String s)
public java.lang.String getUrl()
public void setUrl(java.lang.String s)
public javax.naming.Reference getReference() throws javax.naming.NamingException
getReference
in interface javax.naming.Referenceable
javax.naming.NamingException
- If a naming exception was encountered while retrieving the reference.public void setBinAttribs(java.lang.String s)
DataSourceLDAP
setBinAttribs
in interface DataSourceLDAP
public javax.naming.directory.DirContext getDirContext() throws javax.naming.NamingException
getDirContext
in interface DataSourceLDAP
javax.naming.NamingException
- - if a database-access error occurs.public javax.naming.directory.DirContext getDirContext(java.lang.String userName, java.lang.String password) throws javax.naming.NamingException
getDirContext
in interface DataSourceLDAP
password
- - the user's passworduserName
- - the user on whose behalf the DirContext will be used
javax.naming.NamingException
- - if a jndi error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |