Uses of Interface
org.forgerock.util.promise.Promise
-
Packages that use Promise Package Description org.forgerock.audit Package contains the AuditService.org.forgerock.audit.events.handlers This package contains the defaultAuditEventHandlers
.org.forgerock.audit.events.handlers.buffering This package contains the batch publisher and its various implementations.org.forgerock.audit.handlers.csv This package contains the default AuditEventHandler implementations.org.forgerock.audit.handlers.elasticsearch This package contains the ElasticsearchAuditEventHandler
implementation.org.forgerock.audit.handlers.jdbc This package contains a JDBC AuditEventHandler implementation.org.forgerock.audit.handlers.jms This package contains a JMS AuditEventHandler implementation.org.forgerock.audit.handlers.json This package contains the JSON-fileAuditEventHandler
implementation.org.forgerock.audit.handlers.splunk This package contains the audit handler implementation for Splunk.org.forgerock.audit.handlers.syslog This package contains a Syslog AuditEventHandler implementation.org.forgerock.http Models and manages elements of the Hypertext Transfer Protocol.org.forgerock.http.filter CoreFilter
implementations.org.forgerock.http.filter.cors Support for CORS.org.forgerock.http.handler CoreHandler
implementations.org.forgerock.http.oauth2 This package provides APIs for OAuth 2.0 services implementations.org.forgerock.http.oauth2.resolver This package defines OpenAM specific logic needed to retrieve anAccessTokenInfo
.org.forgerock.http.protocol Models and manages elements of the Hypertext Transfer Protocol.org.forgerock.http.routing Provides routing functionality for HTTP requests.org.forgerock.http.session Provides interfaces for managing and interacting with HTTP Sessions.org.forgerock.http.spi HTTP service provider API.org.forgerock.http.swagger Classes to support OpenAPI API Descriptions using Swagger.org.forgerock.json Provides an API for the traversal and manipulation of JSON object model structures in Java.org.forgerock.json.jose.jwe Classes and interfaces for JWT encryption and JWEs.org.forgerock.json.jose.jwk Classes and interfaces for creating and manipulating JWKs.org.forgerock.json.jose.jwk.store This package contains classes to manage a JWKs URI.org.forgerock.json.jose.jws Classes and interfaces for JWT signing and JWS'.org.forgerock.json.resource Classes and interfaces for core types including connections, request handlers, resources, and their exceptions.org.forgerock.openig.audit Service Provider interface for registering audit events.org.forgerock.openig.el Integrates with the Java Enterprise Edition Unified Expression Language API.org.forgerock.openig.filter Filters the requests and/or responses of HTTP.org.forgerock.openig.filter.allow Filters the HTTP request using a declarative configuration model based on a chain of predicates to validate.org.forgerock.openig.filter.circuitbreaker This package contains the components used to implement circuit breaking.org.forgerock.openig.filter.finance Support for financial APIs (Open Banking, PSD2, Berlin Group, ...).org.forgerock.openig.filter.jwt This package contains the components used to implement some JWT related filter.org.forgerock.openig.filter.oauth2 This package contains the OAuth2 Token validation filter that acts as an OAuth 2 Resource Server.org.forgerock.openig.filter.oauth2.client OAuth 2.0 Client filter implementation.org.forgerock.openig.filter.oauth2.cnf JWT confirmation key support for access tokens.org.forgerock.openig.filter.throttling This package contains the components used to implement a throttling rate support.org.forgerock.openig.handler Handles HTTP requests by generating responses.org.forgerock.openig.handler.resources Contains components and APIs used to serve static resources.org.forgerock.openig.handler.router Provides automated router capability that loads its configurations files (called routes) from a given directory.org.forgerock.openig.handler.saml Identity Gateway SAML support.org.forgerock.openig.http Integrates with the ForgeRock HTTP Framework.org.forgerock.openig.openam Integration classes specifically for ForgeRock Access Management.org.forgerock.openig.openam.session AM Session idle timeout tracking.org.forgerock.openig.proxy Contains proxy related heaplets.org.forgerock.openig.reactive Contains RxJava specific tools.org.forgerock.openig.script Scripting support.org.forgerock.openig.secrets Provides the Common Secrets API for accessing secrets of various kinds.org.forgerock.openig.sql Provides SQL and JDBC support.org.forgerock.openig.tools Common tools used in policy service.org.forgerock.openig.tools.am Access Management Server.org.forgerock.openig.tools.authentication AM authentication service.org.forgerock.openig.tools.authentication.chf HTTP-based authentication service.org.forgerock.openig.tools.jwt.factory Provides JWT capabilities to the Identity Gateway.org.forgerock.openig.tools.jwt.validation This package contains classes used to perform JWT validation.org.forgerock.openig.tools.notifications AM notifications service.org.forgerock.openig.tools.notifications.ws Web socket notifications service implementation.org.forgerock.openig.tools.session This package contains classes to call AM to retrieve user's session info.org.forgerock.openig.tools.userprofile This package contains classes to call AM to retrieve user's profile info.org.forgerock.openig.ui.record Defines a storage service to be used by the UI to persist its component model.org.forgerock.openig.uma This package contains the UMA (User Managed Access) components used to support the Uma Resource Server role.org.forgerock.openig.util Miscellaneous utility classes.org.forgerock.openig.websocket WebSocket proxy support.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.secrets.oauth2 A Secrets API backend that can obtain OAuth 2 access tokens from a token endpoint, along with a collection of grant type handlers.org.forgerock.secrets.propertyresolver Provides aSecretStore
implementation that loads secrets from a Common ConfigurationPropertyResolver
and then decodes it with aSecretPropertyFormat
.org.forgerock.util Provides common interfaces and classes.org.forgerock.util.promise An implementation of thePromise
API in Java. -
-
Uses of Promise in org.forgerock.audit
Methods in org.forgerock.audit that return Promise Modifier and Type Method Description Promise<ActionResponse,ResourceException>
AuditService. handleAction(Context context, ActionRequest request)
Audit service may support actions on the service itself or on handlers.Promise<ActionResponse,ResourceException>
AuditServiceProxy. handleAction(Context context, ActionRequest request)
Promise<ResourceResponse,ResourceException>
AuditService. handleCreate(Context context, CreateRequest request)
Propagates the audit event to theAuditEventHandler
objects that have been registered for the audit event topic.Promise<ResourceResponse,ResourceException>
AuditServiceProxy. handleCreate(Context context, CreateRequest request)
Promise<ResourceResponse,ResourceException>
AuditService. handleDelete(Context context, DeleteRequest request)
Audit service does not support changing audit entries.Promise<ResourceResponse,ResourceException>
AuditServiceProxy. handleDelete(Context context, DeleteRequest request)
Promise<ResourceResponse,ResourceException>
AuditService. handlePatch(Context context, PatchRequest request)
Audit service does not support changing audit entries.Promise<ResourceResponse,ResourceException>
AuditServiceProxy. handlePatch(Context context, PatchRequest request)
Promise<QueryResponse,ResourceException>
AuditService. handleQuery(Context context, QueryRequest request, QueryResourceHandler handler)
Performs the query on the specified object and returns the associated results.Promise<QueryResponse,ResourceException>
AuditServiceProxy. handleQuery(Context context, QueryRequest request, QueryResourceHandler handler)
Promise<ResourceResponse,ResourceException>
AuditService. handleRead(Context context, ReadRequest request)
Gets an object from the audit logs by identifier.Promise<ResourceResponse,ResourceException>
AuditServiceProxy. handleRead(Context context, ReadRequest request)
Promise<ResourceResponse,ResourceException>
AuditService. handleUpdate(Context context, UpdateRequest request)
Audit service does not support changing audit entries.Promise<ResourceResponse,ResourceException>
AuditServiceProxy. handleUpdate(Context context, UpdateRequest request)
-
Uses of Promise in org.forgerock.audit.events.handlers
Methods in org.forgerock.audit.events.handlers that return Promise Modifier and Type Method Description Promise<ActionResponse,ResourceException>
AuditEventHandler. handleAction(Context context, String topic, ActionRequest request)
Performs an action.Promise<ActionResponse,ResourceException>
AuditEventHandlerBase. handleAction(Context context, String topic, ActionRequest request)
Promise<ResourceResponse,ResourceException>
AuditEventHandler. publishEvent(Context context, String topic, JsonValue event)
Publishes an event to the provided topic.Promise<ResourceResponse,ResourceException>
NoOpAuditEventHandler. publishEvent(Context context, String topic, JsonValue event)
Promise<QueryResponse,ResourceException>
AuditEventHandler. queryEvents(Context context, String topic, QueryRequest query, QueryResourceHandler handler)
Query some events from the provided topic.Promise<QueryResponse,ResourceException>
NoOpAuditEventHandler. queryEvents(Context context, String topic, QueryRequest query, QueryResourceHandler handler)
Promise<ResourceResponse,ResourceException>
AuditEventHandler. readEvent(Context context, String topic, String resourceId)
Reads an event with the provided resource id from the provided topic.Promise<ResourceResponse,ResourceException>
NoOpAuditEventHandler. readEvent(Context context, String topic, String resourceId)
-
Uses of Promise in org.forgerock.audit.events.handlers.buffering
Methods in org.forgerock.audit.events.handlers.buffering that return Promise Modifier and Type Method Description Promise<Void,BatchException>
BatchConsumer. publishBatch(String payload)
Publishes the batch payload. -
Uses of Promise in org.forgerock.audit.handlers.csv
Methods in org.forgerock.audit.handlers.csv that return Promise Modifier and Type Method Description Promise<ActionResponse,ResourceException>
CsvAuditEventHandler. handleAction(Context context, String topic, ActionRequest request)
Promise<ResourceResponse,ResourceException>
CsvAuditEventHandler. publishEvent(Context context, String topic, JsonValue event)
Create a csv audit log entry.Promise<QueryResponse,ResourceException>
CsvAuditEventHandler. queryEvents(Context context, String topic, QueryRequest query, QueryResourceHandler handler)
Perform a query on the csv audit log.Promise<ResourceResponse,ResourceException>
CsvAuditEventHandler. readEvent(Context context, String topic, String resourceId)
Read from the csv audit log. -
Uses of Promise in org.forgerock.audit.handlers.elasticsearch
Methods in org.forgerock.audit.handlers.elasticsearch that return Promise Modifier and Type Method Description Promise<Void,BatchException>
ElasticsearchAuditEventHandler. publishBatch(String payload)
Publishes a Bulk API payload to Elasticsearch.Promise<ResourceResponse,ResourceException>
ElasticsearchAuditEventHandler. publishEvent(Context context, String topic, JsonValue event)
protected Promise<ResourceResponse,ResourceException>
ElasticsearchAuditEventHandler. publishSingleEvent(String topic, JsonValue event)
Publishes a single event to the provided topic.Promise<QueryResponse,ResourceException>
ElasticsearchAuditEventHandler. queryEvents(Context context, String topic, QueryRequest query, QueryResourceHandler handler)
Queries the Elasticsearch Search API for audit events.Promise<ResourceResponse,ResourceException>
ElasticsearchAuditEventHandler. readEvent(Context context, String topic, String resourceId)
-
Uses of Promise in org.forgerock.audit.handlers.jdbc
Methods in org.forgerock.audit.handlers.jdbc that return Promise Modifier and Type Method Description Promise<ResourceResponse,ResourceException>
JdbcAuditEventHandler. publishEvent(Context context, String topic, JsonValue event)
Publishes an event to the provided topic.Promise<QueryResponse,ResourceException>
JdbcAuditEventHandler. queryEvents(Context context, String topic, QueryRequest queryRequest, QueryResourceHandler queryResourceHandler)
Query some events from the provided topic.Promise<ResourceResponse,ResourceException>
JdbcAuditEventHandler. readEvent(Context context, String topic, String resourceId)
-
Uses of Promise in org.forgerock.audit.handlers.jms
Methods in org.forgerock.audit.handlers.jms that return Promise Modifier and Type Method Description Promise<Void,BatchException>
JmsAuditEventHandler. publishBatch(String payload)
Promise<ResourceResponse,ResourceException>
JmsAuditEventHandler. publishEvent(Context context, String topic, JsonValue event)
Promise<QueryResponse,ResourceException>
JmsAuditEventHandler. queryEvents(Context context, String topic, QueryRequest queryRequest, QueryResourceHandler queryResourceHandler)
Returns NotSupportedException as query is not implemented for JMS.Promise<ResourceResponse,ResourceException>
JmsAuditEventHandler. readEvent(Context context, String topic, String resourceId)
Returns NotSupportedException as read is not implemented for JMS. -
Uses of Promise in org.forgerock.audit.handlers.json
Methods in org.forgerock.audit.handlers.json that return Promise Modifier and Type Method Description Promise<ActionResponse,ResourceException>
JsonAuditEventHandler. handleAction(Context context, String topic, ActionRequest request)
Promise<ResourceResponse,ResourceException>
JsonAuditEventHandler. publishEvent(Context context, String topic, JsonValue event)
Promise<QueryResponse,ResourceException>
JsonAuditEventHandler. queryEvents(Context context, String topic, QueryRequest query, QueryResourceHandler handler)
Promise<ResourceResponse,ResourceException>
JsonAuditEventHandler. readEvent(Context context, String topic, String resourceId)
-
Uses of Promise in org.forgerock.audit.handlers.splunk
Methods in org.forgerock.audit.handlers.splunk that return Promise Modifier and Type Method Description Promise<Void,BatchException>
SplunkAuditEventHandler. publishBatch(String payload)
Promise<ResourceResponse,ResourceException>
SplunkAuditEventHandler. publishEvent(Context context, String topic, JsonValue event)
Promise<QueryResponse,ResourceException>
SplunkAuditEventHandler. queryEvents(Context context, String topic, QueryRequest query, QueryResourceHandler handler)
Promise<ResourceResponse,ResourceException>
SplunkAuditEventHandler. readEvent(Context context, String topic, String resourceId)
-
Uses of Promise in org.forgerock.audit.handlers.syslog
Methods in org.forgerock.audit.handlers.syslog that return Promise Modifier and Type Method Description Promise<ResourceResponse,ResourceException>
SyslogAuditEventHandler. publishEvent(Context context, String topic, JsonValue event)
Promise<QueryResponse,ResourceException>
SyslogAuditEventHandler. queryEvents(Context context, String topic, QueryRequest queryRequest, QueryResourceHandler queryResourceHandler)
Promise<ResourceResponse,ResourceException>
SyslogAuditEventHandler. readEvent(Context context, String topic, String resourceId)
-
Uses of Promise in org.forgerock.http
Methods in org.forgerock.http that return Promise Modifier and Type Method Description Promise<Response,NeverThrowsException>
Filter. filter(Context context, Request request, Handler next)
Filters the request and/or response of an exchange.Promise<Response,NeverThrowsException>
Handler. handle(Context context, Request request)
Promise<Response,NeverThrowsException>
Client. send(Request request)
Sends an HTTP request and returns aPromise
representing the pending HTTP response.Promise<Response,NeverThrowsException>
Client. send(Context context, Request request)
Sends an HTTP request and returns aPromise
representing the pending HTTP response.Promise<Response,NeverThrowsException>
Client. sendWithoutClose(Request request)
Sends an HTTP request and returns aPromise
representing the pending HTTP response.Promise<Response,NeverThrowsException>
Client. sendWithoutClose(Context context, Request request)
Sends an HTTP request and returns aPromise
representing the pending HTTP response. -
Uses of Promise in org.forgerock.http.filter
Methods in org.forgerock.http.filter that return Promise Modifier and Type Method Description Promise<Response,NeverThrowsException>
CsrfFilter. filter(Context context, Request request, Handler next)
Promise<Response,NeverThrowsException>
OptionsFilter. filter(Context context, Request request, Handler next)
Handles all OPTION requests to CREST resources, all other request methods are handled by theHandler
.Promise<Response,NeverThrowsException>
TransactionIdInboundFilter. filter(Context context, Request request, Handler next)
Promise<Response,NeverThrowsException>
TransactionIdOutboundFilter. filter(Context context, Request request, Handler next)
-
Uses of Promise in org.forgerock.http.filter.cors
Methods in org.forgerock.http.filter.cors that return Promise Modifier and Type Method Description Promise<Response,NeverThrowsException>
CorsFilter. filter(Context context, Request request, Handler next)
-
Uses of Promise in org.forgerock.http.handler
Methods in org.forgerock.http.handler that return Promise Modifier and Type Method Description Promise<Response,NeverThrowsException>
HttpClientHandler. handle(Context context, Request request)
Sends an HTTP request to a remote server and returns aPromise
representing the asynchronous response. -
Uses of Promise in org.forgerock.http.oauth2
Methods in org.forgerock.http.oauth2 that return Promise Modifier and Type Method Description Promise<Response,NeverThrowsException>
ClientSecretBasicAuthenticationFilter. filter(Context context, Request request, Handler next)
Deprecated.Promise<Response,NeverThrowsException>
ClientSecretPostAuthenticationFilter. filter(Context context, Request request, Handler next)
Promise<Response,NeverThrowsException>
PrivateKeyJwtClientAuthenticationFilter. filter(Context context, Request request, Handler next)
Promise<Response,NeverThrowsException>
ResourceServerFilter. filter(Context context, Request request, Handler next)
Promise<Set<String>,ResponseException>
ResourceAccess. getRequiredScopes(Context context, Request request)
Returns the scopes required to access the resource.default Promise<AccessTokenInfo,AccessTokenException>
AccessTokenResolver. resolve(Context context, String token)
Deprecated, for removal: This API element is subject to removal in a future version.default Promise<AccessTokenInfo,AccessTokenException>
AccessTokenResolver. resolve(Context context, Supplier<Request,IOException> request, String token)
Resolves a given access token against an authorization server. -
Uses of Promise in org.forgerock.http.oauth2.resolver
Methods in org.forgerock.http.oauth2.resolver that return Promise Modifier and Type Method Description Promise<AccessTokenInfo,AccessTokenException>
CachingAccessTokenResolver. resolve(Context context, Supplier<Request,IOException> request, String token)
Promise<AccessTokenInfo,AccessTokenException>
OpenAmAccessTokenResolver. resolve(Context context, Supplier<Request,IOException> request, String token)
Deprecated.Promise<AccessTokenInfo,AccessTokenException>
TokenIntrospectionAccessTokenResolver. resolve(Context context, Supplier<Request,IOException> request, String token)
Constructor parameters in org.forgerock.http.oauth2.resolver with type arguments of type Promise Constructor Description CachingAccessTokenResolver(Clock clock, AccessTokenResolver resolver, PerItemEvictionStrategyCache<String,Promise<AccessTokenInfo,AccessTokenException>> cache)
Builds aCachingAccessTokenResolver
delegating to the givenAccessTokenResolver
using the given (pre-configured) cache. -
Uses of Promise in org.forgerock.http.protocol
Methods in org.forgerock.http.protocol that return Promise Modifier and Type Method Description Promise<byte[],IOException>
Entity. getBytesAsync()
Returns a promise of the decoded entity content as a byte array.Promise<Form,IOException>
Entity. getFormAsync()
Returns a promise of a copy of the "application/x-www-form-urlencoded" entity decoded as a form.Promise<Object,IOException>
Entity. getJsonAsync()
Returns a promise of the content of this entity decoded as a JSON object.Promise<InputStream,NeverThrowsException>
Entity. getRawContentInputStreamAsync()
Returns a promise of an input stream representing the raw content of this entity.Promise<String,IOException>
Entity. getStringAsync()
Returns a promise of the content of this entity decoded as a string.static Promise<Response,NeverThrowsException>
Response. newResponsePromise(Response response)
Returns aPromise
representing theResponse
for an asynchronousRequest
which has already completed. -
Uses of Promise in org.forgerock.http.routing
Methods in org.forgerock.http.routing that return Promise Modifier and Type Method Description Promise<Response,NeverThrowsException>
ResourceApiVersionRoutingFilter. filter(Context context, Request request, Handler next)
Promise<Response,NeverThrowsException>
Router. handle(Context context, Request request)
-
Uses of Promise in org.forgerock.http.session
Methods in org.forgerock.http.session that return Promise Modifier and Type Method Description Promise<Session,NeverThrowsException>
AsyncSessionManager. loadAsync(Request request)
Loads a new Session for the givenRequest
.Promise<Void,IOException>
AsyncSessionManager. saveAsync(Session session, Response response)
Saves the session into the provided response. -
Uses of Promise in org.forgerock.http.spi
Methods in org.forgerock.http.spi that return Promise Modifier and Type Method Description Promise<Response,NeverThrowsException>
HttpClient. sendAsync(Request request)
-
Uses of Promise in org.forgerock.http.swagger
Methods in org.forgerock.http.swagger that return Promise Modifier and Type Method Description Promise<Response,NeverThrowsException>
OpenApiRequestFilter. filter(Context context, Request request, Handler next)
-
Uses of Promise in org.forgerock.json
Methods in org.forgerock.json that return Promise Modifier and Type Method Description <V,E extends Exception>
Promise<V,E>JsonValue. 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.jose.jwe
Methods in org.forgerock.json.jose.jwe that return Promise Modifier and Type Method Description Promise<? extends EncryptedJwt,JweDecryptionCheckedException>
EncryptedJwt. decrypt(SecretsProvider secretsProvider, Purpose<? extends CryptoKey> purpose)
Attempts to decrypt the JWT using any available keys for the givenPurpose
from the givenSecretsProvider
.Promise<SignedThenEncryptedJwt,JweDecryptionCheckedException>
SignedThenEncryptedJwt. decrypt(SecretsProvider secretsProvider, Purpose<? extends CryptoKey> purpose)
Promise<SignedThenEncryptedJwt,JweDecryptionCheckedException>
SignedThenEncryptedJwt. decryptAndVerify(SecretsProvider secretsProvider, Purpose<? extends CryptoKey> decryptionPurpose, Purpose<VerificationKey> verificationPurpose)
Decrypts the outer JWT and then verifies the signature on the inner JWT using secrets from the suppliedSecretsProvider
.Promise<byte[],JweDecryptionCheckedException>
EncryptedJwt. decryptRawPayload(SecretsProvider secretsProvider, Purpose<? extends CryptoKey> purpose)
Attempts to decrypt the raw payload of the JWT using any keys from the givenSecretsProvider
that satisfy the suppliedPurpose
. -
Uses of Promise in org.forgerock.json.jose.jwk
Methods in org.forgerock.json.jose.jwk that return Promise Modifier and Type Method Description Promise<JsonValue,FailedToLoadJWKException>
JWKSetParser. gatherHttpContentsAsync(URL url)
Uses the Client to gather HTTP information.Promise<JWKSet,FailedToLoadJWKException>
JWKSetParser. jwkSetAsync(URL url)
Provides a JWK set as indicated by the JWKSet's URL. -
Uses of Promise in org.forgerock.json.jose.jwk.store
Methods in org.forgerock.json.jose.jwk.store that return Promise Modifier and Type Method Description Promise<JwksStore,FailedToLoadJWKException>
JwksStoreService. configureJwksStoreAsync(String uid, Duration cacheTimeout, Duration cacheMissCacheTime, URL jwkUrl, Clock clock)
Configure a JWKs store.Promise<JWK,FailedToLoadJWKException>
JwksStore. findJwkAsync(String kid)
Search asynchronously for a JWK that matches the kid.Promise<JWK,FailedToLoadJWKException>
JwksStore. findJwkAsync(Algorithm algorithm, String keyUse)
Search asynchronously for a JWK that matches the algorithm and the key usage.Promise<JWKSet,FailedToLoadJWKException>
JwksStore. getLatestJwkSet()
Returns the latest non expired successfully loaded JWK Set.static Promise<JwksStore,FailedToLoadJWKException>
JwksStore. newJwksStore(Duration cacheTimeout, Duration cacheMissCacheTime, URL jwkUrl, JWKSetParser jwkSetParser, Clock clock)
Create a new JWKs store asynchronously.Promise<Void,FailedToLoadJWKException>
JwksStore. reloadJwksAsync()
Communicates with the configured server, attempting to download the latest JWKs for use.Promise<Void,FailedToLoadJWKException>
JwksStore. setJwkUrlAsync(URL jwkUrl)
Update the JWKs URI. -
Uses of Promise in org.forgerock.json.jose.jws
Methods in org.forgerock.json.jose.jws that return Promise Modifier and Type Method Description Promise<? extends EncryptedJwt,JweDecryptionCheckedException>
EncryptedThenSignedJwt. decrypt(SecretsProvider secretsProvider, Purpose<? extends CryptoKey> decryptionPurpose)
Decrypts the inner encrypted JWE so that the payload can be accessed.Promise<SigningHandler,NoSuchSecretException>
SigningManager. newSigningHandler(Purpose<SigningKey> purpose)
Constructs a new SigningHandler configured for signing with the provided secret purpose.Promise<SigningHandler,NoSuchSecretException>
SigningManager. newSigningHandler(SecretReference<SigningKey> secretReference)
Constructs a new SigningHandler configured for signing with the provided secret reference.Promise<SigningHandler,NeverThrowsException>
SigningManager. newVerificationHandler(Purpose<VerificationKey> purpose, String keyId)
Constructs a new SigningHandler configured for verifying with the provided secret purpose. -
Uses of Promise in org.forgerock.json.resource
Methods in org.forgerock.json.resource that return Promise Modifier and Type Method Description Promise<ActionResponse,ResourceException>
AbstractConnectionWrapper. actionAsync(Context context, ActionRequest request)
Asynchronously performs an action against a specific resource, or set of resources.Promise<ActionResponse,ResourceException>
Connection. actionAsync(Context context, ActionRequest request)
Asynchronously performs an action against a specific resource, or set of resources.default Promise<ActionResponse,ResourceException>
CollectionResourceProvider. actionCollection(Context context, ActionRequest request)
Performs the providedaction
against the resource collection.Promise<ActionResponse,ResourceException>
MemoryBackend. actionCollection(Context context, ActionRequest request)
Performs the providedaction
against the resource collection.default Promise<ActionResponse,ResourceException>
CollectionResourceProvider. actionInstance(Context context, String resourceId, ActionRequest request)
Performs the providedaction
against a resource within the collection.Promise<ActionResponse,ResourceException>
MemoryBackend. actionInstance(Context context, String id, ActionRequest request)
Performs the providedaction
against a resource within the collection.default Promise<ActionResponse,ResourceException>
SingletonResourceProvider. actionInstance(Context context, ActionRequest request)
Performs the providedaction
against the single resource instance.Promise<ActionResponse,ResourceException>
ActionResponse. asPromise()
Return this response as a result Promise.Promise<QueryResponse,ResourceException>
QueryResponse. asPromise()
Return this response as a result Promise.<V> Promise<V,ResourceException>
ResourceException. asPromise()
Return this ResourceException as a Promise.Promise<ResourceResponse,ResourceException>
ResourceResponse. asPromise()
Return this response as a result Promise.Promise<ResourceResponse,ResourceException>
AbstractConnectionWrapper. createAsync(Context context, CreateRequest request)
Asynchronously adds a new JSON resource.Promise<ResourceResponse,ResourceException>
Connection. createAsync(Context context, CreateRequest request)
Asynchronously adds a new JSON resource.default Promise<ResourceResponse,ResourceException>
CollectionResourceProvider. createInstance(Context context, CreateRequest request)
Adds
a new resource instance to the collection.Promise<ResourceResponse,ResourceException>
MemoryBackend. createInstance(Context context, CreateRequest request)
Adds
a new resource instance to the collection.Promise<ResourceResponse,ResourceException>
AbstractConnectionWrapper. deleteAsync(Context context, DeleteRequest request)
Asynchronously deletes a JSON resource.Promise<ResourceResponse,ResourceException>
Connection. deleteAsync(Context context, DeleteRequest request)
Asynchronously deletes a JSON resource.default Promise<ResourceResponse,ResourceException>
CollectionResourceProvider. deleteInstance(Context context, String resourceId, DeleteRequest request)
Removes
a resource instance from the collection.Promise<ResourceResponse,ResourceException>
MemoryBackend. deleteInstance(Context context, String id, DeleteRequest request)
Removes
a resource instance from the collection.Promise<ActionResponse,ResourceException>
Filter. filterAction(Context context, ActionRequest request, RequestHandler next)
Filters an action request.Promise<ActionResponse,ResourceException>
ResourceApiVersionRoutingFilter. filterAction(Context context, ActionRequest request, RequestHandler next)
Promise<ActionResponse,ResourceException>
ResourceApiVersionSpecificationFilter. filterAction(Context context, ActionRequest request, RequestHandler next)
Promise<ResourceResponse,ResourceException>
Filter. filterCreate(Context context, CreateRequest request, RequestHandler next)
Filters a create request.Promise<ResourceResponse,ResourceException>
ResourceApiVersionRoutingFilter. filterCreate(Context context, CreateRequest request, RequestHandler next)
Promise<ResourceResponse,ResourceException>
ResourceApiVersionSpecificationFilter. filterCreate(Context context, CreateRequest request, RequestHandler next)
Promise<ResourceResponse,ResourceException>
Filter. filterDelete(Context context, DeleteRequest request, RequestHandler next)
Filters a delete request.Promise<ResourceResponse,ResourceException>
ResourceApiVersionRoutingFilter. filterDelete(Context context, DeleteRequest request, RequestHandler next)
Promise<ResourceResponse,ResourceException>
ResourceApiVersionSpecificationFilter. filterDelete(Context context, DeleteRequest request, RequestHandler next)
Promise<ResourceResponse,ResourceException>
Filter. filterPatch(Context context, PatchRequest request, RequestHandler next)
Filters a patch request.Promise<ResourceResponse,ResourceException>
ResourceApiVersionRoutingFilter. filterPatch(Context context, PatchRequest request, RequestHandler next)
Promise<ResourceResponse,ResourceException>
ResourceApiVersionSpecificationFilter. filterPatch(Context context, PatchRequest request, RequestHandler next)
Promise<QueryResponse,ResourceException>
Filter. filterQuery(Context context, QueryRequest request, QueryResourceHandler handler, RequestHandler next)
Filters a query request.Promise<QueryResponse,ResourceException>
ResourceApiVersionRoutingFilter. filterQuery(Context context, QueryRequest request, QueryResourceHandler handler, RequestHandler next)
Promise<QueryResponse,ResourceException>
ResourceApiVersionSpecificationFilter. filterQuery(Context context, QueryRequest request, QueryResourceHandler handler, RequestHandler next)
Promise<ResourceResponse,ResourceException>
Filter. filterRead(Context context, ReadRequest request, RequestHandler next)
Filters a read request.Promise<ResourceResponse,ResourceException>
ResourceApiVersionRoutingFilter. filterRead(Context context, ReadRequest request, RequestHandler next)
Promise<ResourceResponse,ResourceException>
ResourceApiVersionSpecificationFilter. filterRead(Context context, ReadRequest request, RequestHandler next)
Promise<ResourceResponse,ResourceException>
Filter. filterUpdate(Context context, UpdateRequest request, RequestHandler next)
Filters an update request.Promise<ResourceResponse,ResourceException>
ResourceApiVersionRoutingFilter. filterUpdate(Context context, UpdateRequest request, RequestHandler next)
Promise<ResourceResponse,ResourceException>
ResourceApiVersionSpecificationFilter. filterUpdate(Context context, UpdateRequest request, RequestHandler next)
Promise<Connection,ResourceException>
ConnectionFactory. getConnectionAsync()
Asynchronously obtains a connection to the JSON resource provider associated with this connection factory.Promise<ActionResponse,ResourceException>
FilterChain. handleAction(Context context, ActionRequest request)
default Promise<ActionResponse,ResourceException>
RequestHandler. handleAction(Context context, ActionRequest request)
Handles performing an action on a resource, and optionally returns an associated result.Promise<ActionResponse,ResourceException>
Router. handleAction(Context context, ActionRequest request)
Promise<ResourceResponse,ResourceException>
FilterChain. handleCreate(Context context, CreateRequest request)
default Promise<ResourceResponse,ResourceException>
RequestHandler. handleCreate(Context context, CreateRequest request)
Adds a new JSON resource, returning aPromise
that will be completed when the resource has been added.Promise<ResourceResponse,ResourceException>
Router. handleCreate(Context context, CreateRequest request)
Promise<ResourceResponse,ResourceException>
FilterChain. handleDelete(Context context, DeleteRequest request)
default Promise<ResourceResponse,ResourceException>
RequestHandler. handleDelete(Context context, DeleteRequest request)
Deletes a JSON resource, returning aPromise
that will be completed when the resource has been deleted.Promise<ResourceResponse,ResourceException>
Router. handleDelete(Context context, DeleteRequest request)
Promise<ResourceResponse,ResourceException>
FilterChain. handlePatch(Context context, PatchRequest request)
default Promise<ResourceResponse,ResourceException>
RequestHandler. handlePatch(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.Promise<ResourceResponse,ResourceException>
Router. handlePatch(Context context, PatchRequest request)
Promise<QueryResponse,ResourceException>
FilterChain. handleQuery(Context context, QueryRequest request, QueryResourceHandler handler)
default Promise<QueryResponse,ResourceException>
RequestHandler. handleQuery(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.Promise<QueryResponse,ResourceException>
Router. handleQuery(Context context, QueryRequest request, QueryResourceHandler handler)
Promise<ResourceResponse,ResourceException>
FilterChain. handleRead(Context context, ReadRequest request)
default Promise<ResourceResponse,ResourceException>
RequestHandler. handleRead(Context context, ReadRequest request)
Reads a JSON resource, returning aPromise
that will be completed when the resource has been read.Promise<ResourceResponse,ResourceException>
Router. handleRead(Context context, ReadRequest request)
Promise<ResourceResponse,ResourceException>
FilterChain. handleUpdate(Context context, UpdateRequest request)
default Promise<ResourceResponse,ResourceException>
RequestHandler. handleUpdate(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.Promise<ResourceResponse,ResourceException>
Router. handleUpdate(Context context, UpdateRequest request)
Promise<ResourceResponse,ResourceException>
AbstractConnectionWrapper. patchAsync(Context context, PatchRequest request)
Asynchronously updates a JSON resource by applying a set of changes to its existing content.Promise<ResourceResponse,ResourceException>
Connection. patchAsync(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(Context context, String resourceId, PatchRequest request)
Patches
an existing resource within the collection.Promise<ResourceResponse,ResourceException>
MemoryBackend. patchInstance(Context context, String id, PatchRequest request)
Patches
an existing resource within the collection.default Promise<ResourceResponse,ResourceException>
SingletonResourceProvider. patchInstance(Context context, PatchRequest request)
Patches
the single resource instance.Promise<QueryResponse,ResourceException>
AbstractConnectionWrapper. queryAsync(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.Promise<QueryResponse,ResourceException>
Connection. queryAsync(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(Context context, QueryRequest request, QueryResourceHandler handler)
Searches
the collection for all resources which match the query request criteria.Promise<QueryResponse,ResourceException>
MemoryBackend. queryCollection(Context context, QueryRequest request, QueryResourceHandler handler)
Searches
the collection for all resources which match the query request criteria.Promise<ResourceResponse,ResourceException>
AbstractConnectionWrapper. readAsync(Context context, ReadRequest request)
Asynchronously reads a JSON resource.Promise<ResourceResponse,ResourceException>
Connection. readAsync(Context context, ReadRequest request)
Asynchronously reads a JSON resource.default Promise<ResourceResponse,ResourceException>
CollectionResourceProvider. readInstance(Context context, String resourceId, ReadRequest request)
Reads
an existing resource within the collection.Promise<ResourceResponse,ResourceException>
MemoryBackend. readInstance(Context context, String id, ReadRequest request)
Reads
an existing resource within the collection.default Promise<ResourceResponse,ResourceException>
SingletonResourceProvider. readInstance(Context context, ReadRequest request)
Reads
the single resource instance.Promise<ResourceResponse,ResourceException>
AbstractConnectionWrapper. updateAsync(Context context, UpdateRequest request)
Asynchronously updates a JSON resource by replacing its existing content with new content.Promise<ResourceResponse,ResourceException>
Connection. updateAsync(Context context, UpdateRequest request)
Asynchronously updates a JSON resource by replacing its existing content with new content.default Promise<ResourceResponse,ResourceException>
CollectionResourceProvider. updateInstance(Context context, String resourceId, UpdateRequest request)
Updates
an existing resource within the collection.Promise<ResourceResponse,ResourceException>
MemoryBackend. updateInstance(Context context, String id, UpdateRequest request)
Updates
an existing resource within the collection.default Promise<ResourceResponse,ResourceException>
SingletonResourceProvider. updateInstance(Context context, UpdateRequest request)
Updates
the single resource instance. -
Uses of Promise in org.forgerock.openig.audit
Methods in org.forgerock.openig.audit that return Promise Modifier and Type Method Description Promise<ActionResponse,ResourceException>
NoOpAuditService. handleAction(Context context, ActionRequest actionRequest)
Promise<ResourceResponse,ResourceException>
NoOpAuditService. handleCreate(Context context, CreateRequest createRequest)
Promise<ResourceResponse,ResourceException>
NoOpAuditService. handleDelete(Context context, DeleteRequest deleteRequest)
Promise<ResourceResponse,ResourceException>
NoOpAuditService. handlePatch(Context context, PatchRequest patchRequest)
Promise<QueryResponse,ResourceException>
NoOpAuditService. handleQuery(Context context, QueryRequest queryRequest, QueryResourceHandler queryResourceHandler)
Promise<ResourceResponse,ResourceException>
NoOpAuditService. handleRead(Context context, ReadRequest readRequest)
Promise<ResourceResponse,ResourceException>
NoOpAuditService. handleUpdate(Context context, UpdateRequest updateRequest)
-
Uses of Promise in org.forgerock.openig.el
Methods in org.forgerock.openig.el that return Promise Modifier and Type Method Description Promise<V,Exception>
ExpressionRequestAsyncFunction. apply(ContextAndRequest contextAndRequest)
Promise<T,NeverThrowsException>
Expression. evalAsync(Bindings bindings)
Evaluates asynchronously the expression with the specified bindings and returns a promise of the resulting object if it matches the specified type, or a promise completed withnull
if it does not resolve or match.static Promise<Object,NeverThrowsException>
Expressions. evaluateAsync(Object value, Bindings bindings)
Evaluate an Object that may contain some expressions that needs to be evaluated.static Promise<List<Object>,NeverThrowsException>
Expressions. evaluateAsync(List<Object> list, Bindings bindings)
Evaluate a list that may contain some Expressions that needs to be evaluated.static Promise<Map<String,Object>,NeverThrowsException>
Expressions. evaluateAsync(Map<String,Object> map, Bindings bindings)
Evaluate a map that may contain some expressions that needs to be evaluated. -
Uses of Promise in org.forgerock.openig.filter
Method parameters in org.forgerock.openig.filter with type arguments of type Promise Modifier and Type Method Description void
CryptoHeaderFilter. setDecryptionKeys(Supplier<Promise<Stream<DataDecryptionKey>,NeverThrowsException>> decryptionKeys)
Deprecated.Sets the decryption key to decrypt headers. -
Uses of Promise in org.forgerock.openig.filter.allow
Methods in org.forgerock.openig.filter.allow that return Promise Modifier and Type Method Description Promise<Response,NeverThrowsException>
AllowOnlyFilter. filter(Context context, Request request, Handler next)
-
Uses of Promise in org.forgerock.openig.filter.circuitbreaker
Methods in org.forgerock.openig.filter.circuitbreaker that return Promise Modifier and Type Method Description Promise<Response,NeverThrowsException>
CircuitBreakerFilter. filter(Context context, Request request, Handler next)
-
Uses of Promise in org.forgerock.openig.filter.finance
Methods in org.forgerock.openig.filter.finance that return Promise Modifier and Type Method Description Promise<Response,NeverThrowsException>
FapiInteractionIdFilter. filter(Context context, Request request, Handler next)
-
Uses of Promise in org.forgerock.openig.filter.jwt
Methods in org.forgerock.openig.filter.jwt that return Promise Modifier and Type Method Description Promise<Response,NeverThrowsException>
JwtValidationFilter. filter(Context context, Request request, Handler next)
-
Uses of Promise in org.forgerock.openig.filter.oauth2
Methods in org.forgerock.openig.filter.oauth2 that return Promise Modifier and Type Method Description Promise<Response,NeverThrowsException>
OAuth2TokenExchangeFilter. filter(Context context, Request request, Handler next)
Promise<Set<String>,ResponseException>
ScriptableResourceAccess. getRequiredScopes(Context context, Request request)
Promise<AccessTokenInfo,AccessTokenException>
CaffeineCacheAccessTokenResolver. resolve(Context context, Supplier<Request,IOException> request, String token)
Promise<AccessTokenInfo,AccessTokenException>
ScriptableAccessTokenResolver. resolve(Context context, Supplier<Request,IOException> request, String token)
Promise<AccessTokenInfo,AccessTokenException>
StatelessAccessTokenResolver. resolve(Context context, Supplier<Request,IOException> request, String token)
-
Uses of Promise in org.forgerock.openig.filter.oauth2.client
Methods in org.forgerock.openig.filter.oauth2.client that return Promise Modifier and Type Method Description Promise<Response,NeverThrowsException>
ClientRegistrationFilter. filter(Context context, Request request, Handler next)
Promise<Response,NeverThrowsException>
DiscoveryFilter. filter(Context context, Request request, Handler next)
Promise<Response,NeverThrowsException>
OAuth2ClientFilter. filter(Context context, Request request, Handler next)
Promise<Issuer,DiscoveryException>
IssuerRepository. findByName(String issuerName)
Find a registeredIssuer
whose name matches issuerName.Promise<Issuer,DiscoveryException>
IssuerRepository. findBySupportedDomainNames(String givenDomainName)
Find a registeredIssuer
that supports the given {code domainName}.Promise<Issuer,DiscoveryException>
IssuerRepository. findOrCreateFromWellKnownUri(String issuerName, URI wellKnownUri)
Try to find an already registered Issuer named issuerName.Promise<Issuer,DiscoveryException>
IssuerRepository. findOrCreateFromWellKnownUri(String issuerName, URI wellKnownUri, List<Pattern> supportedDomains, Handler handler)
Tries to find an already registered Issuer named issuerName.Promise<JsonValue,OAuth2ErrorException>
ClientRegistration. getAccessToken(Context context, String code, String callbackUri)
Exchanges the authorization code for an access token and optional ID token, and then update the session state.Promise<JsonValue,OAuth2ErrorException>
ClientRegistration. getUserInfo(Context context, org.forgerock.openig.filter.oauth2.client.OAuth2Session session)
Returns a Promise completed either with the json value of the user info obtained from the authorization server if the response from the authorization server has a status code of 200, or with an exception, meaning the access token may have expired.Promise<ClientRegistration,RegistrationException>
ClientRegistrationStrategy. performClientRegistration(Context context, Issuer issuer)
Perform client registration for the suppliedIssuer
.Promise<JsonValue,OAuth2ErrorException>
ClientRegistration. refreshAccessToken(Context context, org.forgerock.openig.filter.oauth2.client.OAuth2Session session)
Refreshes the actual access token, making a refresh request to the token end-point.Promise<Issuer,DiscoveryException>
IssuerRepository. register(String issuerName, JsonValue config, List<Pattern> supportedDomains)
Register anIssuer
into the repository.Constructor parameters in org.forgerock.openig.filter.oauth2.client with type arguments of type Promise Constructor Description OAuth2ClientFilter(org.forgerock.openig.filter.oauth2.client.ClientRegistrationRepository registrations, PerItemEvictionStrategyCache<String,Promise<Map<String,Object>,OAuth2ErrorException>> userInfoCache, org.forgerock.openig.filter.oauth2.client.UriValidationService validationService, Clock clock, Handler discoveryAndDynamicRegistrationChain, Expression<String> clientEndpoint)
Constructs anOAuth2ClientFilter
. -
Uses of Promise in org.forgerock.openig.filter.oauth2.cnf
Methods in org.forgerock.openig.filter.oauth2.cnf that return Promise Modifier and Type Method Description Promise<Result,NeverThrowsException>
Result. asPromise()
Returns a new completed promise wrapping this result.Promise<Response,NeverThrowsException>
CertificateThumbprintFilter. filter(Context context, Request request, Handler next)
Promise<AccessTokenInfo,AccessTokenException>
ConfirmationKeyVerifierAccessTokenResolver. resolve(Context context, Supplier<Request,IOException> request, String token)
Promise<Result,NeverThrowsException>
ClientContextCertificateThumbprintVerifier. verify(Context context, AccessTokenInfo tokenInfo, JsonValue cnfKey)
Promise<Result,NeverThrowsException>
ConfirmationKeyVerifier. verify(Context context, AccessTokenInfo tokenInfo, JsonValue cnfKey)
Verifies the given confirmation key value.Promise<Result,NeverThrowsException>
Sha256AttributeCertificateThumbprintVerifier. verify(Context context, AccessTokenInfo tokenInfo, JsonValue cnfKey)
-
Uses of Promise in org.forgerock.openig.filter.throttling
Methods in org.forgerock.openig.filter.throttling that return Promise Modifier and Type Method Description Promise<Response,NeverThrowsException>
ThrottlingFilter. filter(Context context, Request request, Handler next)
Promise<ThrottlingRate,Exception>
DefaultRateThrottlingPolicy. lookup(Context context, Request request)
Promise<ThrottlingRate,Exception>
FixedRateThrottlingPolicy. lookup(Context context, Request request)
Promise<ThrottlingRate,Exception>
MappedThrottlingPolicy. lookup(Context context, Request request)
Promise<ThrottlingRate,Exception>
ScriptableThrottlingPolicy. lookup(Context context, Request request)
Promise<ThrottlingRate,Exception>
ThrottlingPolicy. lookup(Context context, Request request)
Returns theThrottlingRate
that should be used for the provided request.Promise<Long,NeverThrowsException>
ThrottlingStrategy. throttle(String partitionKey, ThrottlingRate throttlingRate)
Based on the given partitionKey and throttlingRate, return if the call is accepted or not.Promise<Long,NeverThrowsException>
TokenBucketThrottlingStrategy. throttle(String partitionKey, ThrottlingRate throttlingRate)
-
Uses of Promise in org.forgerock.openig.handler
Methods in org.forgerock.openig.handler that return Promise Modifier and Type Method Description Promise<Response,NeverThrowsException>
DesKeyGenHandler. handle(Context context, Request request)
Deprecated.Promise<Response,NeverThrowsException>
DispatchHandler. handle(Context context, Request request)
Promise<Response,NeverThrowsException>
JwkSetHandler. handle(Context context, Request request)
Promise<Response,NeverThrowsException>
ScriptableHandler. handle(Context context, Request request)
Promise<Response,NeverThrowsException>
SequenceHandler. handle(Context context, Request request)
Promise<Response,NeverThrowsException>
StaticResponseHandler. handle(Context context, Request request)
Promise<Response,NeverThrowsException>
WelcomeHandler. handle(Context context, Request request)
-
Uses of Promise in org.forgerock.openig.handler.resources
Methods in org.forgerock.openig.handler.resources that return Promise Modifier and Type Method Description Promise<Response,NeverThrowsException>
ResourceHandler. handle(Context context, Request request)
-
Uses of Promise in org.forgerock.openig.handler.router
Methods in org.forgerock.openig.handler.router that return Promise Modifier and Type Method Description Promise<Response,NeverThrowsException>
NullResponseFilter. filter(Context context, Request request, Handler next)
Promise<Response,NeverThrowsException>
RouterHandler. handle(Context context, Request request)
-
Uses of Promise in org.forgerock.openig.handler.saml
Methods in org.forgerock.openig.handler.saml that return Promise Modifier and Type Method Description Promise<Response,NeverThrowsException>
SamlFederationHandler. handle(Context context, Request request)
-
Uses of Promise in org.forgerock.openig.http
Methods in org.forgerock.openig.http that return Promise Modifier and Type Method Description Promise<ActionResponse,ResourceException>
ServerInfoSingletonProvider. actionInstance(Context context, ActionRequest request)
Promise<ResourceResponse,ResourceException>
ServerInfoSingletonProvider. patchInstance(Context context, PatchRequest request)
Promise<ResourceResponse,ResourceException>
ServerInfoSingletonProvider. readInstance(Context context, ReadRequest request)
Promise<ResourceResponse,ResourceException>
ServerInfoSingletonProvider. updateInstance(Context context, UpdateRequest request)
-
Uses of Promise in org.forgerock.openig.openam
Methods in org.forgerock.openig.openam that return Promise Modifier and Type Method Description protected abstract Promise<Response,NeverThrowsException>
AbstractConditionAdviceFilter. doRedirect(Context context, Request request, Handler next, List<org.forgerock.openig.openam.AbstractConditionAdviceFilter.Advice> advices)
Handle redirect to theinstance
to verify the required advices.protected Promise<Response,NeverThrowsException>
CdSsoConditionAdviceFilter. doRedirect(Context context, Request request, Handler next, List<org.forgerock.openig.openam.AbstractConditionAdviceFilter.Advice> advices)
Promise<Response,NeverThrowsException>
AbstractConditionAdviceFilter. filter(Context context, Request request, Handler next)
Promise<Response,NeverThrowsException>
CapturedUserPasswordFilter. filter(Context context, Request request, Handler next)
Promise<Response,NeverThrowsException>
CrossDomainSingleSignOnFilter. filter(Context context, Request request, Handler next)
Promise<Response,NeverThrowsException>
DeprecatedUserProfileFilter. filter(Context context, Request request, Handler next)
Deprecated.Promise<Response,NeverThrowsException>
PolicyEnforcementFilter. filter(Context context, Request request, Handler next)
Promise<Response,NeverThrowsException>
SessionInfoFilter. filter(Context context, Request request, Handler next)
Promise<Response,NeverThrowsException>
SingleSignOnFilter. filter(Context context, Request request, Handler next)
Promise<Response,NeverThrowsException>
TokenTransformationFilter. filter(Context context, Request request, Handler next)
Promise<Response,NeverThrowsException>
UserProfileFilter. filter(Context context, Request request, Handler next)
-
Uses of Promise in org.forgerock.openig.openam.session
Methods in org.forgerock.openig.openam.session that return Promise Modifier and Type Method Description Promise<Response,NeverThrowsException>
AmSessionIdleTimeoutFilter. filter(Context context, Request request, Handler next)
-
Uses of Promise in org.forgerock.openig.proxy
Methods in org.forgerock.openig.proxy that return Promise Modifier and Type Method Description Promise<Void,NeverThrowsException>
CustomProxyOptions. configure(Options options)
Promise<Void,NeverThrowsException>
NoProxyOptions. configure(Options options)
Promise<Void,NeverThrowsException>
SystemProxyOptions. configure(Options options)
-
Uses of Promise in org.forgerock.openig.reactive
Methods in org.forgerock.openig.reactive that return types with arguments of type Promise Modifier and Type Method Description static <T> io.reactivex.rxjava3.core.SingleConverter<T,Promise<T,NeverThrowsException>>
ReactiveUtils. toPromise()
Converts a Single to a promise. -
Uses of Promise in org.forgerock.openig.script
Methods in org.forgerock.openig.script that return Promise Modifier and Type Method Description protected Promise<V,ScriptException>
AbstractScriptableHeapObject. runScriptAsync(Bindings bindings, Context context, Class<V> clazz)
Asynchronously runs the compiled script using the provided bindings. -
Uses of Promise in org.forgerock.openig.secrets
Methods in org.forgerock.openig.secrets that return Promise Modifier and Type Method Description <S extends GenericSecret>
Promise<S,NoSuchSecretException>Base64EncodedSecretStore. getActive(Purpose<S> purpose)
<S extends Secret>
Promise<S,NoSuchSecretException>DefaultSecretsService. getActiveSecret(Purpose<S> purpose)
Deprecated.<S extends Secret>
Promise<S,NoSuchSecretException>SecretsService. getActiveSecret(Purpose<S> purpose)
Gets the currently active secret for the given purpose.<S extends Secret>
Promise<S,NoSuchSecretException>SecretsServiceProvider. getActiveSecret(Purpose<S> purpose)
<S extends GenericSecret>
Promise<S,NoSuchSecretException>Base64EncodedSecretStore. getNamed(Purpose<S> purpose, String name)
<S extends Secret>
Promise<Stream<S>,NeverThrowsException>DefaultSecretsService. getNamedOrValidSecrets(Purpose<S> purpose, String id)
Deprecated.<S extends Secret>
Promise<Stream<S>,NeverThrowsException>SecretsService. 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<Stream<S>,NeverThrowsException>SecretsServiceProvider. getNamedOrValidSecrets(Purpose<S> purpose, String id)
<S extends Secret>
Promise<S,NoSuchSecretException>DefaultSecretsService. getNamedSecret(Purpose<S> purpose, String id)
Deprecated.<S extends Secret>
Promise<S,NoSuchSecretException>SecretsService. getNamedSecret(Purpose<S> purpose, String id)
Gets the secret for the given purpose with the given stable secret id.<S extends Secret>
Promise<S,NoSuchSecretException>SecretsServiceProvider. getNamedSecret(Purpose<S> purpose, String id)
<S extends GenericSecret>
Promise<Stream<S>,NeverThrowsException>Base64EncodedSecretStore. getValid(Purpose<S> purpose)
<S extends Secret>
Promise<Stream<S>,NeverThrowsException>DefaultSecretsService. getValidSecrets(Purpose<S> purpose)
Deprecated.<S extends Secret>
Promise<Stream<S>,NeverThrowsException>SecretsService. getValidSecrets(Purpose<S> purpose)
Returns all secrets for the given purpose which have not yet expired.<S extends Secret>
Promise<Stream<S>,NeverThrowsException>SecretsServiceProvider. getValidSecrets(Purpose<S> purpose)
-
Uses of Promise in org.forgerock.openig.sql
Methods in org.forgerock.openig.sql that return Promise Modifier and Type Method Description Promise<Response,NeverThrowsException>
SqlAttributesFilter. filter(Context context, Request request, Handler next)
-
Uses of Promise in org.forgerock.openig.tools
Methods in org.forgerock.openig.tools with parameters of type Promise Modifier and Type Method Description static <K,V,E extends Exception>
Promise<V,E>CaffeineUtils. invalidateEagerly(com.github.benmanes.caffeine.cache.AsyncCache<K,V> cache, Promise<V,E> promise, K key)
Preemptively invalidates the cache entry on failure.static <T,E extends Exception>
CompletableFuture<T>FutureUtils. promiseToFuture(Promise<T,E> promise)
Converts aPromise
to aCompletableFuture
. -
Uses of Promise in org.forgerock.openig.tools.am
Methods in org.forgerock.openig.tools.am that return Promise Modifier and Type Method Description Promise<AmService.Builder,NeverThrowsException>
AmService.Discovery. discover(Clock clock)
Promise<Void,Exception>
AmService. start()
Starts this server instance (and associated services).Promise<Void,NeverThrowsException>
AmService. stop()
Stops this server instance (and associated services). -
Uses of Promise in org.forgerock.openig.tools.authentication
Methods in org.forgerock.openig.tools.authentication that return Promise Modifier and Type Method Description Promise<SsoToken,AuthenticationException>
AuthenticationService. authenticate(Context context, String username, char[] password)
Authenticates a subject (identified with the givenusername
andpassword
credentials), returning asynchronously an SSO token (if the authentication succeeded) or anAuthenticationException
on failures (I/O, invalid credentials, ...). -
Uses of Promise in org.forgerock.openig.tools.authentication.chf
Methods in org.forgerock.openig.tools.authentication.chf that return Promise Modifier and Type Method Description Promise<SsoToken,AuthenticationException>
DefaultAuthenticationService. authenticate(Context context, String username, char[] password)
Promise<V,E>
AsyncRefreshableSupplier. get(Context context)
Computes (or re-computes) the value in a thread-safe manner, making sure that only 1 thread will compute the value, the other being blocked, waiting for the result to be computed.Promise<V,E>
AsyncRefreshableSupplier. getWithoutRefresh()
Computes the value in a thread-safe manner, making sure that only 1 thread will compute the value, the other being blocked, waiting for the result to be computed.Promise<V,E>
AsyncRefreshableSupplier. refresh(Context context)
Refresh (and returns) the value, in a thread-safe manner. -
Uses of Promise in org.forgerock.openig.tools.jwt.factory
Methods in org.forgerock.openig.tools.jwt.factory that return Promise Modifier and Type Method Description Promise<Jwt,NoSuchSecretException>
JwtFactory. create(Map<String,Object> template)
Produces a newJwt
.protected Promise<EncryptedJwtBuilder,NoSuchSecretException>
EncryptedJwtFactory. jwtBuilder()
protected Promise<SignedJwtBuilderImpl,NoSuchSecretException>
SignedJwtFactory. jwtBuilder()
protected Promise<SignedThenEncryptedJwtBuilder,NoSuchSecretException>
SignedThenEncryptedJwtFactory. jwtBuilder()
protected Promise<SignedJwtBuilderImpl,NoSuchSecretException>
UnsignedJwtFactory. jwtBuilder()
Deprecated. -
Uses of Promise in org.forgerock.openig.tools.jwt.validation
Methods in org.forgerock.openig.tools.jwt.validation that return Promise Modifier and Type Method Description Promise<Result,NeverThrowsException>
JweDecryptionConstraint. apply(ValidatorConstraintContext constraintContext)
Promise<Result,NeverThrowsException>
JwtClaimConstraint. apply(ValidatorConstraintContext constraintContext, String key, T value)
Apply a constraint to the given claim value.Promise<Result,NeverThrowsException>
JwtConstraint. apply(ValidatorConstraintContext constraintContext)
Apply a constraint to the given JWT.Promise<Result,NeverThrowsException>
Result. asPromise()
Return this result as a completedPromise
.Promise<JwtValidatorResult,NeverThrowsException>
JwtValidator. report(Jwt jwt)
Returns the result of the JWT validation and a list of any violations.Promise<JwtValidatorResult,NeverThrowsException>
JwtValidator. report(Jwt jwt, Map<String,Object> attributes)
Returns the result of the JWT validation and a list of any violations. -
Uses of Promise in org.forgerock.openig.tools.notifications
Methods in org.forgerock.openig.tools.notifications that return Promise Modifier and Type Method Description Promise<NotificationService.Registration,NeverThrowsException>
NotificationService. addConnectionEventListener(Consumer<ConnectionEvent> listener)
Registers asynchronously a listener that will be notified on connection/disconnection events.Promise<Subscription,SubscriptionException>
NotificationService. subscribe(String topic, NotificationListener listener)
Subscribes (asynchronously) to a given topic, providing a listener that will be invoked at notification reception time.Promise<SubscriptionAck,IOException>
Subscription. unsubscribe()
Un-subscribes from the topic asynchronously. -
Uses of Promise in org.forgerock.openig.tools.notifications.ws
Methods in org.forgerock.openig.tools.notifications.ws that return Promise Modifier and Type Method Description Promise<NotificationService.Registration,NeverThrowsException>
NotificationServiceImpl. addConnectionEventListener(Consumer<ConnectionEvent> listener)
Promise<NotificationService.Registration,NeverThrowsException>
SubscriptionService. addConnectionEventListener(Consumer<ConnectionEvent> listener)
Promise<Void,NeverThrowsException>
SubscriptionService. close()
Close theSubscriptionService
and unsubscribe from all topics.Promise<Void,IOException>
WebSocketAdapter. sendObject(Object request)
Send the supplied request over the websocket to the remote party.Promise<Void,Exception>
NotificationServiceImpl. start()
Promise<WebSocketAdapter,Exception>
WebSocketAdapter. start()
Start the websocket client and connect to the remote endpoint.Promise<Void,NeverThrowsException>
NotificationServiceImpl. stop()
Promise<Subscription,SubscriptionException>
NotificationServiceImpl. subscribe(String topic, NotificationListener listener)
Promise<Subscription,SubscriptionException>
SubscriptionService. subscribe(String topicName, NotificationListener listener)
-
Uses of Promise in org.forgerock.openig.tools.session
Methods in org.forgerock.openig.tools.session that return Promise Modifier and Type Method Description Promise<Optional<SessionInfo>,SessionException>
CacheSessionService. getSessionInfo(Context context, String ssoToken)
Promise<Optional<SessionInfo>,SessionException>
CrestSessionService. getSessionInfo(Context context, String ssoToken)
Promise<Optional<SessionInfo>,SessionException>
SessionService. getSessionInfo(Context context, String ssoToken)
Returns a promise that will be completed with an optionalSessionInfo
or with anSessionException
in case of errors.Promise<Void,SessionException>
CacheSessionService. logout(Context context, String ssoToken)
Promise<Void,SessionException>
CrestSessionService. logout(Context context, String ssoToken)
Promise<Void,SessionException>
SessionService. logout(Context context, String ssoToken)
Returns a promise that will be completed with aVoid
or with anSessionException
in case of errors.Promise<Void,Exception>
CacheSessionService. start()
Promise<Void,NeverThrowsException>
CacheSessionService. stop()
-
Uses of Promise in org.forgerock.openig.tools.userprofile
Methods in org.forgerock.openig.tools.userprofile that return Promise Modifier and Type Method Description Promise<UserProfile,UserProfileException>
CacheUserProfileService. getUserProfile(Context context, String username)
Promise<UserProfile,UserProfileException>
CrestUserProfileService. getUserProfile(Context context, String username)
Promise<UserProfile,UserProfileException>
UserProfileService. getUserProfile(Context context, String username)
Returns a promise that will be completed with anUserProfile
or with anUserProfileException
in case of errors. -
Uses of Promise in org.forgerock.openig.ui.record
-
Uses of Promise in org.forgerock.openig.uma
Methods in org.forgerock.openig.uma that return Promise Modifier and Type Method Description Promise<org.forgerock.openig.uma.Share,UmaException>
UmaSharingService. createShare(Context context, String resourcePath, String pat)
Creates a Share that will be used to protect the givenresourcePath
.Promise<Response,NeverThrowsException>
UmaResourceServerFilter. filter(Context context, Request request, Handler next)
-
Uses of Promise in org.forgerock.openig.util
Methods in org.forgerock.openig.util that return Promise Modifier and Type Method Description static Promise<Request,URISyntaxException>
BaseUriUtil. rebaseRequest(Expression<String> baseUri, Bindings bindings, Request request)
Rebase the URI of the request based on the evaluation of the baseUri expression. -
Uses of Promise in org.forgerock.openig.websocket
Methods in org.forgerock.openig.websocket that return Promise Modifier and Type Method Description Promise<Response,NeverThrowsException>
WebSocketHandshakeDetectorFilter. filter(Context context, Request request, Handler next)
-
Uses of Promise in org.forgerock.secrets
Methods in org.forgerock.secrets that return Promise Modifier and Type Method Description Promise<SecretBuilder,NoSuchSecretException>
SecretDecoder. decodeToPromise(byte[] data)
Decodes the raw data retrieved from a backend into aSecretBuilder
for further processing.default <S extends T>
Promise<S,NoSuchSecretException>SecretStore. getActive(Purpose<S> purpose)
Returns the active secret for the given purpose.<S extends T>
Promise<S,NoSuchSecretException>ThreadPoolSecretStore. getActive(Purpose<S> purpose)
<S extends Secret>
Promise<S,NoSuchSecretException>SecretsProvider. getActiveSecret(Purpose<S> purpose)
Gets the currently active secret for the given purpose.Promise<T,NoSuchSecretException>
SecretReference. getAsync()
Gets the current active secret object asynchronously, refreshing it if necessary.default <S extends T>
Promise<S,NoSuchSecretException>SecretStore. getNamed(Purpose<S> purpose, String name)
Returns the named secret from this store.<S extends T>
Promise<S,NoSuchSecretException>ThreadPoolSecretStore. getNamed(Purpose<S> purpose, String name)
<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>SecretStore. getValid(Purpose<S> purpose)
Returns all valid secrets for the given purpose from this store.<S extends T>
Promise<Stream<S>,NeverThrowsException>ThreadPoolSecretStore. getValid(Purpose<S> purpose)
<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.jwkset
Methods in org.forgerock.secrets.jwkset that return Promise Modifier and Type Method Description <S extends CryptoKey>
Promise<S,NoSuchSecretException>JwkSetSecretStore. getNamed(Purpose<S> purpose, String name)
<S extends CryptoKey>
Promise<Stream<S>,NeverThrowsException>JwkSetSecretStore. getValid(Purpose<S> purpose)
-
Uses of Promise in org.forgerock.secrets.keystore
Methods in org.forgerock.secrets.keystore that return Promise Modifier and Type Method Description <S extends CryptoKey>
Promise<S,NoSuchSecretException>KeyStoreSecretStore. getActive(Purpose<S> purpose)
<S extends CryptoKey>
Promise<S,NoSuchSecretException>KeyStoreSecretStore. getNamed(Purpose<S> purpose, String id)
<S extends CryptoKey>
Promise<Stream<S>,NeverThrowsException>KeyStoreSecretStore. getValid(Purpose<S> purpose)
-
Uses of Promise in org.forgerock.secrets.oauth2
Methods in org.forgerock.secrets.oauth2 that return Promise Modifier and Type Method Description <S extends GenericSecret>
Promise<S,NoSuchSecretException>AccessTokenSecretStore. getActive(Purpose<S> purpose)
<S extends GenericSecret>
Promise<S,NoSuchSecretException>AccessTokenSecretStore. getNamed(Purpose<S> purpose, String name)
<S extends GenericSecret>
Promise<Stream<S>,NeverThrowsException>AccessTokenSecretStore. getValid(Purpose<S> purpose)
-
Uses of Promise in org.forgerock.secrets.propertyresolver
Methods in org.forgerock.secrets.propertyresolver that return Promise Modifier and Type Method Description Promise<SecretBuilder,NoSuchSecretException>
PemPropertyFormat. 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>PropertyResolverSecretStore. getActive(Purpose<S> purpose)
<S extends Secret>
Promise<S,NoSuchSecretException>PropertyResolverSecretStore. getNamed(Purpose<S> purpose, String name)
<S extends Secret>
Promise<Stream<S>,NeverThrowsException>PropertyResolverSecretStore. getValid(Purpose<S> purpose)
Returns a stream of the active secret for the given purpose. -
Uses of Promise in org.forgerock.util
Methods in org.forgerock.util that return Promise Modifier and Type Method Description Promise<VOUT,E>
AsyncFunction. apply(VIN value)
Asynchronously applies this function to the input parametervalue
and returns aPromise
for the result.Promise<VOUT,E>
CloseSilentlyAsyncFunction. apply(VIN value)
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
Classes in org.forgerock.util.promise that implement Promise Modifier and Type Class Description class
PromiseImpl<V,E extends Exception>
An implementation ofPromise
which can be used as is, or as the basis for more complex asynchronous behavior.Methods in org.forgerock.util.promise that return Promise Modifier and Type Method Description static 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.static Promise<Promises.Results,Exception>
Promises. join(List<Promise<?,? extends Exception>> promises)
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>
Promises. join(Promise<?,? extends Exception>... promises)
Returns aPromise
which will be completed once all of the provided promises have succeeded, or as soon as one of them fails.static <V,E extends Exception>
Promise<V,E>Promises. newExceptionPromise(E exception)
Returns aPromise
representing an asynchronous task which has already failed with the provided exception.static <V,E extends Exception>
Promise<V,E>Promises. newPromise(Supplier<V,E> supplier)
Execute a task and return the result as aPromise
.static <V,E extends Exception>
Promise<V,E>Promises. newResultPromise(V result)
Returns aPromise
representing an asynchronous task which has already succeeded with the provided result.static <V,E extends Exception>
Promise<V,E>Promises. newRuntimeExceptionPromise(RuntimeException exception)
Returns aPromise
representing an asynchronous task which has already failed with the provided runtime exception.static <E extends Exception>
Promise<Void,E>Promises. newVoidResultPromise()
Returns aPromise
representing an asynchronous task which has already succeeded without result.<VOUT> Promise<VOUT,E>
Promise. then(Function<? super V,VOUT,E> onResult)
Submits the provided function for execution once thisPromise
has completed with a result, and returns a newPromise
representing the outcome of the function.<VOUT,EOUT extends Exception>
Promise<VOUT,EOUT>Promise. then(Function<? super V,VOUT,EOUT> onResult, Function<? super E,VOUT,EOUT> onException)
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.<VOUT,EOUT extends Exception>
Promise<VOUT,EOUT>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.<VOUT> Promise<VOUT,E>
PromiseImpl. then(Function<? super V,VOUT,E> onResult)
<VOUT,EOUT extends Exception>
Promise<VOUT,EOUT>PromiseImpl. then(Function<? super V,VOUT,EOUT> onResult, Function<? super E,VOUT,EOUT> onException)
<VOUT,EOUT extends Exception>
Promise<VOUT,EOUT>PromiseImpl. then(Function<? super V,VOUT,EOUT> onResult, Function<? super E,VOUT,EOUT> onException, Function<? super RuntimeException,VOUT,EOUT> onRuntimeException)
Promise<V,E>
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.Promise<V,E>
PromiseImpl. thenAlways(Runnable always)
<VOUT> Promise<VOUT,E>
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.<VOUT,EOUT extends Exception>
Promise<VOUT,EOUT>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.<VOUT,EOUT extends Exception>
Promise<VOUT,EOUT>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.<VOUT> Promise<VOUT,E>
PromiseImpl. thenAsync(AsyncFunction<? super V,VOUT,E> onResult)
<VOUT,EOUT extends Exception>
Promise<VOUT,EOUT>PromiseImpl. thenAsync(AsyncFunction<? super V,VOUT,EOUT> onResult, AsyncFunction<? super E,VOUT,EOUT> onException)
<VOUT,EOUT extends Exception>
Promise<VOUT,EOUT>PromiseImpl. thenAsync(AsyncFunction<? super V,VOUT,EOUT> onResult, AsyncFunction<? super E,VOUT,EOUT> onException, AsyncFunction<? super RuntimeException,VOUT,EOUT> onRuntimeException)
<EOUT extends Exception>
Promise<V,EOUT>Promise. thenCatch(Function<? super E,V,EOUT> onException)
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.<EOUT extends Exception>
Promise<V,EOUT>PromiseImpl. thenCatch(Function<? super E,V,EOUT> onException)
<EOUT extends Exception>
Promise<V,EOUT>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.<EOUT extends Exception>
Promise<V,EOUT>PromiseImpl. thenCatchAsync(AsyncFunction<? super E,V,EOUT> onException)
Promise<V,E>
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.Promise<V,E>
PromiseImpl. thenCatchRuntimeException(Function<? super RuntimeException,V,E> onRuntimeException)
Promise<V,E>
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.Promise<V,E>
PromiseImpl. thenCatchRuntimeExceptionAsync(AsyncFunction<? super RuntimeException,V,E> onRuntimeException)
default Promise<Void,E>
Promise. thenDiscardResult()
Discards the promise result if thisPromise
has completed with a result.Promise<V,E>
Promise. thenFinally(Runnable onResultOrException)
Submits the provided runnable for execution once thisPromise
has completed, and regardless of whether of its outcome.Promise<V,E>
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
.<T extends ResultHandler<? super V> & ExceptionHandler<? super E> & RuntimeExceptionHandler>
Promise<V,E>PromiseImpl. thenOnCompletion(T handler)
Promise<V,E>
Promise. thenOnException(ExceptionHandler<? super E> onException)
Registers the provided completion handler for notification if thisPromise
cannot be completed due to an exception.Promise<V,E>
PromiseImpl. thenOnException(ExceptionHandler<? super E> onException)
Promise<V,E>
Promise. thenOnResult(ResultHandler<? super V> onResult)
Registers the provided completion handler for notification once thisPromise
has completed with a result.Promise<V,E>
PromiseImpl. thenOnResult(ResultHandler<? super V> onResult)
Promise<V,E>
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<V,E>
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).Promise<V,E>
PromiseImpl. thenOnResultOrException(Runnable onResultOrException)
Promise<V,E>
PromiseImpl. thenOnResultOrException(ResultHandler<? super V> onResult, ExceptionHandler<? super E> onException)
Promise<V,E>
Promise. thenOnRuntimeException(RuntimeExceptionHandler onRuntimeException)
Registers the provided completion handler for notification if thisPromise
cannot be completed due to an runtime exception.Promise<V,E>
PromiseImpl. thenOnRuntimeException(RuntimeExceptionHandler onRuntimeException)
static <V,E extends Exception>
Promise<List<V>,E>Promises. when(List<Promise<V,E>> promises)
Returns aPromise
which will be completed once all of the provided promises have succeeded, or as soon as one of them fails.static <V,E extends Exception>
Promise<List<V>,E>Promises. when(Promise<V,E>... promises)
Returns aPromise
which will be completed once all of the provided promises have succeeded, or as soon as one of them fails.Methods in org.forgerock.util.promise that return types with arguments of type Promise Modifier and Type Method Description static <V,E extends Exception>
Optional<Promise<V,E>>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.Methods in org.forgerock.util.promise with parameters of type Promise Modifier and Type Method Description static Promise<Promises.Results,Exception>
Promises. join(Promise<?,? extends Exception>... promises)
Returns aPromise
which will be completed once all of the provided promises have succeeded, or as soon as one of them fails.static <V,E extends Exception>
Promise<List<V>,E>Promises. when(Promise<V,E>... promises)
Returns aPromise
which will be completed once all of the provided promises have succeeded, or as soon as one of them fails.Method parameters in org.forgerock.util.promise with type arguments of type Promise Modifier and Type Method Description static 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.static <V,E extends Exception>
Optional<Promise<V,E>>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>
Promises. join(List<Promise<?,? extends Exception>> promises)
Returns aPromise
which will be completed once all of the provided promises have succeeded, or as soon as one of them fails.static <V,E extends Exception>
Promise<List<V>,E>Promises. when(List<Promise<V,E>> promises)
Returns aPromise
which will be completed once all of the provided promises have succeeded, or as soon as one of them fails.
-