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 JDBC 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.
Models and manages elements of the Hypertext Transfer Protocol.
Core
Filter
implementations.Support for CORS.
Core
Handler
implementations.This package provides APIs for OAuth 2.0 services implementations.
This package defines OpenAM specific logic needed to retrieve an
AccessTokenInfo
.Models and manages elements of the Hypertext Transfer Protocol.
Provides routing functionality for HTTP requests.
Provides interfaces for managing and interacting with HTTP Sessions.
HTTP service provider API.
Classes to support OpenAPI API Descriptions using Swagger.
Provides an API for the traversal and manipulation of JSON object model structures in Java.
Classes and interfaces for JWT encryption and JWEs.
Classes and interfaces for creating and manipulating JWKs.
This package contains classes to manage a JWKs URI.
Classes and interfaces for JWT signing and JWS'.
Classes and interfaces for core types including connections, request
handlers, resources, and their exceptions.
Identity Assertion handler.
Identity Assertion plugins.
Kerberos Identity Assertion plugin.
Service Provider interface for registering audit events.
Integrates with the Java Enterprise Edition Unified Expression Language API.
Filters the requests and/or responses of HTTP.
Filters the HTTP request using a declarative configuration model based on a chain of predicates to validate.
This package contains the components used to implement circuit breaking.
Support for financial APIs (Open Banking, PSD2, Berlin Group, ...).
This package contains the components used to implement some JWT related filter.
This package contains the OAuth2 Token validation filter that acts as an OAuth 2 Resource Server.
OAuth 2.0 Client filter implementation.
JWT confirmation key support for access tokens.
This package contains the components used to implement a throttling rate support.
Handles HTTP requests by generating responses.
Handles the tech preview identity assertion processing.
Contains components and APIs used to serve static resources.
Provides automated router capability that loads its configurations files (called routes) from a given directory.
Identity Gateway SAML support.
Integrates with the ForgeRock HTTP Framework.
Integration classes specifically for ForgeRock Access Management.
AM Session idle timeout tracking.
This package contains the components used to integrate with PingOne Protect, to support risk evaluation and routing.
Contains every classes related to Ping's sideband API.
Contains proxy related heaplets.
Contains RxJava specific tools.
Scripting support.
Provides the Common Secrets API for accessing secrets of various kinds.
Manage the Identity Gateway session using an HTTP Cookie.
Provides SQL and JDBC support.
Common tools used in policy service.
Access Management Server.
AM authentication service.
HTTP-based authentication service.
Provides JWT capabilities to the Identity Gateway.
This package contains classes used to perform JWT validation.
AM notifications service.
Web socket notifications service implementation.
AM Links implementations.
Contains every Commons secrets related classes used in IG but not backported into Commons.
This package contains classes to call AM to retrieve user's session info.
This package contains classes to call AM to retrieve user's profile info.
Defines a storage service to be used by the UI to persist its component model.
This package contains the UMA (User Managed Access) components used to support the Uma Resource Server role.
Miscellaneous utility classes.
Provides a unified API for accessing secrets of various kinds.
Contains secret credential related API objects.
Secret store backend for retrieving keys from a local or remote JWK Set.
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.A Secrets API backend that can obtain OAuth 2 access tokens from a token endpoint, along with a collection of
grant type handlers.
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.-
Uses of Promise in org.forgerock.audit
Modifier and TypeMethodDescriptionAuditService.handleAction
(Context context, ActionRequest request) Audit service may support actions on the service itself or on handlers.AuditServiceProxy.handleAction
(Context context, ActionRequest request) AuditService.handleCreate
(Context context, CreateRequest request) Propagates the audit event to theAuditEventHandler
objects that have been registered for the audit event topic.AuditServiceProxy.handleCreate
(Context context, CreateRequest request) AuditService.handleDelete
(Context context, DeleteRequest request) Audit service does not support changing audit entries.AuditServiceProxy.handleDelete
(Context context, DeleteRequest request) AuditService.handlePatch
(Context context, PatchRequest request) Audit service does not support changing audit entries.AuditServiceProxy.handlePatch
(Context context, PatchRequest request) AuditService.handleQuery
(Context context, QueryRequest request, QueryResourceHandler handler) Performs the query on the specified object and returns the associated results.AuditServiceProxy.handleQuery
(Context context, QueryRequest request, QueryResourceHandler handler) AuditService.handleRead
(Context context, ReadRequest request) Gets an object from the audit logs by identifier.AuditServiceProxy.handleRead
(Context context, ReadRequest request) AuditService.handleUpdate
(Context context, UpdateRequest request) Audit service does not support changing audit entries.AuditServiceProxy.handleUpdate
(Context context, UpdateRequest request) -
Uses of Promise in org.forgerock.audit.events.handlers
Modifier and TypeMethodDescriptionAuditEventHandler.handleAction
(Context context, String topic, ActionRequest request) Performs an action.AuditEventHandlerBase.handleAction
(Context context, String topic, ActionRequest request) AuditEventHandler.publishEvent
(Context context, String topic, JsonValue event) Publishes an event to the provided topic.NoOpAuditEventHandler.publishEvent
(Context context, String topic, JsonValue event) AuditEventHandler.queryEvents
(Context context, String topic, QueryRequest query, QueryResourceHandler handler) Query some events from the provided topic.NoOpAuditEventHandler.queryEvents
(Context context, String topic, QueryRequest query, QueryResourceHandler handler) Reads an event with the provided resource id from the provided topic. -
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
(Context context, String topic, ActionRequest request) CsvAuditEventHandler.publishEvent
(Context context, String topic, JsonValue event) Create a csv audit log entry.CsvAuditEventHandler.queryEvents
(Context context, String topic, QueryRequest query, QueryResourceHandler handler) Perform a query on the csv audit log.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
(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
(Context context, String topic, QueryRequest query, QueryResourceHandler handler) Queries the Elasticsearch Search API for audit events. -
Uses of Promise in org.forgerock.audit.handlers.jdbc
Modifier and TypeMethodDescriptionJdbcAuditEventHandler.publishEvent
(Context context, String topic, JsonValue event) Publishes an event to the provided topic.JdbcAuditEventHandler.queryEvents
(Context context, String topic, QueryRequest queryRequest, QueryResourceHandler queryResourceHandler) Query some events from the provided topic. -
Uses of Promise in org.forgerock.audit.handlers.jms
Modifier and TypeMethodDescriptionJmsAuditEventHandler.publishBatch
(String payload) JmsAuditEventHandler.publishEvent
(Context context, String topic, JsonValue event) JmsAuditEventHandler.queryEvents
(Context context, String topic, QueryRequest queryRequest, QueryResourceHandler queryResourceHandler) Returns NotSupportedException as query is not implemented for JMS.Returns NotSupportedException as read is not implemented for JMS. -
Uses of Promise in org.forgerock.audit.handlers.json
Modifier and TypeMethodDescriptionJsonAuditEventHandler.handleAction
(Context context, String topic, ActionRequest request) JsonAuditEventHandler.publishEvent
(Context context, String topic, JsonValue event) JsonAuditEventHandler.queryEvents
(Context context, String topic, QueryRequest query, QueryResourceHandler handler) -
Uses of Promise in org.forgerock.audit.handlers.json.stdout
Modifier and TypeMethodDescriptionJsonStdoutAuditEventHandler.publishEvent
(Context context, String topic, JsonValue event) JsonStdoutAuditEventHandler.queryEvents
(Context context, String topic, QueryRequest query, QueryResourceHandler handler) -
Uses of Promise in org.forgerock.audit.handlers.splunk
Modifier and TypeMethodDescriptionSplunkAuditEventHandler.publishBatch
(String payload) SplunkAuditEventHandler.publishEvent
(Context context, String topic, JsonValue event) SplunkAuditEventHandler.queryEvents
(Context context, String topic, QueryRequest query, QueryResourceHandler handler) -
Uses of Promise in org.forgerock.audit.handlers.syslog
Modifier and TypeMethodDescriptionSyslogAuditEventHandler.publishEvent
(Context context, String topic, JsonValue event) SyslogAuditEventHandler.queryEvents
(Context context, String topic, QueryRequest queryRequest, QueryResourceHandler queryResourceHandler) -
Uses of Promise in org.forgerock.http
Modifier and TypeMethodDescriptionFilters the request and/or response of an exchange.Sends an HTTP request and returns aPromise
representing the pending HTTP response.Sends an HTTP request and returns aPromise
representing the pending HTTP response.Client.sendWithoutClose
(Request request) Sends an HTTP request and returns aPromise
representing the pending HTTP response.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
Modifier and TypeMethodDescriptionHandles all OPTION requests to CREST resources, all other request methods are handled by theHandler
. -
Uses of Promise in org.forgerock.http.filter.cors
-
Uses of Promise in org.forgerock.http.handler
Modifier and TypeMethodDescriptionHttpClientHandler.ProxyInfo.asyncProxyInfo
(URI proxyUri, CredentialPair<GenericSecret> credentialPair, Clock clock, Duration refreshDuration) Creates an instance of ProxyInfo for a proxy that requires authentication, this will update its secrets in the background and will not block threads.Sends an HTTP request to a remote server and returns aPromise
representing the asynchronous response. -
Uses of Promise in org.forgerock.http.oauth2
Modifier and TypeMethodDescriptionDeprecated.ResourceAccess.getRequiredScopes
(Context context, Request request) Returns the scopes required to access the resource.default Promise<AccessTokenInfo,
AccessTokenException> Deprecated, for removal: This API element is subject to removal in a future version.default Promise<AccessTokenInfo,
AccessTokenException> Resolves a given access token against an authorization server. -
Uses of Promise in org.forgerock.http.oauth2.resolver
Modifier and TypeMethodDescriptionCachingAccessTokenResolver.resolve
(Context context, Supplier<Request, IOException> request, String token) OpenAmAccessTokenResolver.resolve
(Context context, Supplier<Request, IOException> request, String token) Deprecated.TokenIntrospectionAccessTokenResolver.resolve
(Context context, Supplier<Request, IOException> request, String token) ModifierConstructorDescriptionCachingAccessTokenResolver
(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
Modifier and TypeMethodDescriptionPromise<byte[],
IOException> Entity.getBytesAsync()
Returns a promise of the decoded entity content as a byte array.Entity.getFormAsync()
Returns a promise of a copy of the "application/x-www-form-urlencoded" entity decoded as a form.Entity.getJsonAsync()
Returns a promise of the content of this entity decoded as a JSON object.Entity.getRawContentInputStreamAsync()
Returns a promise of an input stream representing the raw content of this entity.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
-
Uses of Promise in org.forgerock.http.session
Modifier and TypeMethodDescriptionLoads a new Session for the givenRequest
.Saves the session into the provided response. -
Uses of Promise in org.forgerock.http.spi
-
Uses of Promise in org.forgerock.http.swagger
-
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.jose.jwe
Modifier and TypeMethodDescriptionPromise<? 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<? extends EncryptedJwt,
JweDecryptionCheckedException> EncryptedJwt.decrypt
(ValidSecretsReference<? extends CryptoKey, NeverThrowsException> secretsReference) Attempts to decrypt the JWT using any available keys from the givenValidSecretsReference
.SignedThenEncryptedJwt.decrypt
(SecretsProvider secretsProvider, Purpose<? extends CryptoKey> purpose) SignedThenEncryptedJwt.decrypt
(ValidSecretsReference<? extends CryptoKey, NeverThrowsException> validSecretsReference) 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
.SignedThenEncryptedJwt.decryptAndVerify
(ValidSecretsReference<? extends CryptoKey, NeverThrowsException> decryptionSecretsReference, ValidSecretsReference<VerificationKey, NeverThrowsException> verificationSecretsReference) Decrypts the outer JWT and then verifies the signature on the inner JWT using supplied valid secrets.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
.Promise<byte[],
JweDecryptionCheckedException> EncryptedJwt.decryptRawPayload
(ValidSecretsReference<? extends CryptoKey, NeverThrowsException> secretsReference) Attempts to decrypt the raw payload of the JWT using any keys from the given theSecret
s contained in the givenValidSecretsReference
. -
Uses of Promise in org.forgerock.json.jose.jwk
Modifier and TypeMethodDescriptionJWKSetParser.gatherHttpContentsAsync
(URL url) Uses the Client to gather HTTP information.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
Modifier and TypeMethodDescriptionJwksStoreService.configureJwksStoreAsync
(String uid, Duration cacheTimeout, Duration cacheMissCacheTime, URL jwkUrl, Clock clock) Configure a JWKs store.JwksStore.findJwkAsync
(String kid) Search asynchronously for a JWK that matches the kid.JwksStore.findJwkAsync
(Predicate<JWK> predicate) Return the JWK matching the keyID with the algorithm and keyUse.JwksStore.findJwkAsync
(Algorithm algorithm, String keyUse) Search asynchronously for a JWK that matches the algorithm and the key usage.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.JwksStore.reloadJwksAsync()
Communicates with the configured server, attempting to download the latest JWKs for use.JwksStore.setJwkUrlAsync
(URL jwkUrl) Update the JWKs URI. -
Uses of Promise in org.forgerock.json.jose.jws
Modifier and TypeMethodDescriptionPromise<? extends EncryptedJwt,
JweDecryptionCheckedException> EncryptedThenSignedJwt.decrypt
(SecretsProvider secretsProvider, Purpose<? extends CryptoKey> decryptionPurpose) Decrypts the inner encrypted JWE so that the payload can be accessed.Promise<? extends EncryptedJwt,
JweDecryptionCheckedException> EncryptedThenSignedJwt.decrypt
(ValidSecretsReference<? extends CryptoKey, NeverThrowsException> secretsReference) Decrypts the inner encrypted JWE so that the payload can be accessed.SigningManager.newSigningHandler
(Purpose<SigningKey> purpose) Constructs a new SigningHandler configured for signing with the provided secret purpose.SigningManager.newSigningHandler
(SecretReference<SigningKey> secretReference) Constructs a new SigningHandler configured for signing with the provided secret reference.SigningManager.newVerificationHandler
(Purpose<VerificationKey> purpose, String keyId) Constructs a new SigningHandler configured for verifying with the provided secret purpose.SigningManager.newVerificationHandler
(ValidSecretsReference<VerificationKey, NeverThrowsException> validSecrets) Constructs a new SigningHandler configured for verifying with the provided valid secrets reference. -
Uses of Promise in org.forgerock.json.resource
Modifier and TypeMethodDescriptionAbstractConnectionWrapper.actionAsync
(Context context, ActionRequest request) Asynchronously performs an action against a specific resource, or set of resources.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.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.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.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
(Context context, CreateRequest request) Asynchronously adds a new JSON resource.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.MemoryBackend.createInstance
(Context context, CreateRequest request) Adds
a new resource instance to the collection.AbstractConnectionWrapper.deleteAsync
(Context context, DeleteRequest request) Asynchronously deletes a JSON resource.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.MemoryBackend.deleteInstance
(Context context, String id, DeleteRequest request) Removes
a resource instance from the collection.Filter.filterAction
(Context context, ActionRequest request, RequestHandler next) Filters an action request.ResourceApiVersionRoutingFilter.filterAction
(Context context, ActionRequest request, RequestHandler next) ResourceApiVersionSpecificationFilter.filterAction
(Context context, ActionRequest request, RequestHandler next) Filter.filterCreate
(Context context, CreateRequest request, RequestHandler next) Filters a create request.ResourceApiVersionRoutingFilter.filterCreate
(Context context, CreateRequest request, RequestHandler next) ResourceApiVersionSpecificationFilter.filterCreate
(Context context, CreateRequest request, RequestHandler next) Filter.filterDelete
(Context context, DeleteRequest request, RequestHandler next) Filters a delete request.ResourceApiVersionRoutingFilter.filterDelete
(Context context, DeleteRequest request, RequestHandler next) ResourceApiVersionSpecificationFilter.filterDelete
(Context context, DeleteRequest request, RequestHandler next) Filter.filterPatch
(Context context, PatchRequest request, RequestHandler next) Filters a patch request.ResourceApiVersionRoutingFilter.filterPatch
(Context context, PatchRequest request, RequestHandler next) ResourceApiVersionSpecificationFilter.filterPatch
(Context context, PatchRequest request, RequestHandler next) Filter.filterQuery
(Context context, QueryRequest request, QueryResourceHandler handler, RequestHandler next) Filters a query request.ResourceApiVersionRoutingFilter.filterQuery
(Context context, QueryRequest request, QueryResourceHandler handler, RequestHandler next) ResourceApiVersionSpecificationFilter.filterQuery
(Context context, QueryRequest request, QueryResourceHandler handler, RequestHandler next) Filter.filterRead
(Context context, ReadRequest request, RequestHandler next) Filters a read request.ResourceApiVersionRoutingFilter.filterRead
(Context context, ReadRequest request, RequestHandler next) ResourceApiVersionSpecificationFilter.filterRead
(Context context, ReadRequest request, RequestHandler next) Filter.filterUpdate
(Context context, UpdateRequest request, RequestHandler next) Filters an update request.ResourceApiVersionRoutingFilter.filterUpdate
(Context context, UpdateRequest request, RequestHandler next) ResourceApiVersionSpecificationFilter.filterUpdate
(Context context, UpdateRequest request, RequestHandler next) ConnectionFactory.getConnectionAsync()
Asynchronously obtains a connection to the JSON resource provider associated with this connection factory.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.Router.handleAction
(Context context, ActionRequest request) 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.Router.handleCreate
(Context context, CreateRequest request) 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.Router.handleDelete
(Context context, DeleteRequest request) 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.Router.handlePatch
(Context context, PatchRequest request) 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.Router.handleQuery
(Context context, QueryRequest request, QueryResourceHandler handler) 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.Router.handleRead
(Context context, ReadRequest request) 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.Router.handleUpdate
(Context context, UpdateRequest request) AbstractConnectionWrapper.patchAsync
(Context context, PatchRequest request) Asynchronously updates a JSON resource by applying a set of changes to its existing content.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.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.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.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.MemoryBackend.queryCollection
(Context context, QueryRequest request, QueryResourceHandler handler) Searches
the collection for all resources which match the query request criteria.AbstractConnectionWrapper.readAsync
(Context context, ReadRequest request) Asynchronously reads a JSON resource.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.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.AbstractConnectionWrapper.updateAsync
(Context context, UpdateRequest request) Asynchronously updates a JSON resource by replacing its existing content with new content.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.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.assertion.handler
-
Uses of Promise in org.forgerock.openig.assertion.plugin
Modifier and TypeMethodDescriptionPreform some processing and return a set of claims to be returned in the Identity Assertion JWT. -
Uses of Promise in org.forgerock.openig.assertion.plugin.kerberos
-
Uses of Promise in org.forgerock.openig.audit
Modifier and TypeMethodDescriptionNoOpAuditService.handleAction
(Context context, ActionRequest actionRequest) NoOpAuditService.handleCreate
(Context context, CreateRequest createRequest) NoOpAuditService.handleDelete
(Context context, DeleteRequest deleteRequest) NoOpAuditService.handlePatch
(Context context, PatchRequest patchRequest) NoOpAuditService.handleQuery
(Context context, QueryRequest queryRequest, QueryResourceHandler queryResourceHandler) NoOpAuditService.handleRead
(Context context, ReadRequest readRequest) NoOpAuditService.handleUpdate
(Context context, UpdateRequest updateRequest) -
Uses of Promise in org.forgerock.openig.el
Modifier and TypeMethodDescriptionExpressionRequestAsyncFunction.apply
(ContextAndRequest contextAndRequest) 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
Modifier and TypeMethodDescription -
Uses of Promise in org.forgerock.openig.filter.allow
-
Uses of Promise in org.forgerock.openig.filter.circuitbreaker
-
Uses of Promise in org.forgerock.openig.filter.finance
-
Uses of Promise in org.forgerock.openig.filter.jwt
-
Uses of Promise in org.forgerock.openig.filter.oauth2
Modifier and TypeMethodDescriptionScriptableResourceAccess.getRequiredScopes
(Context context, Request request) CaffeineCacheAccessTokenResolver.resolve
(Context context, Supplier<Request, IOException> request, String token) ScriptableAccessTokenResolver.resolve
(Context context, Supplier<Request, IOException> request, String token) StatelessAccessTokenResolver.resolve
(Context context, Supplier<Request, IOException> request, String token) -
Uses of Promise in org.forgerock.openig.filter.oauth2.client
Modifier and TypeMethodDescriptionPromise<? extends Issuer,
DiscoveryException> IssuerRepository.findByName
(String issuerName) Find a registeredIssuer
whose name matches issuerName.Promise<? extends Issuer,
DiscoveryException> IssuerRepository.findBySupportedDomainNames
(String givenDomainName) Find a registeredIssuer
that supports the given {code domainName}.ClientRegistrationStrategy.performClientRegistration
(Context context, Issuer issuer) Perform client registration for the suppliedIssuer
.Promise<? extends Issuer,
DiscoveryException> IssuerRepository.registerAsync
(String issuerName, List<Pattern> supportedDomains, Supplier<Promise<? extends Issuer, DiscoveryException>> supplier) Tries to find an already registered Issuer named issuerName.Modifier and TypeMethodDescriptionPromise<? extends Issuer,
DiscoveryException> IssuerRepository.registerAsync
(String issuerName, List<Pattern> supportedDomains, Supplier<Promise<? extends Issuer, DiscoveryException>> supplier) Tries to find an already registered Issuer named issuerName.ModifierConstructorDescriptionOAuth2ClientFilter
(org.forgerock.openig.filter.oauth2.client.ClientRegistrationRepository registrations, PerItemEvictionStrategyCache<String, Promise<Map<String, Object>, OAuth2ErrorException>> userInfoCache, String prompt, org.forgerock.openig.filter.oauth2.client.UriValidationService validationService, Clock clock, Handler discoveryAndDynamicRegistrationChain, Expression<String> clientEndpoint, Handler idpSelectionLoginPageHandler) Constructs anOAuth2ClientFilter
. -
Uses of Promise in org.forgerock.openig.filter.oauth2.cnf
Modifier and TypeMethodDescriptionResult.asPromise()
Returns a new completed promise wrapping this result.ConfirmationKeyVerifierAccessTokenResolver.resolve
(Context context, Supplier<Request, IOException> request, String token) ClientContextCertificateThumbprintVerifier.verify
(Context context, AccessTokenInfo tokenInfo, JsonValue cnfKey) ConfirmationKeyVerifier.verify
(Context context, AccessTokenInfo tokenInfo, JsonValue cnfKey) Verifies the given confirmation key value.Sha256AttributeCertificateThumbprintVerifier.verify
(Context context, AccessTokenInfo tokenInfo, JsonValue cnfKey) -
Uses of Promise in org.forgerock.openig.filter.throttling
Modifier and TypeMethodDescriptionReturns theThrottlingRate
that should be used for the provided request.ThrottlingStrategy.throttle
(String partitionKey, ThrottlingRate throttlingRate) Based on the given partitionKey and throttlingRate, return if the call is accepted or not.TokenBucketThrottlingStrategy.throttle
(String partitionKey, ThrottlingRate throttlingRate) -
Uses of Promise in org.forgerock.openig.handler
Modifier and TypeMethodDescription -
Uses of Promise in org.forgerock.openig.handler.assertion
Modifier and TypeMethodDescriptionIdentityAssertionPluginTechPreview.process
(Context context, Request request, Map<String, Object> incomingClaims) Preform some processing and return a set of claims to be returned in the Assertion JWT.ScriptableIdentityAssertionPluginTechPreview.process
(Context context, Request request, Map<String, Object> incomingClaims) -
Uses of Promise in org.forgerock.openig.handler.resources
-
Uses of Promise in org.forgerock.openig.handler.router
-
Uses of Promise in org.forgerock.openig.handler.saml
Modifier and TypeMethodDescriptionprotected Promise<Response,
NeverThrowsException> AbstractSamlFederationHeaplet.defaultFailureHandler
(Context context, Request request) The default failure handler to use should none be provided in the configuration. -
Uses of Promise in org.forgerock.openig.http
Modifier and TypeMethodDescriptionServerInfoSingletonProvider.actionInstance
(Context context, ActionRequest request) ServerInfoSingletonProvider.patchInstance
(Context context, PatchRequest request) ServerInfoSingletonProvider.readInstance
(Context context, ReadRequest request) ServerInfoSingletonProvider.updateInstance
(Context context, UpdateRequest request) -
Uses of Promise in org.forgerock.openig.openam
Modifier and TypeMethodDescriptionprotected abstract Promise<Response,
NeverThrowsException> AbstractConditionAdviceFilter.doRedirect
(Context context, Request request, Handler next, List<org.forgerock.openig.openam.AbstractConditionAdviceFilter.Advice> advices, URI originalUri) 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, URI originalUri) -
Uses of Promise in org.forgerock.openig.openam.session
-
Uses of Promise in org.forgerock.openig.ping.protect
Modifier and TypeMethodDescription -
Uses of Promise in org.forgerock.openig.ping.sideband
-
Uses of Promise in org.forgerock.openig.proxy
Modifier and TypeMethodDescription -
Uses of Promise in org.forgerock.openig.reactive
Modifier and TypeMethodDescriptionstatic <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
Modifier and TypeMethodDescriptionprotected final 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
Modifier and TypeMethodDescription<S extends GenericSecret>
Promise<S,NoSuchSecretException> <S extends Secret>
Promise<S,NoSuchSecretException> SecretsService.getActiveSecret
(Purpose<S> purpose) Gets the currently active secret for the given purpose.<S extends GenericSecret>
Promise<S,NoSuchSecretException> <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<S,NoSuchSecretException> SecretsService.getNamedSecret
(Purpose<S> purpose, String id) Gets the secret for the given purpose with the given stable secret id.<S extends GenericSecret>
Promise<Stream<S>,NeverThrowsException> <S extends Secret>
Promise<Stream<S>,NeverThrowsException> SecretsService.getValidSecrets
(Purpose<S> purpose) Returns all secrets for the given purpose which have not yet expired.JwkSetSecretStoreHeaplet.jwkSetSecretProvider
(URI jwkUri, Handler handler, Clock clock) Create a Secrets provider backed by aJwkSetSecretStore
with default values.JwkSetSecretStoreHeaplet.jwkSetSecretStore
(URL jwkUrl, Handler handler, Clock clock) Create aJwkSetSecretStore
with default values. -
Uses of Promise in org.forgerock.openig.session.cookie
-
Uses of Promise in org.forgerock.openig.sql
-
Uses of Promise in org.forgerock.openig.tools
Modifier and TypeMethodDescriptionConfigure proxy settings.CachePolicyDecisionFilter.filterAction
(Context context, ActionRequest actionRequest, RequestHandler next) ExecutorFilter.filterAction
(Context context, ActionRequest request, RequestHandler next) NotSupportedFilter.filterAction
(Context context, ActionRequest actionRequest, RequestHandler requestHandler) ExecutorFilter.filterCreate
(Context context, CreateRequest request, RequestHandler next) NotSupportedFilter.filterCreate
(Context context, CreateRequest createRequest, RequestHandler requestHandler) ExecutorFilter.filterDelete
(Context context, DeleteRequest request, RequestHandler next) NotSupportedFilter.filterDelete
(Context context, DeleteRequest deleteRequest, RequestHandler requestHandler) ExecutorFilter.filterPatch
(Context context, PatchRequest request, RequestHandler next) NotSupportedFilter.filterPatch
(Context context, PatchRequest patchRequest, RequestHandler requestHandler) ExecutorFilter.filterQuery
(Context context, QueryRequest request, QueryResourceHandler handler, RequestHandler next) NotSupportedFilter.filterQuery
(Context context, QueryRequest queryRequest, QueryResourceHandler queryResourceHandler, RequestHandler requestHandler) ExecutorFilter.filterRead
(Context context, ReadRequest request, RequestHandler next) NotSupportedFilter.filterRead
(Context context, ReadRequest readRequest, RequestHandler requestHandler) ExecutorFilter.filterUpdate
(Context context, UpdateRequest request, RequestHandler next) NotSupportedFilter.filterUpdate
(Context context, UpdateRequest updateRequest, RequestHandler requestHandler) FutureUtils.futureToPromise
(CompletionStage<T> completionStage, Class<E> exceptionType) Converts aCompletionStage
to aPromise
.CaffeineUtils.invalidateEagerly
(com.github.benmanes.caffeine.cache.AsyncCache<K, V> cache, Promise<V, E> promise, K key) Preemptively invalidates the cache entry on failure.LifeCycle.start()
Starts this object.LifeCycle.stop()
Stops this object.Modifier and TypeMethodDescriptionCaffeineUtils.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
-
Uses of Promise in org.forgerock.openig.tools.authentication
Modifier and TypeMethodDescriptionAuthenticationService.authenticate
(Context context, String username, SecretReference<GenericSecret> passwordRef) Authenticates a subject (identified with the givenusername
andpasswordRef
credentials), returning asynchronously an SSO token (if the authentication succeeded) or anAuthenticationException
on failures (I/O, invalid credentials, ...).AuthenticatorAuthenticationService.authenticate
(Context context, String username, SecretReference<GenericSecret> passwordRef) -
Uses of Promise in org.forgerock.openig.tools.authentication.chf
Modifier and TypeMethodDescriptionComputes (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.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.Refresh (and returns) the value, in a thread-safe manner. -
Uses of Promise in org.forgerock.openig.tools.jwt.factory
Modifier and TypeMethodDescriptionProduces a newJwt
.protected Promise<EncryptedJwtBuilder,
NoSuchSecretException> EncryptedJwtFactory.jwtBuilder()
protected Promise<SignedJwtBuilderImpl,
NoSuchSecretException> SignedJwtFactory.jwtBuilder()
SignedThenEncryptedJwtFactory.jwtBuilder()
-
Uses of Promise in org.forgerock.openig.tools.jwt.validation
Modifier and TypeMethodDescriptionJweDecryptionConstraint.apply
(ValidatorConstraintContext constraintContext) JwtClaimConstraint.apply
(ValidatorConstraintContext constraintContext, String key, T value) Apply a constraint to the given claim value.JwtConstraint.apply
(ValidatorConstraintContext constraintContext) Apply a constraint to the given JWT.Result.asPromise()
Return this result as a completedPromise
.Returns the result of the JWT validation and a list of any violations.Returns the result of the JWT validation and a list of any violations. -
Uses of Promise in org.forgerock.openig.tools.notifications
Modifier and TypeMethodDescriptionNotificationService.addConnectionEventListener
(Consumer<ConnectionEvent> listener) Registers asynchronously a listener that will be notified on connection/disconnection events.NotificationService.subscribe
(String topic, NotificationListener listener) Subscribes (asynchronously) to a given topic, providing a listener that will be invoked at notification reception time.Subscription.unsubscribe()
Un-subscribes from the topic asynchronously. -
Uses of Promise in org.forgerock.openig.tools.notifications.ws
Modifier and TypeMethodDescriptionNotificationServiceImpl.addConnectionEventListener
(Consumer<ConnectionEvent> listener) WebSocketAdapter.close()
Close theWebSocketAdapter
.WebSocketAdapter.sendObject
(Object request) Send the supplied request over the websocket to the remote party.NotificationServiceImpl.start()
Start the websocket client and connect to the remote endpoint.NotificationServiceImpl.stop()
NotificationServiceImpl.subscribe
(String topic, NotificationListener listener) -
Uses of Promise in org.forgerock.openig.tools.notifications.ws.link
Modifier and TypeMethodDescriptionAmLink.close()
Close theAmLink
and its associated resources.AutoReconnectAmLink.close()
DirectAmLink.close()
GracefulShutdownAmLink.close()
InitializedAmLink.close()
PeriodicallyRenewedAmLink.close()
RetryableAmLink.close()
StableAmLink.close()
TopicMultiplexerAmLink.close()
AmLink.start()
Start theAmLink
.AutoReconnectAmLink.start()
DirectAmLink.start()
GracefulShutdownAmLink.start()
InitializedAmLink.start()
PeriodicallyRenewedAmLink.start()
RetryableAmLink.start()
StableAmLink.start()
TopicMultiplexerAmLink.start()
Subscribe to an AM topic.AmLink.unsubscribe
(String topic) Unsubscribe from an AM topic.AutoReconnectAmLink.unsubscribe
(String topic) DirectAmLink.unsubscribe
(String topic) GracefulShutdownAmLink.unsubscribe
(String topic) InitializedAmLink.unsubscribe
(String topic) PeriodicallyRenewedAmLink.unsubscribe
(String topic) RetryableAmLink.unsubscribe
(String topic) StableAmLink.unsubscribe
(String topic) TopicMultiplexerAmLink.unsubscribe
(String topicName) -
Uses of Promise in org.forgerock.openig.tools.secrets
-
Uses of Promise in org.forgerock.openig.tools.session
Modifier and TypeMethodDescriptionCacheSessionService.getSessionInfo
(Context context, String ssoToken) CrestSessionService.getSessionInfo
(Context context, String ssoToken) SessionService.getSessionInfo
(Context context, String ssoToken) Returns a promise that will be completed with an optionalSessionInfo
or with anSessionException
in case of errors.Returns a promise that will be completed with aVoid
or with anSessionException
in case of errors.CacheSessionService.start()
CacheSessionService.stop()
-
Uses of Promise in org.forgerock.openig.tools.userprofile
Modifier and TypeMethodDescriptionCacheUserProfileService.getUserProfile
(Context context, String username) CrestUserProfileService.getUserProfile
(Context context, String username) 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
Modifier and TypeMethodDescriptionRecordProvider.actionCollection
(Context context, ActionRequest request) RecordProvider.actionInstance
(Context context, String resourceId, ActionRequest request) RecordProvider.createInstance
(Context context, CreateRequest request) RecordProvider.deleteInstance
(Context context, String resourceId, DeleteRequest request) RecordProvider.patchInstance
(Context context, String resourceId, PatchRequest request) RecordProvider.queryCollection
(Context context, QueryRequest request, QueryResourceHandler resourceHandler) RecordProvider.readInstance
(Context context, String resourceId, ReadRequest request) RecordProvider.updateInstance
(Context context, String resourceId, UpdateRequest request) -
Uses of Promise in org.forgerock.openig.uma
Modifier and TypeMethodDescriptionUmaSharingService.createShare
(Context context, String resourcePath, String pat) Creates a Share that will be used to protect the givenresourcePath
. -
Uses of Promise in org.forgerock.openig.util
Modifier and TypeMethodDescriptionstatic 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.secrets
Modifier and TypeMethodDescriptionstatic <T> Promise<PeriodicallyRefreshedReferenceAsync<T>,
NeverThrowsException> PeriodicallyRefreshedReferenceAsync.create
(Supplier<Promise<T, NeverThrowsException>> supplier, Clock clock, Duration refreshDuration) Create an InitializedPeriodicallyRefreshedReferenceAsync
.SecretDecoder.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.Modifier and TypeMethodDescriptionstatic <T> Promise<PeriodicallyRefreshedReferenceAsync<T>,
NeverThrowsException> PeriodicallyRefreshedReferenceAsync.create
(Supplier<Promise<T, NeverThrowsException>> supplier, Clock clock, Duration refreshDuration) Create an InitializedPeriodicallyRefreshedReferenceAsync
. -
Uses of Promise in org.forgerock.secrets.credentials
Modifier and TypeMethodDescriptionCredentialPair.getAsync()
Gets thePrincipalAndSecret
asynchronously.ValidCredentialPairs.getAsync()
Gets the valid credential pairs asynchronously. -
Uses of Promise in org.forgerock.secrets.jwkset
-
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.oauth2
Modifier and TypeMethodDescription<S extends GenericSecret>
Promise<S,NoSuchSecretException> <S extends GenericSecret>
Promise<S,NoSuchSecretException> <S extends GenericSecret>
Promise<Stream<S>,NeverThrowsException> protected Promise<Form,
NoSuchSecretException> protected Promise<Form,
NoSuchSecretException> Handles the request by adding appropriate parameters to the OAuth 2.0 token endpoint request.protected Promise<Form,
NoSuchSecretException> protected Promise<Form,
NoSuchSecretException> protected Promise<Form,
NoSuchSecretException> -
Uses of Promise in org.forgerock.secrets.propertyresolver
Modifier and TypeMethodDescriptionJwtWrappedPropertyFormat.decodeToPromise
(String propertyValue) 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> <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.
AccessTokenResolver.resolve(Context, Supplier, String)
instead.