public interface LDAPProvider
Modifier and Type | Method and Description |
---|---|
LDAPBindRequest |
createBindRequest(java.lang.String bindDN,
java.lang.String password)
Creates a new bind request, which can be used to perform an LDAP simple bind operation,
which authenticates using a bind DN and password.
|
LDAPSearchRequest |
createSearchRequest(java.lang.String base,
LDAPSearchScope scope,
java.lang.String filter,
java.lang.String... attributes)
Creates a new search request, which can be used to retrieve entries that match a given
set of criteria.
|
LDAPBindActivity |
sendBindRequest(LDAPBindRequest request)
Creates a new LDAP bind activity in the SLEE and performs the bind operation specified
by the given bind request.
|
LDAPSearchActivity |
sendSearchRequest(LDAPSearchRequest request)
Creates a new LDAP search activity in the SLEE and performs the search specified by the
criteria in the given search request.
|
LDAPBindRequest createBindRequest(java.lang.String bindDN, java.lang.String password) throws LDAPException
bindDN
- the distinguished name for the simple bind operation.password
- the password for the simple bind operation.LDAPException
- if failed to create a valid bind request for a given bind DN and password.LDAPBindActivity sendBindRequest(LDAPBindRequest request) throws LDAPConnectionException, LDAPBindException
request
- the bind request to be used in the specified bind operation. It must not be null.LDAPConnectionException
- when the LDAP client cannot connect with the LDAP server.LDAPBindException
- if failed to complete the specified bind operation.LDAPBindActivity
,
LDAPBindResultEvent
LDAPSearchRequest createSearchRequest(java.lang.String base, LDAPSearchScope scope, java.lang.String filter, java.lang.String... attributes) throws LDAPException
base
- the base distinguished name from which to search. It must not be null.scope
- the scope of the entries to search.filter
- the search filter specifying the search criteria. It must not be null.attributes
- the list of attributes to return in the search results.LDAPException
- if failed to create a valid search request for a given set of criteria.LDAPSearchActivity sendSearchRequest(LDAPSearchRequest request) throws LDAPConnectionException, LDAPSearchException
request
- the search request to be used in the specified search. It must not be null.LDAPConnectionException
- when the LDAP client cannot connect with the LDAP server.LDAPSearchException
- if failed to complete the specified search.LDAPSearchActivity
,
LDAPSearchResultEvent