Uses of Class
org.forgerock.util.Options
-
Packages that use Options Package Description org.forgerock.am.cts org.forgerock.am.cts.api org.forgerock.am.cts.queue org.forgerock.am.saml2.api This package contains the SAML2 SSO APIs.org.forgerock.am.saml2.impl This package contains the implementation of the SAML2 client APIs.org.forgerock.http.handler CoreHandler
implementations.org.forgerock.http.spi HTTP service provider API.org.forgerock.json.jose.jwe.handlers.encryption Encryption Handler classes for each possible encryption algorithm.org.forgerock.openam.ldap This package contains utility methods to ease/unify development when using the OpenDJ LDAP SDK.org.forgerock.opendj.io Classes and interfaces providing I/O functionality.org.forgerock.opendj.ldap Classes and interfaces for core types including connections, entries, and attributes.org.forgerock.opendj.ldap.spi Interfaces and classes for service providers.org.forgerock.opendj.ldif Classes and interfaces for reading and writing LDIF.org.forgerock.opendj.security An LDAP based security provider having the name "OpenDJ" and exposing an LDAP/LDIF basedKeyStore
service.org.forgerock.secrets Provides a unified API for accessing secrets of various kinds.org.forgerock.secrets.jwkset Secret store backend for retrieving keys from a local or remote JWK Set.org.forgerock.secrets.keystore Implementations ofSecretStore
for accessing keys stored in Java KeyStores, such as PKCS#11 Hardware Security Modules (HSMs) and PKCS#12 file-based encrypted key stores.org.forgerock.util Provides common interfaces and classes. -
-
Uses of Options in org.forgerock.am.cts
Methods in org.forgerock.am.cts with parameters of type Options Modifier and Type Method Description Collection<PartialToken>
CTSPersistentStore. attributeQuery(TokenFilter tokenFilter, Options options)
Performs a partial Token query against the store synchronously.void
CTSPersistentStore. attributeQueryAsync(TokenFilter tokenFilter, Options options, ResultHandler<Collection<PartialToken>,CoreTokenException> resultHandler)
Performs a partial Token query against the store synchronously.void
CTSPersistentStore. create(Token token, Options options)
Creates a Token in the persistent store synchronously.void
CTSPersistentStore. createAsync(Token token, Options options)
Creates a Token in the persistent store asynchronously.void
CTSPersistentStore. delete(String tokenId, Options options)
Delete the Token from the store synchronously based on its id.void
CTSPersistentStore. deleteAsync(String tokenId, Options options)
Delete the Token from the store asynchronously based on its id.void
CTSPersistentStore. deleteOnQueryAsync(TokenFilter tokenFilter, Options options)
Performs an asynchronous query against the persistent store using the provided TokenFilter and then deletes the matching tokens from the store.void
CTSPersistentStore. patch(String tokenId, TokenType tokenType, TokenModifications modifications, Options options)
Patches a token which already exists in the persistent store with modifications.void
CTSPersistentStore. patchAsync(String tokenId, TokenType tokenType, TokenModifications modifications, Options options)
Asynchronously patches a token which already exists in the persistent store with modifications.Collection<Token>
CTSPersistentStore. query(TokenFilter filter, Options options)
Performs a synchronous query against the persistent store using the provided TokenFilter.Token
CTSPersistentStore. read(String tokenId, Options options)
Read a Token from the persistent store synchronously.void
CTSPersistentStore. update(Token readState, Token updatedState, Options options)
Updates an existing Token in the store synchronously.void
CTSPersistentStore. updateAsync(Token readState, Token updatedState, Options options)
Updates an existing Token in the store asynchronously.void
CTSPersistentStore. upsert(Token token, Options options)
Updates an existing Token in the store synchronously.void
CTSPersistentStore. upsertAsync(Token token, Options options)
Updates an existing Token in the store asynchronously. -
Uses of Options in org.forgerock.am.cts.api
Methods in org.forgerock.am.cts.api that return Options Modifier and Type Method Description static <T> Options
CTSOptions. singleOption(Option<T> option, T value)
Methods in org.forgerock.am.cts.api with parameters of type Options Modifier and Type Method Description Token
TokenStorageAdapter. create(Token token, Options options)
Create the Token in the database.PartialToken
TokenStorageAdapter. delete(String tokenId, Options options)
Performs a delete against the Token ID provided.Collection<PartialToken>
TokenStorageAdapter. partialQuery(TokenFilter query, Options options)
Performs a partial query using the provided filter.PartialToken
TokenStorageAdapter. patch(String tokenId, TokenModifications modifications, Options options)
Performs a patch against the Token ID provided.Collection<Token>
TokenStorageAdapter. query(TokenFilter query, Options options)
Performs a full-token query using the provided filter.Token
TokenStorageAdapter. read(String tokenId, Options options)
Performs a read against the database connection and converts the result into a Token.Token
TokenStorageAdapter. update(Token previous, Token updated, Options options)
Update the Token based on whether there were any changes between the two. -
Uses of Options in org.forgerock.am.cts.queue
Methods in org.forgerock.am.cts.queue with parameters of type Options Modifier and Type Method Description void
TaskDispatcher. create(Token token, Options options, ResultHandler<Token,?> handler)
The CTS Token to create in the persistent store.void
TaskDispatcher. delete(String tokenId, Options options, ResultHandler<PartialToken,?> handler)
The Token ID, for a specific revision of the token, to delete from the persistent store.void
TaskDispatcher. partialQuery(TokenFilter tokenFilter, Options options, ResultHandler<Collection<PartialToken>,?> handler)
Perform a query against the persistent store and signal the results to the provided ResultHandler.void
TaskDispatcher. patch(String tokenId, TokenModifications modifications, Options options, ResultHandler<PartialToken,?> handler)
Patches a token in the persistent store.void
TaskDispatcher. query(TokenFilter tokenFilter, Options options, ResultHandler<Collection<Token>,?> handler)
Perform a query against the persistent store and signal the results to the provided ResultHandler.void
TaskDispatcher. read(String tokenId, Options options, ResultHandler<Token,?> handler)
The CTS Token to read from the persistent store.void
TaskDispatcher. update(Token readState, Token updatedState, Options options, ResultHandler<Token,?> handler)
The CTS Token to update in the persistent store.void
TaskDispatcher. upsert(Token token, Options options, ResultHandler<Token,?> handler)
The CTS Token to create or update in the persistent store. -
Uses of Options in org.forgerock.am.saml2.api
Methods in org.forgerock.am.saml2.api with parameters of type Options Modifier and Type Method Description Callback
Saml2SsoInitiator. initiateSso(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Realm realm, String spEntityId, String idpEntityId, Options saml2Options)
Initiates SAML2 SSO based on the provided parameters. -
Uses of Options in org.forgerock.am.saml2.impl
Methods in org.forgerock.am.saml2.impl with parameters of type Options Modifier and Type Method Description Callback
Saml2SpSsoInitiator. initiateSso(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Realm realm, String spEntityId, String idpEntityId, Options saml2Options)
-
Uses of Options in org.forgerock.http.handler
Constructors in org.forgerock.http.handler with parameters of type Options Constructor Description HttpClientHandler(Options options)
Creates a new HTTP client using the provided client options. -
Uses of Options in org.forgerock.http.spi
Methods in org.forgerock.http.spi with parameters of type Options Modifier and Type Method Description <S> S
Loader. load(Class<S> service, Options options)
Loads a service of the specified type.HttpClient
HttpClientProvider. newHttpClient(Options options)
Returns a newHttpClient
configured using the provided set of options. -
Uses of Options in org.forgerock.json.jose.jwe.handlers.encryption
Constructors in org.forgerock.json.jose.jwe.handlers.encryption with parameters of type Options Constructor Description RSAEncryptionHandler(EncryptionMethod encryptionMethod, JweAlgorithm jweAlgorithm, Options options)
Constructs a new RSAEncryptionHandler instance with the given options. -
Uses of Options in org.forgerock.openam.ldap
Methods in org.forgerock.openam.ldap with parameters of type Options Modifier and Type Method Description 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, 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 LdapConnectionFactory
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. 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. -
Uses of Options in org.forgerock.opendj.io
Methods in org.forgerock.opendj.io that return Options Modifier and Type Method Description Options
LdapSocketAcceptor. getOptions()
Returns a copy of the options currently used by this LDAP listener.Methods in org.forgerock.opendj.io with parameters of type Options Modifier and Type Method Description boolean
LdapSocketAcceptor. setOptions(Options newOptions)
Updates the options of this LDAP socket acceptor. -
Uses of Options in org.forgerock.opendj.ldap
Methods in org.forgerock.opendj.ldap that return Options Modifier and Type Method Description Options
LdapServer. getOptions()
Returns a copy of the options currently used by this LDAP listener.Methods in org.forgerock.opendj.ldap with parameters of type Options Modifier and Type Method Description static ModifyRequest
Entries. diffEntries(Entry fromEntry, Entry toEntry, Options options)
Creates a new modify request containing a list of modifications which can be used to transformfromEntry
into entrytoEntry
.static LdapClient
LdapClients. newAffinityRequestLoadBalancer(Collection<? extends LdapClient> clients, Options options)
Creates a new "affinity" load-balancer which will load-balance individual requests across the provided set of LDAP clients, each typically representing a single replica, using an algorithm that ensures that requests targeting a given DN will always be routed to the same replica.static LdapClient
LdapClients. newFailoverLoadBalancer(Collection<? extends LdapClient> clients, Options options)
Creates a new "fail-over" load-balancer which will load-balance connections across the provided set of LDAP clients.static LdapClient
LdapClients. newFixedSizeDistributionLoadBalancer(Set<Dn> partitionBaseDns, ConsistentHashMap<? extends LdapClient> partitions, Options options)
Creates a distribution load balancer which uses consistent hashing to distributes requests across a set of partitions based on a hash of each request's target DN.static LdapClient
LdapClients. newLdapClient(String host, int port, Options options)
Creates a new LDAP client which can be used to create LDAP connections to the Directory Server at the provided host and port number and custom options.static LdapClient
LdapClients. newLeastRequestsLoadBalancer(Collection<? extends LdapClient> clients, Options options)
Creates a new "least requests" load-balancer which will load-balance individual requests across the provided set of LDAP clients, each typically representing a single replica, using an algorithm that ensures that requests are routed to the replica which has the minimum number of active requests.boolean
LdapServer. setOptions(Options options)
Updates the options of this LDAP listener.Constructors in org.forgerock.opendj.ldap with parameters of type Options Constructor Description LdapConnectionFactory(String host, int port, Options options)
Creates a new LDAP connection factory which can be used to create LDAP connections to the Directory Server at the provided host and port number.LdapServer(int port, io.reactivex.functions.Function<LdapSession,io.reactivex.functions.BiFunction<Integer,Request,io.reactivex.Flowable<Response>>> factory, Options options)
Creates a new LDAP listener implementation which will listen for LDAP client connections at the provided address.LdapServer(String host, int port, io.reactivex.functions.Function<LdapSession,io.reactivex.functions.BiFunction<Integer,Request,io.reactivex.Flowable<Response>>> factory, Options options)
Creates a new LDAP listener implementation which will listen for LDAP client connections at the provided address.LdapServer(Set<InetSocketAddress> addresses, io.reactivex.functions.Function<LdapSession,io.reactivex.functions.BiFunction<Integer,Request,io.reactivex.Flowable<Response>>> factory, Options options)
Creates a new LDAP listener implementation which will listen for LDAP client connections at the provided address. -
Uses of Options in org.forgerock.opendj.ldap.spi
Methods in org.forgerock.opendj.ldap.spi with parameters of type Options Modifier and Type Method Description LdapSocketAcceptor
TransportProvider. newLdapSocketAcceptor(Set<InetSocketAddress> addresses, Options options, Consumer<LdapSocket> handler)
Returns an implementation ofLdapSocketAcceptor
.LdapSocketConnector
TransportProvider. newLdapSocketConnector(String host, int port, Options options)
Returns an implementation ofLdapSocketConnector
. -
Uses of Options in org.forgerock.opendj.ldif
Methods in org.forgerock.opendj.ldif with parameters of type Options Modifier and Type Method Description static ChangeRecordReader
Ldif. diff(EntryReader source, EntryReader target, Options options)
Compares the content ofsource
to the content oftarget
and returns the differences in a change record reader. -
Uses of Options in org.forgerock.opendj.security
Methods in org.forgerock.opendj.security with parameters of type Options Modifier and Type Method Description 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, Options options)
Creates a new LDAP key store with custom options.static KeyStore
OpenDjSecurityProvider. newLdifKeyStore(File ldifFile, Dn baseDN, Options options)
Creates a new LDIF based key store which will read and write key store objects to the provided key store file. -
Uses of Options in org.forgerock.secrets
Methods in org.forgerock.secrets with parameters of type Options Modifier and Type Method Description X509ExtendedKeyManager
SecretsProvider. getKeyManager(Purpose<? extends CryptoKey> purpose, Options options)
Returns aKeyManager
that can be used toinitialize an SSLContext
, allowing certificates and private keys to be retrieved from this secrets provider.SecretsTrustManager
SecretsProvider. getTrustManager(Purpose<? extends CryptoKey> purpose, Options options)
Constructs anX509ExtendedTrustManager
that will retrieve certificates from this secrets provider for the provided purpose. -
Uses of Options in org.forgerock.secrets.jwkset
Constructors in org.forgerock.secrets.jwkset with parameters of type Options Constructor Description JwkSetSecretStore(JWKSet jwkSet, Options options)
Creates a secret store directly from the given JWK Set. -
Uses of Options in org.forgerock.secrets.keystore
Constructors in org.forgerock.secrets.keystore with parameters of type Options Constructor Description KeyStoreSecretStore(Function<char[],KeyStore,KeyStoreException> keyStoreLoader, SecretReference<GenericSecret> keyStorePassword, SecretReference<GenericSecret> keyEntryPassword, Options options, KeyStoreSecretStore.StableIdProvider stableIdProvider)
Initialises the key store.KeyStoreSecretStore(Function<char[],KeyStore,KeyStoreException> keyStoreLoader, SecretReference<GenericSecret> keyStorePassword, Options options)
Initialises the keystore using the same password for the keystore and all keys. -
Uses of Options in org.forgerock.util
Methods in org.forgerock.util that return Options Modifier and Type Method Description static Options
Options. copyOf(Options options)
Returns a copy of the provided set of options.static Options
Options. defaultOptions()
Returns a new set of options with default settings.<T> Options
Options. reset(Option<T> option)
Resets an option to its default behavior.<T> Options
Options. set(Option<T> option, T value)
Sets an option to the provided value.static Options
Options. unmodifiableCopyOf(Options options)
Returns an unmodifiable copy of the provided set of options.static Options
Options. unmodifiableDefaultOptions()
Returns an unmodifiable set of options with default settings.Methods in org.forgerock.util with parameters of type Options Modifier and Type Method Description static Options
Options. copyOf(Options options)
Returns a copy of the provided set of options.static Options
Options. unmodifiableCopyOf(Options options)
Returns an unmodifiable copy of the provided set of options.
-