Uses of Class
org.forgerock.opendj.ldap.LdapException
Packages that use LdapException
Package
Description
Classes and interfaces for core types including connections, entries, and
attributes.
Classes and interfaces for core LDAP requests.
Classes and interfaces for constructing and querying LDAP schemas.
Interfaces and classes for service providers.
Classes and interfaces for reading and writing LDIF.
-
Uses of LdapException in org.forgerock.opendj.ldap
Subclasses of LdapException in org.forgerock.opendj.ldapModifier and TypeClassDescriptionclassThrown when the result code returned in a Result indicates that the Request failed because the filter contained in an assertion control failed to match the target entry.classThrown when the result code returned in a Result indicates that the Bind Request failed due to an authentication failure.classThrown when the result code returned in a Result indicates that the Request failed due to an authorization failure.classThrown when the result code returned in a Result indicates that the Request was cancelled.classThrown when the result code returned in a Result indicates that the Request was unsuccessful because of a connection failure.classThrown when the result code returned in a Result indicates that the update Request failed because it would have left the Directory in an inconsistent state.classThrown when the result code returned in a Result indicates that the Request failed because the target entry was not found by the Directory Server.classThrown when the result code returned in a Result indicates that the requested single entry search operation or read operation failed because the Directory Server returned multiple matching entries (or search references) when only a single matching entry was expected.classThrown when the result code returned in a Result indicates that the Request could not be processed by the Directory Server because the target entry is located on another server.classThrown when the result code returned in a Result indicates that the Request was aborted because it did not complete in the required time out period.Methods in org.forgerock.opendj.ldap that return LdapExceptionModifier and TypeMethodDescriptionstatic LdapExceptionLdapException.newLdapException(Result result) Creates a new LDAP exception using the provided result.static LdapExceptionLdapException.newLdapException(ResultCode resultCode) Creates a new LDAP exception with the provided result code and an empty diagnostic message.static LdapExceptionLdapException.newLdapException(ResultCode resultCode, CharSequence diagnosticMessage) Creates a new LDAP exception with the provided result code and diagnostic message.static LdapExceptionLdapException.newLdapException(ResultCode resultCode, CharSequence diagnosticMessage, Throwable cause) Creates a new LDAP exception with the provided result code, diagnostic message, and cause.static LdapExceptionLdapException.newLdapException(ResultCode resultCode, Throwable cause) Creates a new LDAP exception with the provided result code and cause.Methods in org.forgerock.opendj.ldap that return types with arguments of type LdapExceptionModifier and TypeMethodDescriptionorg.forgerock.util.promise.Promise<Connection, LdapException> ConnectionFactory.getConnectionAsync()Asynchronously obtains a connection to the Directory Server associated with this connection factory.org.forgerock.util.promise.Promise<Connection, LdapException> ConnectionPool.getConnectionAsync()Asynchronously obtains a connection from this connection pool, potentially opening a new connection if needed.org.forgerock.util.promise.Promise<Connection, LdapException> LDAPConnectionFactory.getConnectionAsync()Methods in org.forgerock.opendj.ldap with parameters of type LdapExceptionModifier and TypeMethodDescriptionvoidConnectionEventListener.handleConnectionError(boolean isDisconnectNotification, LdapException error) Notifies this connection event listener that a fatal error has occurred and the connection can no longer be used - the server has crashed, for example.voidLoadBalancerEventListener.handleConnectionFactoryOffline(ConnectionFactory factory, LdapException error) Invoked when the load-balancer is unable to obtain a connection from the specified connection factory.voidLdapResultHandler.handleException(LdapException exception) Invoked when the asynchronous operation has failed.Method parameters in org.forgerock.opendj.ldap with type arguments of type LdapExceptionModifier and TypeMethodDescription<VOUT> LdapPromise<VOUT> LdapPromise.then(org.forgerock.util.Function<? super S, VOUT, LdapException> onResult) <VOUT> LdapPromise<VOUT> LdapPromise.thenAsync(org.forgerock.util.AsyncFunction<? super S, VOUT, LdapException> onResult) LdapPromise.thenOnException(org.forgerock.util.promise.ExceptionHandler<? super LdapException> onException) LdapPromise.thenOnResultOrException(org.forgerock.util.promise.ResultHandler<? super S> onResult, org.forgerock.util.promise.ExceptionHandler<? super LdapException> onException) Methods in org.forgerock.opendj.ldap that throw LdapExceptionModifier and TypeMethodDescriptionAbstractAsynchronousConnection.add(AddRequest request) Adds an entry to the Directory Server using the provided lines of LDIF.Adds the provided entry to the Directory Server.AbstractConnectionWrapper.add(AddRequest request) Adds an entry to the Directory Server using the provided add request.Adds an entry to the Directory Server using the provided lines of LDIF.Adds the provided entry to the Directory Server.Connection.add(AddRequest request) Adds an entry to the Directory Server using the provided add request.AbstractConnection.applyChange(ChangeRecord request) AbstractConnectionWrapper.applyChange(ChangeRecord request) Applies the provided change request to the Directory Server.Connection.applyChange(ChangeRecord request) Applies the provided change request to the Directory Server.AbstractAsynchronousConnection.bind(BindRequest request) Authenticates to the Directory Server using simple authentication and the provided user name and password.AbstractConnectionWrapper.bind(BindRequest request) Authenticates to the Directory Server using the provided bind request.Authenticates to the Directory Server using simple authentication and the provided user name and password.Connection.bind(BindRequest request) Authenticates to the Directory Server using the provided bind request.AbstractAsynchronousConnection.compare(CompareRequest request) Compares the named entry in the Directory Server against the provided attribute value assertion.AbstractConnectionWrapper.compare(CompareRequest request) Compares an entry in the Directory Server using the provided compare request.Compares the named entry in the Directory Server against the provided attribute value assertion.Connection.compare(CompareRequest request) Compares an entry in the Directory Server using the provided compare request.AbstractAsynchronousConnection.delete(DeleteRequest request) Deletes the named entry from the Directory Server.AbstractConnectionWrapper.delete(DeleteRequest request) Deletes an entry from the Directory Server using the provided delete request.Deletes the named entry from the Directory Server.Connection.delete(DeleteRequest request) Deletes an entry from the Directory Server using the provided delete request.AbstractConnection.deleteSubtree(String name) AbstractConnectionWrapper.deleteSubtree(String name) Deletes the named entry and all of its subordinates from the Directory Server.Connection.deleteSubtree(String name) Deletes the named entry and all of its subordinates from the Directory Server.<R extends ExtendedResult>
RAbstractAsynchronousConnection.extendedRequest(ExtendedRequest<R> request, IntermediateResponseHandler handler) AbstractConnection.extendedRequest(String requestName, ByteString requestValue) <R extends ExtendedResult>
RAbstractConnection.extendedRequest(ExtendedRequest<R> request) AbstractConnectionWrapper.extendedRequest(String requestName, ByteString requestValue) Requests that the Directory Server performs the provided extended request.<R extends ExtendedResult>
RAbstractConnectionWrapper.extendedRequest(ExtendedRequest<R> request) Requests that the Directory Server performs the provided extended request.<R extends ExtendedResult>
RAbstractConnectionWrapper.extendedRequest(ExtendedRequest<R> request, IntermediateResponseHandler handler) Requests that the Directory Server performs the provided extended request, optionally listening for any intermediate responses.Connection.extendedRequest(String requestName, ByteString requestValue) Requests that the Directory Server performs the provided extended request.<R extends ExtendedResult>
RConnection.extendedRequest(ExtendedRequest<R> request) Requests that the Directory Server performs the provided extended request.<R extends ExtendedResult>
RConnection.extendedRequest(ExtendedRequest<R> request, IntermediateResponseHandler handler) Requests that the Directory Server performs the provided extended request, optionally listening for any intermediate responses.ConnectionFactory.getConnection()Returns a connection to the Directory Server associated with this connection factory.ConnectionPool.getConnection()Obtains a connection from this connection pool, potentially opening a new connection if needed.LDAPConnectionFactory.getConnection()RequestHandlerFactory.handleAccept(C clientContext) Invoked when a new client connection is accepted by the associated listener.ServerConnectionFactory.handleAccept(C clientContext) Deprecated.Invoked when a new client connection is accepted by the associated listener.AbstractAsynchronousConnection.modify(ModifyRequest request) Modifies an entry in the Directory Server using the provided lines of LDIF.AbstractConnectionWrapper.modify(ModifyRequest request) Modifies an entry in the Directory Server using the provided modify request.Modifies an entry in the Directory Server using the provided lines of LDIF.Connection.modify(ModifyRequest request) Modifies an entry in the Directory Server using the provided modify request.AbstractAsynchronousConnection.modifyDN(ModifyDNRequest request) Renames the named entry in the Directory Server using the provided new RDN.AbstractConnectionWrapper.modifyDN(ModifyDNRequest request) Renames an entry in the Directory Server using the provided modify DN request.Renames the named entry in the Directory Server using the provided new RDN.Connection.modifyDN(ModifyDNRequest request) Renames an entry in the Directory Server using the provided modify DN request.static EntryEntries.modifyEntry(Entry entry, Modification change) Applies the provided modification to an entry.static EntryEntries.modifyEntry(Entry entry, Modification change, Collection<? super ByteString> conflictingValues) Applies the provided modification to an entry.static EntryEntries.modifyEntry(Entry entry, ModifyRequest changes) Applies the provided modification request to an entry.static EntryEntries.modifyEntryPermissive(Entry entry, Collection<Modification> changes) Applies the provided modifications to an entry using "permissive" modify semantics.static EntryEntries.modifyEntryStrict(Entry entry, Collection<Modification> changes) Applies the provided modifications to an entry using "strict" modify semantics.Reads the named entry from the Directory Server.Reads the named entry from the Directory Server.Reads the named entry from the Directory Server.Reads the named entry from the Directory Server.static RootDSERootDSE.readRootDSE(Connection connection) Reads the Root DSE from the Directory Server using the provided connection.AbstractAsynchronousConnection.search(SearchRequest request, SearchResultHandler handler) AbstractConnection.search(SearchRequest request, Collection<? super SearchResultEntry> entries) AbstractConnection.search(SearchRequest request, Collection<? super SearchResultEntry> entries, Collection<? super SearchResultReference> references) AbstractConnectionWrapper.search(SearchRequest request, Collection<? super SearchResultEntry> entries) Searches the Directory Server using the provided search request.AbstractConnectionWrapper.search(SearchRequest request, Collection<? super SearchResultEntry> entries, Collection<? super SearchResultReference> references) Searches the Directory Server using the provided search request.AbstractConnectionWrapper.search(SearchRequest request, SearchResultHandler handler) Searches the Directory Server using the provided search request.Connection.search(SearchRequest request, Collection<? super SearchResultEntry> entries) Searches the Directory Server using the provided search request.Connection.search(SearchRequest request, Collection<? super SearchResultEntry> entries, Collection<? super SearchResultReference> references) Searches the Directory Server using the provided search request.Connection.search(SearchRequest request, SearchResultHandler handler) Searches the Directory Server using the provided search request.AbstractConnection.searchSingleEntry(String baseObject, SearchScope scope, String filter, String... attributeDescriptions) AbstractConnection.searchSingleEntry(SearchRequest request) AbstractConnectionWrapper.searchSingleEntry(String baseObject, SearchScope scope, String filter, String... attributeDescriptions) Searches the Directory Server for a single entry using the provided search parameters.AbstractConnectionWrapper.searchSingleEntry(SearchRequest request) Searches the Directory Server for a single entry using the provided search request.Connection.searchSingleEntry(String baseObject, SearchScope scope, String filter, String... attributeDescriptions) Searches the Directory Server for a single entry using the provided search parameters.Connection.searchSingleEntry(SearchRequest request) Searches the Directory Server for a single entry using the provided search request.byte[]ConnectionSecurityLayer.unwrap(byte[] incoming, int offset, int len) Unwraps a byte array received from the peer.byte[]ConnectionSecurityLayer.wrap(byte[] outgoing, int offset, int len) Wraps a byte array to be sent to the peer.Constructor parameters in org.forgerock.opendj.ldap with type arguments of type LdapExceptionModifierConstructorDescriptionLDAPListener(int port, org.forgerock.util.Function<LDAPClientContext, com.forgerock.reactive.ReactiveHandler<LDAPClientContext, LdapMessages.LdapRequestEnvelope, com.forgerock.reactive.Stream<Response>>, LdapException> factory) Creates a new LDAP listener implementation which will listen for LDAP client connections at the provided address.LDAPListener(int port, org.forgerock.util.Function<LDAPClientContext, com.forgerock.reactive.ReactiveHandler<LDAPClientContext, LdapMessages.LdapRequestEnvelope, com.forgerock.reactive.Stream<Response>>, LdapException> factory, org.forgerock.util.Options options) Creates a new LDAP listener implementation which will listen for LDAP client connections at the provided address.LDAPListener(String host, int port, org.forgerock.util.Function<LDAPClientContext, com.forgerock.reactive.ReactiveHandler<LDAPClientContext, LdapMessages.LdapRequestEnvelope, com.forgerock.reactive.Stream<Response>>, LdapException> factory) Creates a new LDAP listener implementation which will listen for LDAP client connections at the provided address.LDAPListener(String host, int port, org.forgerock.util.Function<LDAPClientContext, com.forgerock.reactive.ReactiveHandler<LDAPClientContext, LdapMessages.LdapRequestEnvelope, com.forgerock.reactive.Stream<Response>>, LdapException> factory, org.forgerock.util.Options options) Creates a new LDAP listener implementation which will listen for LDAP client connections at the provided address.LDAPListener(Set<InetSocketAddress> addresses, org.forgerock.util.Function<LDAPClientContext, com.forgerock.reactive.ReactiveHandler<LDAPClientContext, LdapMessages.LdapRequestEnvelope, com.forgerock.reactive.Stream<Response>>, LdapException> factory) Creates a new LDAP listener implementation which will listen for LDAP client connections at the provided address.LDAPListener(Set<InetSocketAddress> addresses, org.forgerock.util.Function<LDAPClientContext, com.forgerock.reactive.ReactiveHandler<LDAPClientContext, LdapMessages.LdapRequestEnvelope, com.forgerock.reactive.Stream<Response>>, LdapException> factory, org.forgerock.util.Options options) Creates a new LDAP listener implementation which will listen for LDAP client connections at the provided address. -
Uses of LdapException in org.forgerock.opendj.ldap.requests
Methods in org.forgerock.opendj.ldap.requests that throw LdapExceptionModifier and TypeMethodDescriptionAnonymousSASLBindRequest.createBindClient(String serverName) BindRequest.createBindClient(String serverName) Creates a new bind client which can be used to perform the authentication process.CRAMMD5SASLBindRequest.createBindClient(String serverName) DigestMD5SASLBindRequest.createBindClient(String serverName) ExternalSASLBindRequest.createBindClient(String serverName) GenericBindRequest.createBindClient(String serverName) GSSAPISASLBindRequest.createBindClient(String serverName) PlainSASLBindRequest.createBindClient(String serverName) SASLBindRequest.createBindClient(String serverName) SimpleBindRequest.createBindClient(String serverName) booleanBindClient.evaluateResult(BindResult result) Evaluates the provided bind result and returnstrueif authentication has completed successfully, orfalseif additional authentication steps are required (for example during a multi-stage SASL authentication attempt). -
Uses of LdapException in org.forgerock.opendj.ldap.schema
Methods in org.forgerock.opendj.ldap.schema that throw LdapExceptionModifier and TypeMethodDescriptionSchemaBuilder.addSchema(Connection connection, DN name, boolean overwrite) Reads the schema elements contained in the named subschema sub-entry and adds them to this schema builder.SchemaBuilder.addSchemaForEntry(Connection connection, DN name, boolean overwrite) Reads the schema elements contained in the subschema sub-entry which applies to the named entry and adds them to this schema builder.Returns the named entry in order to enforce DIT structure rules.static SchemaSchema.readSchema(Connection connection, DN name) Reads the schema contained in the named subschema sub-entry.static SchemaSchema.readSchemaForEntry(Connection connection, DN name) Reads the schema contained in the subschema sub-entry which applies to the named entry. -
Uses of LdapException in org.forgerock.opendj.ldap.spi
Methods in org.forgerock.opendj.ldap.spi with type parameters of type LdapExceptionModifier and TypeMethodDescriptionstatic <R,E extends LdapException>
LdapPromise<R> LdapPromises.newFailedLdapPromise(E error) Returns aLdapPromiserepresenting an asynchronous task which has already failed with the provided error.static <R,E extends LdapException>
LdapPromise<R> LdapPromises.newFailedLdapPromise(E error, int requestID) Returns aLdapPromiserepresenting an asynchronous task, identified by the provided requestID, which has already failed with the provided error.Methods in org.forgerock.opendj.ldap.spi that return LdapExceptionModifier and TypeMethodDescriptionConnectionState.getConnectionError()Returns the error that caused the connection to fail, ornullif the connection has not failed.Methods in org.forgerock.opendj.ldap.spi that return types with arguments of type LdapExceptionModifier and TypeMethodDescriptionorg.forgerock.util.promise.Promise<Void, LdapException> Installs the TLS/SSL security layer on the underlying connection.org.forgerock.util.promise.Promise<LDAPConnectionImpl, LdapException> LDAPConnectionFactoryImpl.getConnectionAsync()Asynchronously obtains a connection to the Directory Server associated with this connection factory.Methods in org.forgerock.opendj.ldap.spi with parameters of type LdapExceptionModifier and TypeMethodDescriptionvoidLdapPromiseImpl.handleException(LdapException exception) booleanConnectionState.notifyConnectionError(boolean isDisconnectNotification, LdapException error) Attempts to transition this connection state to error and invokes event listeners if successful.Method parameters in org.forgerock.opendj.ldap.spi with type arguments of type LdapExceptionModifier and TypeMethodDescriptionstatic <R> LdapPromise<R> LdapPromises.asPromise(org.forgerock.util.promise.Promise<R, LdapException> wrappedPromise) Converts aPromiseto aLdapPromise.TransportProvider.getLDAPListener(Set<InetSocketAddress> addresses, org.forgerock.util.Function<LDAPClientContext, com.forgerock.reactive.ReactiveHandler<LDAPClientContext, LdapMessages.LdapRequestEnvelope, com.forgerock.reactive.Stream<Response>>, LdapException> factory, org.forgerock.util.Options options) Returns an implementation ofLDAPListener.Constructor parameters in org.forgerock.opendj.ldap.spi with type arguments of type LdapExceptionModifierConstructorDescriptionprotectedLdapPromiseImpl(org.forgerock.util.promise.PromiseImpl<S, LdapException> wrappedPromise, int requestID) Creates a newLdapPromiseImplfrom a wrapped existingPromiseImpl. -
Uses of LdapException in org.forgerock.opendj.ldif
Methods in org.forgerock.opendj.ldif that throw LdapExceptionModifier and TypeMethodDescriptionbooleanConnectionEntryReader.hasNext()booleanConnectionEntryReader.isEntry()Waits for the next search result entry or reference to become available and returnstrueif it is an entry, orfalseif it is a reference.booleanConnectionEntryReader.isReference()Waits for the next search result entry or reference to become available and returnstrueif it is a reference, orfalseif it is an entry.ConnectionEntryReader.readEntry()Waits for the next search result entry or reference to become available and, if it is an entry, returns it as aSearchResultEntry.ConnectionEntryReader.readReference()Waits for the next search result entry or reference to become available and, if it is a reference, returns it as aSearchResultReference.ConnectionEntryReader.readResult()Waits for the next search response to become available and returns it if it is a search result indicating that the search completed successfully.ConnectionChangeRecordWriter.writeChangeRecord(AddRequest change) Writes the provided Add request to the underlying connection, blocking until the request completes.ConnectionChangeRecordWriter.writeChangeRecord(DeleteRequest change) Writes the provided Delete request to the underlying connection, blocking until the request completes.ConnectionChangeRecordWriter.writeChangeRecord(ModifyDNRequest change) Writes the provided ModifyDN request to the underlying connection, blocking until the request completes.ConnectionChangeRecordWriter.writeChangeRecord(ModifyRequest change) Writes the provided Modify request to the underlying connection, blocking until the request completes.ConnectionChangeRecordWriter.writeChangeRecord(ChangeRecord change) Writes the provided change record to the underlying connection, blocking until the request completes.ConnectionEntryWriter.writeEntry(Entry entry) Writes an entry to the underlying connection using an Add request, blocking until the request completes.