public class LdapConnectionContext extends Object
| Constructor and Description |
|---|
LdapConnectionContext(CommonLdapConfiguration ldapConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
DirContext |
getContext()
Returns the LDAPContext.
|
LdapContext |
getContextWithCredentials(String userDN,
byte[] password)
Returns the LDAPContext for the given credentials.
|
public LdapConnectionContext(CommonLdapConfiguration ldapConfiguration)
public DirContext getContext() throws NamingException
NamingException - in case of an exception, when obtaining the LDAP contextpublic LdapContext getContextWithCredentials(String userDN, byte[] password) throws NamingException
userDN - user DNpassword - user passwordNamingException - in case of an exception, when obtaining the LDAP contextCopyright © 2018 WSO2. All rights reserved.