Uses of Interface
org.forgerock.opendj.ldap.ConnectionFactory
Package
Description
This package contains utility methods to ease/unify development when using the OpenDJ LDAP SDK.
Classes and interfaces for core types including connections, entries, and
attributes.
An LDAP based security provider having the name "OpenDJ" and exposing an LDAP/LDIF based
KeyStore
service.-
Uses of ConnectionFactory in org.forgerock.openam.ldap
Modifier and TypeMethodDescriptionstatic ConnectionFactory
LDAPUtils.createFailoverConnectionFactory
(String host, int defaultPort, boolean ssl, String authDN, String authPasswd, boolean mtlsEnabled, String mtlsSecretId, Realm realm, Secrets secrets, Options options) Creates a ConnectionFactory from the host string and associated details.static ConnectionFactory
LDAPUtils.createFailoverConnectionFactory
(String host, int defaultPort, boolean ssl, String authDN, String authPasswd, Options options) Creates a ConnectionFactory from the host string and associated details.static ConnectionFactory
LDAPUtils.newFailoverConnectionFactory
(Set<org.forgerock.openam.ldap.LDAPURL> servers, String username, char[] password, int heartBeatInterval, String heartBeatTimeUnit, boolean useStartTls, boolean sslTrustAll, boolean mtlsEnabled, String mtlsSecretId, Realm realm, Secrets secrets, Options ldapOptions) Creates a new connection factory that is capable to failover to the servers defined in case there is an error.static ConnectionFactory
LDAPUtils.newFailoverConnectionFactory
(Set<org.forgerock.openam.ldap.LDAPURL> servers, String username, char[] password, int heartBeatInterval, String heartBeatTimeUnit, boolean useStartTls, boolean sslTrustAll, Options ldapOptions) Creates a new connection factory that is capable to failover to the servers defined in case there is an error.static ConnectionFactory
LDAPUtils.newFailoverConnectionPool
(Set<org.forgerock.openam.ldap.LDAPURL> servers, String username, char[] password, int maxSize, int heartBeatInterval, String heartBeatTimeUnit, boolean useStartTLS, boolean sslTrustAll, Options ldapOptions) Creates a new connection pool that is capable to failover to the servers defined in case there is an error.static ConnectionFactory
LDAPUtils.newFailoverConnectionPool
(Set<org.forgerock.openam.ldap.LDAPURL> servers, String username, char[] password, int maxSize, int heartBeatInterval, String heartBeatTimeUnit, boolean useStartTLS, boolean sslTrustAll, Options ldapOptions, boolean mtlsEnabled, String mtlsSecretId, Secrets secrets, Realm realm) Creates a new connection pool that is capable to failover to the servers defined in case there is an error.static ConnectionFactory
LDAPUtils.newFailoverConnectionPool
(Set<org.forgerock.openam.ldap.LDAPURL> primaryUrls, Set<org.forgerock.openam.ldap.LDAPURL> secondaryUrls, String username, char[] password, int maxSize, int heartBeatInterval, String heartBeatTimeUnit, boolean useStartTLS, boolean sslTrustAll, boolean mtlsEnabled, String mtlsCertificateLabel, Realm realm, Secrets secrets, Options ldapOptions) Creates a new connection pool that is capable to failover from the primary to the secondary servers defined in case there is an error.static ConnectionFactory
LDAPUtils.newFailoverConnectionPool
(Set<org.forgerock.openam.ldap.LDAPURL> primaryUrls, Set<org.forgerock.openam.ldap.LDAPURL> secondaryUrls, String username, char[] password, int maxSize, int heartBeatInterval, String heartBeatTimeUnit, boolean useStartTLS, boolean sslTrustAll, Options ldapOptions) Creates a new connection pool that is capable to failover from the primary to the secondary servers defined in case there is an error.static ConnectionFactory
LDAPUtils.newNamedConnectionFactory
(ConnectionFactory factory, String name) Creates a new connection factory which forwards connection requests to the provided factory, but whosetoString
method will always returnname
.static ConnectionFactory
LDAPUtils.newPasswordConnectionFactory
(Set<org.forgerock.openam.ldap.LDAPURL> servers, String username, char[] password, int maxSize, int heartBeatInterval, String heartBeatTimeUnit, boolean useStartTLS, boolean sslTrustAll, Options ldapOptions) Creates a new connection pooled connection factory that is capable to failover to the servers defined in case there is an error.static ConnectionFactory
LDAPUtils.newPasswordConnectionFactory
(Set<org.forgerock.openam.ldap.LDAPURL> primaryServers, Set<org.forgerock.openam.ldap.LDAPURL> secondaryServers, String username, char[] password, int maxSize, int heartBeatInterval, String heartBeatTimeUnit, boolean useStartTLS, boolean sslTrustAll, Options ldapOptions) Creates a new connection pooled connection factory that is capable to failover to the servers defined in case there is an error.static ConnectionFactory
LDAPUtils.newPrioritizedFailoverConnectionFactory
(Set<String> servers, String hostServerId, String hostSiteId, String username, char[] password, int heartBeatInterval, String heartBeatTimeUnit, boolean useStartTLS, boolean sslTrustAll, Options options) Based on the incoming parameters prioritizes the LDAP server list, then creates a connection factory that is capable to failover to the servers defined in case there is an error.static ConnectionFactory
LDAPUtils.newPrioritizedFailoverConnectionPool
(Set<String> servers, String hostServerId, String hostSiteId, String username, char[] password, int maxSize, int heartBeatInterval, String heartBeatTimeUnit, boolean useStartTLS, boolean sslTrustAll, Options ldapOptions) Based on the incoming parameters prioritizes the LDAP server list, then creates a connection pool that is capable to failover to the servers defined in case there is an error.Modifier and TypeMethodDescriptionstatic ConnectionFactory
LDAPUtils.newNamedConnectionFactory
(ConnectionFactory factory, String name) Creates a new connection factory which forwards connection requests to the provided factory, but whosetoString
method will always returnname
. -
Uses of ConnectionFactory in org.forgerock.opendj.ldap
Modifier and TypeClassDescriptionfinal class
A factory class which can be used to obtain connections to an LDAP Directory Server.Modifier and TypeMethodDescriptionstatic ConnectionFactory
Connections.newInternalConnectionFactory
(io.reactivex.rxjava3.functions.BiFunction<Integer, Request, io.reactivex.rxjava3.core.Flowable<Response>> requestHandler) Creates a newConnectionFactory
which will route requests to the providedrequestHandler
.static ConnectionFactory
Connections.uncloseable
(ConnectionFactory factory) Returns an uncloseable view of the provided connection factory.Modifier and TypeMethodDescriptionstatic ConnectionFactory
Connections.uncloseable
(ConnectionFactory factory) Returns an uncloseable view of the provided connection factory. -
Uses of ConnectionFactory in org.forgerock.opendj.security
Modifier and TypeMethodDescriptionstatic KeyStoreParameters
KeyStoreParameters.newKeyStoreParameters
(ConnectionFactory factory, Dn baseDN) Creates a set of LDAP key store parameters with default options.static KeyStoreParameters
KeyStoreParameters.newKeyStoreParameters
(ConnectionFactory factory, Dn baseDN, Options options) Creates a set of LDAP key store parameters with custom options.static KeyStore
OpenDjSecurityProvider.newLdapKeyStore
(ConnectionFactory factory, Dn baseDN) Creates a new LDAP key store with default options.static KeyStore
OpenDjSecurityProvider.newLdapKeyStore
(ConnectionFactory factory, Dn baseDN, Options options) Creates a new LDAP key store with custom options.