@NotExtensible @ThreadSafety(level=INTERFACE_NOT_THREADSAFE) public interface FullLDAPInterface extends LDAPInterface, java.io.Closeable
LDAPInterface
interface to also include support for bind and extended
operations, although those operations should be used with care because they
may alter the state of the associated connection (or connection-like object),
and in some cases (like a connection pool with multiple connections, where it
may not be possible to guarantee that successive operations are processed on
the same underlying connection), this may result in unexpected behavior.
Closeable
interface so that the
underlying connection (or connection-like object) may be closed. After it
has been closed, no attempt should be made to re-use the object to perform
LDAP (or LDAP-like) communication.Modifier and Type | Method and Description |
---|---|
BindResult |
bind(BindRequest bindRequest)
Processes the provided bind request.
|
BindResult |
bind(java.lang.String bindDN,
java.lang.String password)
Processes a simple bind request with the provided DN and password.
|
void |
close()
Closes the associated interface and frees any resources associated with it.
|
ExtendedResult |
processExtendedOperation(ExtendedRequest extendedRequest)
Processes the provided extended request.
|
ExtendedResult |
processExtendedOperation(java.lang.String requestOID)
Processes an extended operation with the provided request OID and no value.
|
ExtendedResult |
processExtendedOperation(java.lang.String requestOID,
ASN1OctetString requestValue)
Processes an extended operation with the provided request OID and value.
|
add, add, add, add, add, add, compare, compare, compare, delete, delete, delete, getEntry, getEntry, getRootDSE, getSchema, getSchema, modify, modify, modify, modify, modify, modify, modifyDN, modifyDN, modifyDN, modifyDN, search, search, search, search, search, search, search, search, search, search, searchForEntry, searchForEntry, searchForEntry, searchForEntry, searchForEntry, searchForEntry
void close()
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
@NotNull BindResult bind(@Nullable java.lang.String bindDN, @Nullable java.lang.String password) throws LDAPException
bindDN
- The bind DN for the bind operation.password
- The password for the simple bind operation.LDAPException
- If the server rejects the bind request, or if a
problem occurs while sending the request or reading
the response.@NotNull BindResult bind(@NotNull BindRequest bindRequest) throws LDAPException
bindRequest
- The bind request to be processed. It must not be
null
.LDAPException
- If the server rejects the bind request, or if a
problem occurs while sending the request or reading
the response.@NotNull ExtendedResult processExtendedOperation(@NotNull java.lang.String requestOID) throws LDAPException
requestOID
- The OID for the extended request to process. It must
not be null
.LDAPException
- If a problem occurs while sending the request or
reading the response.@NotNull ExtendedResult processExtendedOperation(@NotNull java.lang.String requestOID, @Nullable ASN1OctetString requestValue) throws LDAPException
requestOID
- The OID for the extended request to process. It must
not be null
.requestValue
- The encoded value for the extended request to
process. It may be null
if there does not
need to be a value for the requested operation.LDAPException
- If a problem occurs while sending the request or
reading the response.@NotNull ExtendedResult processExtendedOperation(@NotNull ExtendedRequest extendedRequest) throws LDAPException
extendedRequest
- The extended request to be processed. It must not
be null
.LDAPException
- If a problem occurs while sending the request or
reading the response.