public final class MonitoringLdapConnection extends LdapConnectionWrapper
Modifier and Type | Method and Description |
---|---|
void |
anonymousBind()
Anonymous bind on a server.
|
void |
bind()
Bind on a server, using the
LdapConnectionConfig information of this connection. |
BindResponse |
bind(BindRequest bindRequest)
Bind to the server using a bind request object.
|
void |
bind(Dn name)
Unauthenticated authentication bind on a server.
|
void |
bind(Dn name,
String credentials)
Simple bind on a server.
|
void |
bind(String name)
Unauthenticated authentication bind on a server.
|
void |
bind(String name,
String credentials)
Simple bind on a server.
|
boolean |
bindCalled() |
ExtendedResponse |
extended(ExtendedRequest extendedRequest)
Performs an extended operation based on the extended request object.
|
ExtendedResponse |
extended(Oid oid)
Sends a extended operation request to the server with the given OID and no value.
|
ExtendedResponse |
extended(Oid oid,
byte[] value)
Sends a extended operation request to the server with the given OID and value.
|
ExtendedResponse |
extended(String oid)
Sends a extended operation request to the server with the given OID and no value.
|
ExtendedResponse |
extended(String oid,
byte[] value)
Sends a extended operation request to the server with the given OID and value.
|
void |
resetMonitors()
Reset the Bind and StartTLS flags
|
boolean |
startTlsCalled() |
abandon, abandon, add, add, bind, close, compare, compare, compare, compare, compare, compare, compare, connect, delete, delete, delete, doesFutureExistFor, exists, exists, getBinaryAttributeDetector, getCodecService, getRootDse, getRootDse, getSchemaManager, getSupportedControls, isAuthenticated, isConnected, isControlSupported, isRequestCompleted, loadSchema, loadSchemaRelaxed, lookup, lookup, lookup, lookup, lookup, lookup, modify, modify, modify, modify, modifyDn, move, move, moveAndRename, moveAndRename, moveAndRename, moveAndRename, rename, rename, rename, rename, search, search, search, setBinaryAttributeDetector, setSchemaManager, setTimeOut, unBind, wrapped
public boolean bindCalled()
public void resetMonitors()
public boolean startTlsCalled()
public void bind() throws LdapException
LdapConnectionConfig
information of this connection.bind
in interface LdapConnection
bind
in class LdapConnectionWrapper
LdapException
- if some error occurredpublic void anonymousBind() throws LdapException
anonymousBind
in interface LdapConnection
anonymousBind
in class LdapConnectionWrapper
LdapException
- if some error occurredpublic void bind(String name) throws LdapException
bind
in interface LdapConnection
bind
in class LdapConnectionWrapper
name
- The name used to authenticate the user. It must be a
valid distinguished name.LdapException
- if some error occurredpublic void bind(String name, String credentials) throws LdapException
bind
in interface LdapConnection
bind
in class LdapConnectionWrapper
name
- The name used to authenticate the user. It must be a
valid distinguished name.credentials
- The password, it can't be null
LdapException
- if some error occurredpublic void bind(Dn name) throws LdapException
bind
in interface LdapConnection
bind
in class LdapConnectionWrapper
name
- The name used to authenticate the user.LdapException
- if some error occurredpublic void bind(Dn name, String credentials) throws LdapException
bind
in interface LdapConnection
bind
in class LdapConnectionWrapper
name
- The name used to authenticate the user.credentials
- The password, it can't be nullLdapException
- if some error occurredpublic BindResponse bind(BindRequest bindRequest) throws LdapException
bind
in interface LdapConnection
bind
in class LdapConnectionWrapper
bindRequest
- The bind request object containing all the needed parametersBindResponse
containing the resultLdapException
- if some error occurredpublic ExtendedResponse extended(String oid) throws LdapException
extended
in interface LdapConnection
extended
in class LdapConnectionWrapper
oid
- the object identifier of the extended operationLdapException
- if some error occurredLdapConnection.extended(org.apache.directory.api.asn1.util.Oid, byte[])
public ExtendedResponse extended(String oid, byte[] value) throws LdapException
extended
in interface LdapConnection
extended
in class LdapConnectionWrapper
oid
- the object identifier of the extended operationvalue
- value to be used by the extended operation, can be a null valueLdapException
- if some error occurredLdapConnection.extended(org.apache.directory.api.asn1.util.Oid, byte[])
public ExtendedResponse extended(Oid oid) throws LdapException
extended
in interface LdapConnection
extended
in class LdapConnectionWrapper
oid
- the object identifier of the extended operationLdapException
- if some error occurredLdapConnection.extended(org.apache.directory.api.asn1.util.Oid, byte[])
public ExtendedResponse extended(Oid oid, byte[] value) throws LdapException
extended
in interface LdapConnection
extended
in class LdapConnectionWrapper
oid
- the object identifier of the extended operationvalue
- value to be used by the extended operation, can be a null valueLdapException
- if some error occurredpublic ExtendedResponse extended(ExtendedRequest extendedRequest) throws LdapException
extended
in interface LdapConnection
extended
in class LdapConnectionWrapper
extendedRequest
- the extended operation's requestLdapException
- if the extended operation failedCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.