Uses of Interface
org.forgerock.util.promise.Promise
Package
Description
Package contains the AuditService.
This package contains the default
AuditEventHandlers
.This package contains the batch publisher and its various implementations.
This package contains the default AuditEventHandler implementations.
This package contains the Elasticsearch
AuditEventHandler
implementation.This package contains a JMS AuditEventHandler implementation.
This package contains the JSON-file
AuditEventHandler
implementation.This package contains the JSON-stdout
AuditEventHandler
implementation.This package contains the audit handler implementation for Splunk.
This package contains a Syslog AuditEventHandler implementation.
Provides an API for the traversal and manipulation of JSON object model structures in Java.
Classes and interfaces for core types including connections, request
handlers, resources, and their exceptions.
Common utility classes for monitoring.
Common utility classes for monitoring.
Classes and interfaces for core types including connections, entries, and
attributes.
APIs for implementing REST to LDAP gateways.
This package contains
Filter
to authenticate and authorize LDAP connections.Provides a unified API for accessing secrets of various kinds.
Contains secret credential related API objects.
Implementations of
SecretStore
for accessing keys stored in Java KeyStores, such as
PKCS#11 Hardware Security Modules (HSMs) and PKCS#12 file-based encrypted key stores.Provides a
SecretStore
implementation that loads secrets from a Common Configuration
PropertyResolver
and then decodes it with a
SecretPropertyFormat
.Provides common interfaces and classes.
An implementation of the
Promise
API in Java.Contains the implementation for the Directory Server connection handler that is responsible for interacting with
clients using HTTP.
-
Uses of Promise in org.forgerock.audit
Modifier and TypeMethodDescriptionAuditService.handleAction
(org.forgerock.services.context.Context context, ActionRequest request) Audit service may support actions on the service itself or on handlers.AuditServiceProxy.handleAction
(org.forgerock.services.context.Context context, ActionRequest request) AuditService.handleCreate
(org.forgerock.services.context.Context context, CreateRequest request) Propagates the audit event to theAuditEventHandler
objects that have been registered for the audit event topic.AuditServiceProxy.handleCreate
(org.forgerock.services.context.Context context, CreateRequest request) AuditService.handleDelete
(org.forgerock.services.context.Context context, DeleteRequest request) Audit service does not support changing audit entries.AuditServiceProxy.handleDelete
(org.forgerock.services.context.Context context, DeleteRequest request) AuditService.handlePatch
(org.forgerock.services.context.Context context, PatchRequest request) Audit service does not support changing audit entries.AuditServiceProxy.handlePatch
(org.forgerock.services.context.Context context, PatchRequest request) AuditService.handleQuery
(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler) Performs the query on the specified object and returns the associated results.AuditServiceProxy.handleQuery
(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler) AuditService.handleRead
(org.forgerock.services.context.Context context, ReadRequest request) Gets an object from the audit logs by identifier.AuditServiceProxy.handleRead
(org.forgerock.services.context.Context context, ReadRequest request) AuditService.handleUpdate
(org.forgerock.services.context.Context context, UpdateRequest request) Audit service does not support changing audit entries.AuditServiceProxy.handleUpdate
(org.forgerock.services.context.Context context, UpdateRequest request) -
Uses of Promise in org.forgerock.audit.events.handlers
Modifier and TypeMethodDescriptionAuditEventHandler.handleAction
(org.forgerock.services.context.Context context, String topic, ActionRequest request) Performs an action.AuditEventHandlerBase.handleAction
(org.forgerock.services.context.Context context, String topic, ActionRequest request) AuditEventHandler.publishEvent
(org.forgerock.services.context.Context context, String topic, JsonValue event) Publishes an event to the provided topic.NoOpAuditEventHandler.publishEvent
(org.forgerock.services.context.Context context, String topic, JsonValue event) AuditEventHandler.queryEvents
(org.forgerock.services.context.Context context, String topic, QueryRequest query, QueryResourceHandler handler) Query some events from the provided topic.NoOpAuditEventHandler.queryEvents
(org.forgerock.services.context.Context context, String topic, QueryRequest query, QueryResourceHandler handler) AuditEventHandler.readEvent
(org.forgerock.services.context.Context context, String topic, String resourceId) Reads an event with the provided resource id from the provided topic.NoOpAuditEventHandler.readEvent
(org.forgerock.services.context.Context context, String topic, String resourceId) -
Uses of Promise in org.forgerock.audit.events.handlers.buffering
Modifier and TypeMethodDescriptionBatchConsumer.publishBatch
(String payload) Publishes the batch payload. -
Uses of Promise in org.forgerock.audit.handlers.csv
Modifier and TypeMethodDescriptionCsvAuditEventHandler.handleAction
(org.forgerock.services.context.Context context, String topic, ActionRequest request) CsvAuditEventHandler.publishEvent
(org.forgerock.services.context.Context context, String topic, JsonValue event) Create a csv audit log entry.CsvAuditEventHandler.queryEvents
(org.forgerock.services.context.Context context, String topic, QueryRequest query, QueryResourceHandler handler) Perform a query on the csv audit log.CsvAuditEventHandler.readEvent
(org.forgerock.services.context.Context context, String topic, String resourceId) Read from the csv audit log. -
Uses of Promise in org.forgerock.audit.handlers.elasticsearch
Modifier and TypeMethodDescriptionElasticsearchAuditEventHandler.publishBatch
(String payload) Publishes a Bulk API payload to Elasticsearch.ElasticsearchAuditEventHandler.publishEvent
(org.forgerock.services.context.Context context, String topic, JsonValue event) protected Promise<ResourceResponse,
ResourceException> ElasticsearchAuditEventHandler.publishSingleEvent
(String topic, JsonValue event) Publishes a single event to the provided topic.ElasticsearchAuditEventHandler.queryEvents
(org.forgerock.services.context.Context context, String topic, QueryRequest query, QueryResourceHandler handler) Queries the Elasticsearch Search API for audit events.ElasticsearchAuditEventHandler.readEvent
(org.forgerock.services.context.Context context, String topic, String resourceId) -
Uses of Promise in org.forgerock.audit.handlers.jms
Modifier and TypeMethodDescriptionJmsAuditEventHandler.publishBatch
(String payload) JmsAuditEventHandler.publishEvent
(org.forgerock.services.context.Context context, String topic, JsonValue event) JmsAuditEventHandler.queryEvents
(org.forgerock.services.context.Context context, String topic, QueryRequest queryRequest, QueryResourceHandler queryResourceHandler) Returns NotSupportedException as query is not implemented for JMS.JmsAuditEventHandler.readEvent
(org.forgerock.services.context.Context context, String topic, String resourceId) Returns NotSupportedException as read is not implemented for JMS. -
Uses of Promise in org.forgerock.audit.handlers.json
Modifier and TypeMethodDescriptionJsonAuditEventHandler.handleAction
(org.forgerock.services.context.Context context, String topic, ActionRequest request) JsonAuditEventHandler.publishEvent
(org.forgerock.services.context.Context context, String topic, JsonValue event) JsonAuditEventHandler.queryEvents
(org.forgerock.services.context.Context context, String topic, QueryRequest query, QueryResourceHandler handler) JsonAuditEventHandler.readEvent
(org.forgerock.services.context.Context context, String topic, String resourceId) -
Uses of Promise in org.forgerock.audit.handlers.json.stdout
Modifier and TypeMethodDescriptionJsonStdoutAuditEventHandler.publishEvent
(org.forgerock.services.context.Context context, String topic, JsonValue event) JsonStdoutAuditEventHandler.queryEvents
(org.forgerock.services.context.Context context, String topic, QueryRequest query, QueryResourceHandler handler) JsonStdoutAuditEventHandler.readEvent
(org.forgerock.services.context.Context context, String topic, String resourceId) -
Uses of Promise in org.forgerock.audit.handlers.splunk
Modifier and TypeMethodDescriptionSplunkAuditEventHandler.publishBatch
(String payload) SplunkAuditEventHandler.publishEvent
(org.forgerock.services.context.Context context, String topic, JsonValue event) SplunkAuditEventHandler.queryEvents
(org.forgerock.services.context.Context context, String topic, QueryRequest query, QueryResourceHandler handler) SplunkAuditEventHandler.readEvent
(org.forgerock.services.context.Context context, String topic, String resourceId) -
Uses of Promise in org.forgerock.audit.handlers.syslog
Modifier and TypeMethodDescriptionSyslogAuditEventHandler.publishEvent
(org.forgerock.services.context.Context context, String topic, JsonValue event) SyslogAuditEventHandler.queryEvents
(org.forgerock.services.context.Context context, String topic, QueryRequest queryRequest, QueryResourceHandler queryResourceHandler) SyslogAuditEventHandler.readEvent
(org.forgerock.services.context.Context context, String topic, String resourceId) -
Uses of Promise in org.forgerock.json
Modifier and TypeMethodDescriptionJsonValue.asAsync
(AsyncFunction<JsonValue, V, E> transformFunction) Returns the JSON value as a promised object whose type (and value) is specified by a transformation function. -
Uses of Promise in org.forgerock.json.resource
Modifier and TypeMethodDescriptionAbstractConnectionWrapper.actionAsync
(org.forgerock.services.context.Context context, ActionRequest request) Asynchronously performs an action against a specific resource, or set of resources.Connection.actionAsync
(org.forgerock.services.context.Context context, ActionRequest request) Asynchronously performs an action against a specific resource, or set of resources.default Promise<ActionResponse,
ResourceException> CollectionResourceProvider.actionCollection
(org.forgerock.services.context.Context context, ActionRequest request) Performs the providedaction
against the resource collection.MemoryBackend.actionCollection
(org.forgerock.services.context.Context context, ActionRequest request) Performs the providedaction
against the resource collection.default Promise<ActionResponse,
ResourceException> CollectionResourceProvider.actionInstance
(org.forgerock.services.context.Context context, String resourceId, ActionRequest request) Performs the providedaction
against a resource within the collection.MemoryBackend.actionInstance
(org.forgerock.services.context.Context context, String id, ActionRequest request) Performs the providedaction
against a resource within the collection.default Promise<ActionResponse,
ResourceException> SingletonResourceProvider.actionInstance
(org.forgerock.services.context.Context context, ActionRequest request) Performs the providedaction
against the single resource instance.ActionResponse.asPromise()
Return this response as a result Promise.QueryResponse.asPromise()
Return this response as a result Promise.<V> Promise<V,
ResourceException> ResourceException.asPromise()
Return this ResourceException as a Promise.ResourceResponse.asPromise()
Return this response as a result Promise.AbstractConnectionWrapper.createAsync
(org.forgerock.services.context.Context context, CreateRequest request) Asynchronously adds a new JSON resource.Connection.createAsync
(org.forgerock.services.context.Context context, CreateRequest request) Asynchronously adds a new JSON resource.default Promise<ResourceResponse,
ResourceException> CollectionResourceProvider.createInstance
(org.forgerock.services.context.Context context, CreateRequest request) Adds
a new resource instance to the collection.MemoryBackend.createInstance
(org.forgerock.services.context.Context context, CreateRequest request) Adds
a new resource instance to the collection.AbstractConnectionWrapper.deleteAsync
(org.forgerock.services.context.Context context, DeleteRequest request) Asynchronously deletes a JSON resource.Connection.deleteAsync
(org.forgerock.services.context.Context context, DeleteRequest request) Asynchronously deletes a JSON resource.default Promise<ResourceResponse,
ResourceException> CollectionResourceProvider.deleteInstance
(org.forgerock.services.context.Context context, String resourceId, DeleteRequest request) Removes
a resource instance from the collection.MemoryBackend.deleteInstance
(org.forgerock.services.context.Context context, String id, DeleteRequest request) Removes
a resource instance from the collection.Filter.filterAction
(org.forgerock.services.context.Context context, ActionRequest request, RequestHandler next) Filters an action request.ResourceApiVersionRoutingFilter.filterAction
(org.forgerock.services.context.Context context, ActionRequest request, RequestHandler next) ResourceApiVersionSpecificationFilter.filterAction
(org.forgerock.services.context.Context context, ActionRequest request, RequestHandler next) Filter.filterCreate
(org.forgerock.services.context.Context context, CreateRequest request, RequestHandler next) Filters a create request.ResourceApiVersionRoutingFilter.filterCreate
(org.forgerock.services.context.Context context, CreateRequest request, RequestHandler next) ResourceApiVersionSpecificationFilter.filterCreate
(org.forgerock.services.context.Context context, CreateRequest request, RequestHandler next) Filter.filterDelete
(org.forgerock.services.context.Context context, DeleteRequest request, RequestHandler next) Filters a delete request.ResourceApiVersionRoutingFilter.filterDelete
(org.forgerock.services.context.Context context, DeleteRequest request, RequestHandler next) ResourceApiVersionSpecificationFilter.filterDelete
(org.forgerock.services.context.Context context, DeleteRequest request, RequestHandler next) Filter.filterPatch
(org.forgerock.services.context.Context context, PatchRequest request, RequestHandler next) Filters a patch request.ResourceApiVersionRoutingFilter.filterPatch
(org.forgerock.services.context.Context context, PatchRequest request, RequestHandler next) ResourceApiVersionSpecificationFilter.filterPatch
(org.forgerock.services.context.Context context, PatchRequest request, RequestHandler next) Filter.filterQuery
(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler, RequestHandler next) Filters a query request.ResourceApiVersionRoutingFilter.filterQuery
(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler, RequestHandler next) ResourceApiVersionSpecificationFilter.filterQuery
(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler, RequestHandler next) Filter.filterRead
(org.forgerock.services.context.Context context, ReadRequest request, RequestHandler next) Filters a read request.ResourceApiVersionRoutingFilter.filterRead
(org.forgerock.services.context.Context context, ReadRequest request, RequestHandler next) ResourceApiVersionSpecificationFilter.filterRead
(org.forgerock.services.context.Context context, ReadRequest request, RequestHandler next) Filter.filterUpdate
(org.forgerock.services.context.Context context, UpdateRequest request, RequestHandler next) Filters an update request.ResourceApiVersionRoutingFilter.filterUpdate
(org.forgerock.services.context.Context context, UpdateRequest request, RequestHandler next) ResourceApiVersionSpecificationFilter.filterUpdate
(org.forgerock.services.context.Context context, UpdateRequest request, RequestHandler next) ConnectionFactory.getConnectionAsync()
Asynchronously obtains a connection to the JSON resource provider associated with this connection factory.FilterChain.handleAction
(org.forgerock.services.context.Context context, ActionRequest request) default Promise<ActionResponse,
ResourceException> RequestHandler.handleAction
(org.forgerock.services.context.Context context, ActionRequest request) Handles performing an action on a resource, and optionally returns an associated result.Router.handleAction
(org.forgerock.services.context.Context context, ActionRequest request) FilterChain.handleCreate
(org.forgerock.services.context.Context context, CreateRequest request) default Promise<ResourceResponse,
ResourceException> RequestHandler.handleCreate
(org.forgerock.services.context.Context context, CreateRequest request) Adds a new JSON resource, returning aPromise
that will be completed when the resource has been added.Router.handleCreate
(org.forgerock.services.context.Context context, CreateRequest request) FilterChain.handleDelete
(org.forgerock.services.context.Context context, DeleteRequest request) default Promise<ResourceResponse,
ResourceException> RequestHandler.handleDelete
(org.forgerock.services.context.Context context, DeleteRequest request) Deletes a JSON resource, returning aPromise
that will be completed when the resource has been deleted.Router.handleDelete
(org.forgerock.services.context.Context context, DeleteRequest request) FilterChain.handlePatch
(org.forgerock.services.context.Context context, PatchRequest request) default Promise<ResourceResponse,
ResourceException> RequestHandler.handlePatch
(org.forgerock.services.context.Context context, PatchRequest request) Updates a JSON resource by applying a set of changes to its existing content, returning aPromise
that will be completed when the resource has been updated.Router.handlePatch
(org.forgerock.services.context.Context context, PatchRequest request) FilterChain.handleQuery
(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler) default Promise<QueryResponse,
ResourceException> RequestHandler.handleQuery
(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler) Searches for all JSON resources matching a user specified set of criteria, returning aPromise
that will be completed when the search has completed.Router.handleQuery
(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler) FilterChain.handleRead
(org.forgerock.services.context.Context context, ReadRequest request) default Promise<ResourceResponse,
ResourceException> RequestHandler.handleRead
(org.forgerock.services.context.Context context, ReadRequest request) Reads a JSON resource, returning aPromise
that will be completed when the resource has been read.Router.handleRead
(org.forgerock.services.context.Context context, ReadRequest request) FilterChain.handleUpdate
(org.forgerock.services.context.Context context, UpdateRequest request) default Promise<ResourceResponse,
ResourceException> RequestHandler.handleUpdate
(org.forgerock.services.context.Context context, UpdateRequest request) Updates a JSON resource by replacing its existing content with new content, returning aPromise
that will be completed when the resource has been updated.Router.handleUpdate
(org.forgerock.services.context.Context context, UpdateRequest request) AbstractConnectionWrapper.patchAsync
(org.forgerock.services.context.Context context, PatchRequest request) Asynchronously updates a JSON resource by applying a set of changes to its existing content.Connection.patchAsync
(org.forgerock.services.context.Context context, PatchRequest request) Asynchronously updates a JSON resource by applying a set of changes to its existing content.default Promise<ResourceResponse,
ResourceException> CollectionResourceProvider.patchInstance
(org.forgerock.services.context.Context context, String resourceId, PatchRequest request) Patches
an existing resource within the collection.MemoryBackend.patchInstance
(org.forgerock.services.context.Context context, String id, PatchRequest request) Patches
an existing resource within the collection.default Promise<ResourceResponse,
ResourceException> SingletonResourceProvider.patchInstance
(org.forgerock.services.context.Context context, PatchRequest request) Patches
the single resource instance.AbstractConnectionWrapper.queryAsync
(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler) Asynchronously searches for all JSON resources matching a user specified set of criteria, and returns aPromise
that will be completed with the results of the search.Connection.queryAsync
(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler) Asynchronously searches for all JSON resources matching a user specified set of criteria, and returns aPromise
that will be completed with the results of the search.default Promise<QueryResponse,
ResourceException> CollectionResourceProvider.queryCollection
(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler) Searches
the collection for all resources which match the query request criteria.MemoryBackend.queryCollection
(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler) Searches
the collection for all resources which match the query request criteria.AbstractConnectionWrapper.readAsync
(org.forgerock.services.context.Context context, ReadRequest request) Asynchronously reads a JSON resource.Connection.readAsync
(org.forgerock.services.context.Context context, ReadRequest request) Asynchronously reads a JSON resource.default Promise<ResourceResponse,
ResourceException> CollectionResourceProvider.readInstance
(org.forgerock.services.context.Context context, String resourceId, ReadRequest request) Reads
an existing resource within the collection.MemoryBackend.readInstance
(org.forgerock.services.context.Context context, String id, ReadRequest request) Reads
an existing resource within the collection.default Promise<ResourceResponse,
ResourceException> SingletonResourceProvider.readInstance
(org.forgerock.services.context.Context context, ReadRequest request) Reads
the single resource instance.AbstractConnectionWrapper.updateAsync
(org.forgerock.services.context.Context context, UpdateRequest request) Asynchronously updates a JSON resource by replacing its existing content with new content.Connection.updateAsync
(org.forgerock.services.context.Context context, UpdateRequest request) Asynchronously updates a JSON resource by replacing its existing content with new content.default Promise<ResourceResponse,
ResourceException> CollectionResourceProvider.updateInstance
(org.forgerock.services.context.Context context, String resourceId, UpdateRequest request) Updates
an existing resource within the collection.MemoryBackend.updateInstance
(org.forgerock.services.context.Context context, String id, UpdateRequest request) Updates
an existing resource within the collection.default Promise<ResourceResponse,
ResourceException> SingletonResourceProvider.updateInstance
(org.forgerock.services.context.Context context, UpdateRequest request) Updates
the single resource instance. -
Uses of Promise in org.forgerock.monitoring
Modifier and TypeMethodDescriptionDropwizardMetricsCollectionResourceProvider.queryCollection
(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler) DropwizardMetricsCollectionResourceProvider.readInstance
(org.forgerock.services.context.Context context, String resourceId, ReadRequest request) -
Uses of Promise in org.forgerock.monitoring.http
Modifier and TypeMethodDescriptionPromise<org.forgerock.http.protocol.Response,
NeverThrowsException> PrometheusHandler.handle
(org.forgerock.services.context.Context context, org.forgerock.http.protocol.Request request) -
Uses of Promise in org.forgerock.opendj.ldap
Modifier and TypeInterfaceDescriptioninterface
LdapPromise<S>
A handle which can be used to retrieve the Result of an asynchronous Request.Modifier and TypeMethodDescriptionConnectionFactory.getConnectionAsync()
Asynchronously obtains a connection to the Directory Server associated with this connection factory.LdapConnectionFactory.getConnectionAsync()
Transforms a Maybe into a Promise.Transforms a Single into a Promise.static <V> Promise<V,
NeverThrowsException> Utils.toPromiseNoError
(Single<V> single) Transforms a Single into a Promise which do not throws exceptions. -
Uses of Promise in org.forgerock.opendj.rest2ldap
Modifier and TypeMethodDescriptionPromise<org.forgerock.http.protocol.Response,
NeverThrowsException> ErrorLoggerFilter.filter
(org.forgerock.services.context.Context context, org.forgerock.http.protocol.Request request, org.forgerock.http.Handler next) DescribableRequestHandler.handleAction
(org.forgerock.services.context.Context context, ActionRequest request) DescribableRequestHandler.handleCreate
(org.forgerock.services.context.Context context, CreateRequest request) DescribableRequestHandler.handleDelete
(org.forgerock.services.context.Context context, DeleteRequest request) DescribableRequestHandler.handlePatch
(org.forgerock.services.context.Context context, PatchRequest request) DescribableRequestHandler.handleQuery
(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler) DescribableRequestHandler.handleRead
(org.forgerock.services.context.Context context, ReadRequest request) DescribableRequestHandler.handleUpdate
(org.forgerock.services.context.Context context, UpdateRequest request) -
Uses of Promise in org.forgerock.opendj.rest2ldap.authz
Modifier and TypeMethodDescription<S extends Secret>
Promise<Stream<S>,NeverThrowsException> Promise<org.forgerock.json.jose.jws.SignedJwt,
NoSuchSecretException> JwtFactories.SignedJwtFactory.sign
(Function<org.forgerock.json.jose.builders.JwtClaimsSetBuilder, org.forgerock.json.jose.builders.JwtClaimsSetBuilder> claimsSetMapper) Returns aSignedJwt
produced by this factory.Promise<org.forgerock.json.jose.jws.SignedJwt,
ResourceException> Verifies the given bearerToken is a validSignedJwt
. -
Uses of Promise in org.forgerock.secrets
Modifier and TypeMethodDescriptionSecretDecoder.decodeToPromise
(byte[] data) Decodes the raw data retrieved from a backend into aSecretBuilder
for further processing.default <S extends T>
Promise<S,NoSuchSecretException> Returns the active secret for the given purpose.<S extends T>
Promise<S,NoSuchSecretException> <S extends Secret>
Promise<S,NoSuchSecretException> SecretsProvider.getActiveSecret
(Purpose<S> purpose) Gets the currently active secret for the given purpose.SecretReference.getAsync()
Gets the current active secret object asynchronously, refreshing it if necessary.ValidSecretsReference.getAsync()
Gets the secrets asynchronously, refreshing them if necessary.default <S extends T>
Promise<S,NoSuchSecretException> Returns the named secret from this store.<S extends T>
Promise<S,NoSuchSecretException> <S extends Secret>
Promise<Stream<S>,NeverThrowsException> SecretsProvider.getNamedOrValidSecrets
(Purpose<S> purpose, String id) If the given id is not null, then this returns the single named secret that corresponds to that stable id (or a stream of valid secrets for the givenpurpose
if no such secret exists), otherwise it returns all valid secrets for the given purpose.<S extends Secret>
Promise<S,NoSuchSecretException> SecretsProvider.getNamedSecret
(Purpose<S> purpose, String id) Gets the secret for the given purpose with the given stable secret id.<S extends T>
Promise<Stream<S>,NeverThrowsException> Returns all valid secrets for the given purpose from this store.<S extends T>
Promise<Stream<S>,NeverThrowsException> <S extends Secret>
Promise<Stream<S>,NeverThrowsException> SecretsProvider.getValidSecrets
(Purpose<S> purpose) Returns all secrets for the given purpose which have not yet expired. -
Uses of Promise in org.forgerock.secrets.credentials
Modifier and TypeMethodDescriptionCredentialPair.getAsync()
Gets thePrincipalAndSecret
asynchronously. -
Uses of Promise in org.forgerock.secrets.keystore
Modifier and TypeMethodDescription<S extends Secret>
Promise<S,NoSuchSecretException> <S extends Secret>
Promise<S,NoSuchSecretException> <S extends Secret>
Promise<Stream<S>,NeverThrowsException> -
Uses of Promise in org.forgerock.secrets.propertyresolver
Modifier and TypeMethodDescriptionPemPropertyFormat.decodeToPromise
(String propertyValue) default Promise<SecretBuilder,
NoSuchSecretException> SecretPropertyFormat.decodeToPromise
(byte[] data) Decodes the data as a UTF-8 string and then callsSecretPropertyFormat.decodeToPromise(String)
to decode the string value.default Promise<SecretBuilder,
NoSuchSecretException> SecretPropertyFormat.decodeToPromise
(String propertyValue) Decodes the input property value, setting relevant properties on aSecretBuilder
object.<S extends Secret>
Promise<S,NoSuchSecretException> <S extends Secret>
Promise<S,NoSuchSecretException> <S extends Secret>
Promise<S,NoSuchSecretException> <S extends Secret>
Promise<S,NoSuchSecretException> <S extends Secret>
Promise<Stream<S>,NeverThrowsException> <S extends Secret>
Promise<Stream<S>,NeverThrowsException> Returns a stream of the active secret for the given purpose. -
Uses of Promise in org.forgerock.util
Modifier and TypeMethodDescriptionAsynchronously applies this function to the input parametervalue
and returns aPromise
for the result.Invokes the delegate async function'sAsyncFunction.apply(Object)
with the input parametervalue
, closes it when the delegated promise completes. -
Uses of Promise in org.forgerock.util.promise
Modifier and TypeClassDescriptionclass
PromiseImpl<V,
E extends Exception> An implementation ofPromise
which can be used as is, or as the basis for more complex asynchronous behavior.Modifier and TypeMethodDescriptionstatic Promise<Void,
NeverThrowsException> Promises.allDone
(Collection<Promise<?, ?>> promises) Returns aPromise
which will be completed successfully once all of the provided promises have completed (successfully or not, including runtime exceptions).static <V> Promise<V,
NeverThrowsException> Promises.allDone
(Collection<Promise<?, ?>> promises, V context) Returns aPromise
which will be completed successfully once all of the provided promises have completed (successfully or not, including runtime exceptions), returning back thecontext
parameter.Promises.executeAsync
(Executor executor, Supplier<T, E> supplier) Execute the provided supplier through the executor and returns immediately aPromise
that will be completed once the supplier has been executed.static Promise<Promises.Results,
Exception> Returns aPromise
which will be completed once all of the provided promises have succeeded, or as soon as one of them fails.static Promise<Promises.Results,
Exception> Returns aPromise
which will be completed once all of the provided promises have succeeded, or as soon as one of them fails.Promises.newExceptionPromise
(E exception) Returns aPromise
representing an asynchronous task which has already failed with the provided exception.Promises.newPromise
(Supplier<V, E> supplier) Execute a task and return the result as aPromise
.Promises.newResultPromise
(V result) Returns aPromise
representing an asynchronous task which has already succeeded with the provided result.Promises.newRuntimeExceptionPromise
(RuntimeException exception) Returns aPromise
representing an asynchronous task which has already failed with the provided runtime exception.Promises.newVoidResultPromise()
Returns aPromise
representing an asynchronous task which has already succeeded without result.Submits the provided function for execution once thisPromise
has completed with a result, and returns a newPromise
representing the outcome of the function.Submits the provided functions for execution once thisPromise
has completed (with a result or an exception), and returns a newPromise
representing the outcome of the invoked function.Promise.then
(Function<? super V, VOUT, EOUT> onResult, Function<? super E, VOUT, EOUT> onException, Function<? super RuntimeException, VOUT, EOUT> onRuntimeException) Submits the provided functions for execution once thisPromise
has completed (with a result or an exception or aRuntimeException
), and returns a newPromise
representing the outcome of the invoked function.PromiseImpl.then
(Function<? super V, VOUT, EOUT> onResult, Function<? super E, VOUT, EOUT> onException, Function<? super RuntimeException, VOUT, EOUT> onRuntimeException) Promise.thenAlways
(Runnable onResultOrException) Submits the provided runnable for execution once thisPromise
has completed, and regardless of whether it has a result or an exception.PromiseImpl.thenAlways
(Runnable always) Promise.thenAsync
(AsyncFunction<? super V, VOUT, E> onResult) Submits the provided asynchronous function for execution once thisPromise
has completed with a result, and returns a newPromise
representing the outcome of the function.Promise.thenAsync
(AsyncFunction<? super V, VOUT, EOUT> onResult, AsyncFunction<? super E, VOUT, EOUT> onException) Submits the provided asynchronous functions for execution once thisPromise
has completed, and returns a newPromise
representing the outcome of the invoked function.Promise.thenAsync
(AsyncFunction<? super V, VOUT, EOUT> onResult, AsyncFunction<? super E, VOUT, EOUT> onException, AsyncFunction<? super RuntimeException, VOUT, EOUT> onRuntimeException) Submits the provided asynchronous functions for execution once thisPromise
has completed, and returns a newPromise
representing the outcome of the invoked function.PromiseImpl.thenAsync
(AsyncFunction<? super V, VOUT, E> onResult) PromiseImpl.thenAsync
(AsyncFunction<? super V, VOUT, EOUT> onResult, AsyncFunction<? super E, VOUT, EOUT> onException) PromiseImpl.thenAsync
(AsyncFunction<? super V, VOUT, EOUT> onResult, AsyncFunction<? super E, VOUT, EOUT> onException, AsyncFunction<? super RuntimeException, VOUT, EOUT> onRuntimeException) Submits the provided function for execution once thisPromise
has not completed with a result (has completed with an exception), and returns a newPromise
representing the outcome of the function.Promise.thenCatchAsync
(AsyncFunction<? super E, V, EOUT> onException) Submits the provided asynchronous function for execution once thisPromise
has completed with an exception, and returns a newPromise
representing the outcome of the function.PromiseImpl.thenCatchAsync
(AsyncFunction<? super E, V, EOUT> onException) Promise.thenCatchRuntimeException
(Function<? super RuntimeException, V, E> onRuntimeException) Submits the provided function for execution once thisPromise
has not completed with a result nor with an exception but with aRuntimeException
, and returns a newPromise
representing the outcome of the function.PromiseImpl.thenCatchRuntimeException
(Function<? super RuntimeException, V, E> onRuntimeException) Promise.thenCatchRuntimeExceptionAsync
(AsyncFunction<? super RuntimeException, V, E> onRuntimeException) Submits the provided asynchronous function for execution once thisPromise
has completed with aRuntimeException
, and returns a newPromise
representing the outcome of the function.PromiseImpl.thenCatchRuntimeExceptionAsync
(AsyncFunction<? super RuntimeException, V, E> onRuntimeException) Promise.thenDiscardResult()
Discards the promise result if thisPromise
has completed with a result.Promise.thenFinally
(Runnable onResultOrException) Submits the provided runnable for execution once thisPromise
has completed, and regardless of whether of its outcome.PromiseImpl.thenFinally
(Runnable onFinally) <T extends ResultHandler<? super V> & ExceptionHandler<? super E> & RuntimeExceptionHandler>
Promise<V,E> Promise.thenOnCompletion
(T handler) Registers the provided completion handler for notification for all completion cases of thisPromise
.final <T extends ResultHandler<? super V> & ExceptionHandler<? super E> & RuntimeExceptionHandler>
Promise<V,E> PromiseImpl.thenOnCompletion
(T handler) Promise.thenOnException
(ExceptionHandler<? super E> onException) Registers the provided completion handler for notification if thisPromise
cannot be completed due to an exception.PromiseImpl.thenOnException
(ExceptionHandler<? super E> onException) Promise.thenOnResult
(ResultHandler<? super V> onResult) Registers the provided completion handler for notification once thisPromise
has completed with a result.PromiseImpl.thenOnResult
(ResultHandler<? super V> onResult) Promise.thenOnResultOrException
(Runnable onResultOrException) Submits the provided runnable for execution once thisPromise
has completed, and regardless of whether it has a result or an exception.Promise.thenOnResultOrException
(ResultHandler<? super V> onResult, ExceptionHandler<? super E> onException) Registers the provided completion handlers for notification once thisPromise
has completed (with a result or an exception).PromiseImpl.thenOnResultOrException
(Runnable onResultOrException) PromiseImpl.thenOnResultOrException
(ResultHandler<? super V> onResult, ExceptionHandler<? super E> onException) Promise.thenOnRuntimeException
(RuntimeExceptionHandler onRuntimeException) Registers the provided completion handler for notification if thisPromise
cannot be completed due to an runtime exception.PromiseImpl.thenOnRuntimeException
(RuntimeExceptionHandler onRuntimeException) Returns aPromise
which will be completed once all of the provided promises have succeeded, or as soon as one of them fails.Returns aPromise
which will be completed once all of the provided promises have succeeded, or as soon as one of them fails.Modifier and TypeMethodDescriptionPromises.anyResultFrom
(Stream<Promise<V, E>> promises) Takes a stream of promises that may not yet be resolved and returns a resolved value from them, or if none resolve to a result, the failure from the last.Modifier and TypeMethodDescriptionstatic Promise<Promises.Results,
Exception> Returns aPromise
which will be completed once all of the provided promises have succeeded, or as soon as one of them fails.Returns aPromise
which will be completed once all of the provided promises have succeeded, or as soon as one of them fails.Modifier and TypeMethodDescriptionstatic Promise<Void,
NeverThrowsException> Promises.allDone
(Collection<Promise<?, ?>> promises) Returns aPromise
which will be completed successfully once all of the provided promises have completed (successfully or not, including runtime exceptions).static <V> Promise<V,
NeverThrowsException> Promises.allDone
(Collection<Promise<?, ?>> promises, V context) Returns aPromise
which will be completed successfully once all of the provided promises have completed (successfully or not, including runtime exceptions), returning back thecontext
parameter.Promises.anyResultFrom
(Stream<Promise<V, E>> promises) Takes a stream of promises that may not yet be resolved and returns a resolved value from them, or if none resolve to a result, the failure from the last.static Promise<Promises.Results,
Exception> Returns aPromise
which will be completed once all of the provided promises have succeeded, or as soon as one of them fails.Returns aPromise
which will be completed once all of the provided promises have succeeded, or as soon as one of them fails. -
Uses of Promise in org.opends.server.protocols.http
Modifier and TypeMethodDescriptionPromise<org.forgerock.http.protocol.Response,
NeverThrowsException> CommonAuditHttpAccessAuditFilter.filter
(org.forgerock.services.context.Context context, org.forgerock.http.protocol.Request request, org.forgerock.http.Handler next)