Package | Description |
---|---|
org.forgerock.authz.filter.crest.api |
This package defines the authorization API interfaces for use in a CREST environment.
|
org.forgerock.caf.authentication.api |
This package defines the core interfaces and classes to provide an asynchronous and improved
JASPI-like message authentication API.
|
org.forgerock.caf.authentication.framework |
This package defines the authentication framework classes for the authentication of messages
via authentication contexts and modules.
|
org.forgerock.http |
Models and manages elements of the Hypertext Transfer Protocol.
|
org.forgerock.http.filter |
Core
Filter implementations. |
org.forgerock.http.handler |
Core
Handler 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 an
AccessTokenInfo . |
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.spi |
HTTP service provider API.
|
org.forgerock.jaspi.modules.openid |
This package contains classes which form the Open ID Connect JASPIc AuthN module.
|
org.forgerock.jaspi.modules.session.jwt |
This package contains classes for the Jwt Session JASPI Authentication Module.
|
org.forgerock.json.jose.jwk.store |
This package contains classes to manage a JWKs URI.
|
org.forgerock.json.resource |
Classes and interfaces for core types including connections, request
handlers, resources, and their exceptions.
|
org.forgerock.oauth |
Commons OAuth Framework API.
|
org.forgerock.oauth.clients.oauth2 |
OAuth 2.0 ForgeRock Client Implementation.
|
org.forgerock.oauth.clients.oidc |
OpenID Connect ForgeRock Client Implementation.
|
org.forgerock.openam.rest.resource |
This package contains classes for the handling of REST request to CREST Resource endpoints with the concept of realms
in OpenAM built in.
|
org.forgerock.opendj.ldap |
Classes and interfaces for core types including connections, entries, and
attributes.
|
org.forgerock.opendj.ldap.spi |
Interfaces and classes for service providers.
|
org.forgerock.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 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. |
org.forgerock.secrets.propertyresolver |
Provides a
SecretStore implementation that loads secrets from a Common Configuration
PropertyResolver and then decodes it with a
SecretPropertyFormat . |
org.forgerock.selfservice.core |
This package contains the core implementation for the anonymous process service.
|
org.forgerock.util |
Provides common interfaces and classes.
|
org.forgerock.util.promise |
An implementation of the
Promise API in Java. |
Modifier and Type | Method and Description |
---|---|
Promise<AuthorizationResult,ResourceException> |
CrestAuthorizationModule.authorizeAction(Context context,
ActionRequest request)
Authorizes a received REST action request.
|
Promise<AuthorizationResult,ResourceException> |
CrestAuthorizationModule.authorizeCreate(Context context,
CreateRequest request)
Authorizes a received REST create request.
|
Promise<AuthorizationResult,ResourceException> |
CrestAuthorizationModule.authorizeDelete(Context context,
DeleteRequest request)
Authorizes a received REST delete request.
|
Promise<AuthorizationResult,ResourceException> |
CrestAuthorizationModule.authorizePatch(Context context,
PatchRequest request)
Authorizes a received REST patch request.
|
Promise<AuthorizationResult,ResourceException> |
CrestAuthorizationModule.authorizeQuery(Context context,
QueryRequest request)
Authorizes a received REST query request.
|
Promise<AuthorizationResult,ResourceException> |
CrestAuthorizationModule.authorizeRead(Context context,
ReadRequest request)
Authorizes a received REST read request.
|
Promise<AuthorizationResult,ResourceException> |
CrestAuthorizationModule.authorizeUpdate(Context context,
UpdateRequest request)
Authorizes a received REST update request.
|
Modifier and Type | Method and Description |
---|---|
Promise<Void,AuthenticationException> |
AsyncServerAuthContext.cleanSubject(MessageContext context,
Subject clientSubject)
Removes any method specific principals and credentials from the client subject.
|
Promise<Void,AuthenticationException> |
AsyncServerAuthModule.cleanSubject(MessageInfoContext messageInfo,
Subject clientSubject)
Removes any method specific principals and credentials from the client subject.
|
Promise<javax.security.auth.message.AuthStatus,AuthenticationException> |
AsyncServerAuthContext.secureResponse(MessageContext context,
Subject serviceSubject)
Secures the outgoing response message.
|
Promise<javax.security.auth.message.AuthStatus,AuthenticationException> |
AsyncServerAuthModule.secureResponse(MessageInfoContext messageInfo,
Subject serviceSubject)
Secures the outgoing response message.
|
Promise<javax.security.auth.message.AuthStatus,AuthenticationException> |
AsyncServerAuthContext.validateRequest(MessageContext context,
Subject clientSubject,
Subject serviceSubject)
Validates the incoming request message.
|
Promise<javax.security.auth.message.AuthStatus,AuthenticationException> |
AsyncServerAuthModule.validateRequest(MessageInfoContext messageInfo,
Subject clientSubject,
Subject serviceSubject)
Validates the incoming request message.
|
Modifier and Type | Method and Description |
---|---|
Promise<Void,AuthenticationException> |
FallbackAuthContext.cleanSubject(MessageContext context,
Subject clientSubject)
Calls each
AsyncServerAuthContext in parallel to clean the client subject and
only return a successful promise if all complete successfully otherwise returns the first
exception in a failed promise. |
Promise<Response,NeverThrowsException> |
AuthenticationFilter.filter(Context context,
Request request,
Handler next)
Authenticates incoming request messages and if successful calls the downstream filter or
handler and then secures the returned response.
|
Promise<javax.security.auth.message.AuthStatus,AuthenticationException> |
FallbackAuthContext.secureResponse(MessageContext context,
Subject serviceSubject)
Secures the response message using the same
AsyncServerAuthModule that
authenticated the incoming request message. |
Promise<javax.security.auth.message.AuthStatus,AuthenticationException> |
FallbackAuthContext.validateRequest(MessageContext context,
Subject clientSubject,
Subject serviceSubject)
Authenticates the incoming request message by calling each
AsyncServerAuthModule
in order until an auth module returns an AuthStatus value other than
SEND_FAILURE , or returns an AuthenticationException or the end of the
module list is reached. |
Modifier and Type | Method and 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(Context context,
Request request)
Sends an HTTP request and returns a
Promise representing the
pending HTTP response. |
Promise<Response,NeverThrowsException> |
Client.send(Request request)
Sends an HTTP request and returns a
Promise representing the
pending HTTP response. |
Promise<Response,NeverThrowsException> |
Client.sendWithoutClose(Context context,
Request request)
Sends an HTTP request and returns a
Promise representing the
pending HTTP response. |
Promise<Response,NeverThrowsException> |
Client.sendWithoutClose(Request request)
Sends an HTTP request and returns a
Promise representing the
pending HTTP response. |
Modifier and Type | Method and Description |
---|---|
Promise<Response,NeverThrowsException> |
TransactionIdOutboundFilter.filter(Context context,
Request request,
Handler next) |
Promise<Response,NeverThrowsException> |
TransactionIdInboundFilter.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 the
Handler . |
Promise<Response,NeverThrowsException> |
CsrfFilter.filter(Context context,
Request request,
Handler next) |
Modifier and Type | Method and Description |
---|---|
Promise<Response,NeverThrowsException> |
HttpClientHandler.handle(Context context,
Request request)
Sends an HTTP request to a remote server and returns a
Promise
representing the asynchronous response. |
Modifier and Type | Method and Description |
---|---|
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.
|
Promise<AccessTokenInfo,AccessTokenException> |
AccessTokenResolver.resolve(Context context,
String token)
Resolves a given access token against an authorization server.
|
Modifier and Type | Method and Description |
---|---|
Promise<AccessTokenInfo,AccessTokenException> |
TokenIntrospectionAccessTokenResolver.resolve(Context context,
String token) |
Promise<AccessTokenInfo,AccessTokenException> |
OpenAmAccessTokenResolver.resolve(Context context,
String token) |
Promise<AccessTokenInfo,AccessTokenException> |
CachingAccessTokenResolver.resolve(Context context,
String token) |
Constructor and Description |
---|
CachingAccessTokenResolver(Clock clock,
AccessTokenResolver resolver,
PerItemEvictionStrategyCache<String,Promise<AccessTokenInfo,AccessTokenException>> cache)
Builds a
CachingAccessTokenResolver delegating to the given AccessTokenResolver using the given
(pre-configured) cache. |
Modifier and Type | Method and Description |
---|---|
static Promise<Response,NeverThrowsException> |
Response.newResponsePromise(Response response)
Returns a
Promise representing the Response for an
asynchronous Request which has already completed. |
Modifier and Type | Method and Description |
---|---|
Promise<Response,NeverThrowsException> |
ResourceApiVersionRoutingFilter.filter(Context context,
Request request,
Handler next) |
Promise<Response,NeverThrowsException> |
Router.handle(Context context,
Request request) |
Modifier and Type | Method and Description |
---|---|
Promise<Response,NeverThrowsException> |
HttpClient.sendAsync(Request request)
|
Modifier and Type | Method and Description |
---|---|
Promise<Void,AuthenticationException> |
OpenIdConnectModule.cleanSubject(MessageInfoContext messageInfo,
Subject subject)
Nothing to clean.
|
Promise<javax.security.auth.message.AuthStatus,AuthenticationException> |
OpenIdConnectModule.secureResponse(MessageInfoContext messageInfo,
Subject subject)
Sends SEND_SUCCESS automatically.
|
Promise<javax.security.auth.message.AuthStatus,AuthenticationException> |
OpenIdConnectModule.validateRequest(MessageInfoContext messageInfo,
Subject clientSubject,
Subject serviceSubject)
Attempts to retrieve the value of the specified OpenID Connect header from the messageInfo, then
converts this to a Jwt and attempts to decrypt.
|
Modifier and Type | Method and Description |
---|---|
Promise<Void,AuthenticationException> |
JwtSessionModule.cleanSubject(MessageInfoContext messageInfo,
Subject clientSubject) |
Promise<javax.security.auth.message.AuthStatus,AuthenticationException> |
JwtSessionModule.secureResponse(MessageInfoContext messageInfo,
Subject serviceSubject) |
Promise<javax.security.auth.message.AuthStatus,AuthenticationException> |
JwtSessionModule.validateRequest(MessageInfoContext messageInfo,
Subject clientSubject,
Subject serviceSubject) |
Modifier and Type | Method and Description |
---|---|
Promise<JWKSet,FailedToLoadJWKException> |
JwksStore.getLatestJwkSet()
Returns the latest non expired successfully loaded JWK Set.
|
Modifier and Type | Method and Description |
---|---|
Promise<ActionResponse,ResourceException> |
Connection.actionAsync(Context context,
ActionRequest request)
Asynchronously performs an action against a specific resource, or set of
resources.
|
Promise<ActionResponse,ResourceException> |
AbstractConnectionWrapper.actionAsync(Context context,
ActionRequest request)
Asynchronously performs an action against a specific resource, or set of
resources.
|
Promise<ActionResponse,ResourceException> |
MemoryBackend.actionCollection(Context context,
ActionRequest request)
Performs the provided
action
against the resource collection. |
default Promise<ActionResponse,ResourceException> |
CollectionResourceProvider.actionCollection(Context context,
ActionRequest request)
Performs the provided
action
against the resource collection. |
default Promise<ActionResponse,ResourceException> |
SingletonResourceProvider.actionInstance(Context context,
ActionRequest request)
Performs the provided
action against the single resource instance. |
Promise<ActionResponse,ResourceException> |
MemoryBackend.actionInstance(Context context,
String id,
ActionRequest request)
Performs the provided
action against a resource within the collection. |
default Promise<ActionResponse,ResourceException> |
CollectionResourceProvider.actionInstance(Context context,
String resourceId,
ActionRequest request)
Performs the provided
action against a resource within the collection. |
Promise<ResourceResponse,ResourceException> |
ResourceResponse.asPromise()
Return this response as a result Promise.
|
Promise<QueryResponse,ResourceException> |
QueryResponse.asPromise()
Return this response as a result Promise.
|
Promise<ActionResponse,ResourceException> |
ActionResponse.asPromise()
Return this response as a result Promise.
|
<V> Promise<V,ResourceException> |
ResourceException.asPromise()
Return this ResourceException as a Promise.
|
Promise<ResourceResponse,ResourceException> |
Connection.createAsync(Context context,
CreateRequest request)
Asynchronously adds a new JSON resource.
|
Promise<ResourceResponse,ResourceException> |
AbstractConnectionWrapper.createAsync(Context context,
CreateRequest request)
Asynchronously adds a new JSON resource.
|
Promise<ResourceResponse,ResourceException> |
MemoryBackend.createInstance(Context context,
CreateRequest request)
Adds a new resource instance to the collection. |
default Promise<ResourceResponse,ResourceException> |
CollectionResourceProvider.createInstance(Context context,
CreateRequest request)
Adds a new resource instance to the collection. |
Promise<ResourceResponse,ResourceException> |
Connection.deleteAsync(Context context,
DeleteRequest request)
Asynchronously deletes a JSON resource.
|
Promise<ResourceResponse,ResourceException> |
AbstractConnectionWrapper.deleteAsync(Context context,
DeleteRequest request)
Asynchronously deletes a JSON resource.
|
Promise<ResourceResponse,ResourceException> |
MemoryBackend.deleteInstance(Context context,
String id,
DeleteRequest request)
Removes a resource instance from the collection. |
default Promise<ResourceResponse,ResourceException> |
CollectionResourceProvider.deleteInstance(Context context,
String resourceId,
DeleteRequest request)
Removes a resource instance from the collection. |
Promise<ActionResponse,ResourceException> |
ResourceApiVersionRoutingFilter.filterAction(Context context,
ActionRequest request,
RequestHandler next) |
Promise<ActionResponse,ResourceException> |
Filter.filterAction(Context context,
ActionRequest request,
RequestHandler next)
Filters an action request.
|
Promise<ResourceResponse,ResourceException> |
ResourceApiVersionRoutingFilter.filterCreate(Context context,
CreateRequest request,
RequestHandler next) |
Promise<ResourceResponse,ResourceException> |
Filter.filterCreate(Context context,
CreateRequest request,
RequestHandler next)
Filters a create request.
|
Promise<ResourceResponse,ResourceException> |
ResourceApiVersionRoutingFilter.filterDelete(Context context,
DeleteRequest request,
RequestHandler next) |
Promise<ResourceResponse,ResourceException> |
Filter.filterDelete(Context context,
DeleteRequest request,
RequestHandler next)
Filters a delete request.
|
Promise<ResourceResponse,ResourceException> |
ResourceApiVersionRoutingFilter.filterPatch(Context context,
PatchRequest request,
RequestHandler next) |
Promise<ResourceResponse,ResourceException> |
Filter.filterPatch(Context context,
PatchRequest request,
RequestHandler next)
Filters a patch request.
|
Promise<QueryResponse,ResourceException> |
ResourceApiVersionRoutingFilter.filterQuery(Context context,
QueryRequest request,
QueryResourceHandler handler,
RequestHandler next) |
Promise<QueryResponse,ResourceException> |
Filter.filterQuery(Context context,
QueryRequest request,
QueryResourceHandler handler,
RequestHandler next)
Filters a query request.
|
Promise<ResourceResponse,ResourceException> |
ResourceApiVersionRoutingFilter.filterRead(Context context,
ReadRequest request,
RequestHandler next) |
Promise<ResourceResponse,ResourceException> |
Filter.filterRead(Context context,
ReadRequest request,
RequestHandler next)
Filters a read request.
|
Promise<ResourceResponse,ResourceException> |
ResourceApiVersionRoutingFilter.filterUpdate(Context context,
UpdateRequest request,
RequestHandler next) |
Promise<ResourceResponse,ResourceException> |
Filter.filterUpdate(Context context,
UpdateRequest request,
RequestHandler next)
Filters an update request.
|
Promise<Connection,ResourceException> |
ConnectionFactory.getConnectionAsync()
Asynchronously obtains a connection to the JSON resource provider
associated with this connection factory.
|
Promise<ActionResponse,ResourceException> |
Router.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> |
FilterChain.handleAction(Context context,
ActionRequest request) |
Promise<ResourceResponse,ResourceException> |
Router.handleCreate(Context context,
CreateRequest request) |
default Promise<ResourceResponse,ResourceException> |
RequestHandler.handleCreate(Context context,
CreateRequest request)
Adds a new JSON resource, returning a
Promise that will be
completed when the resource has been added. |
Promise<ResourceResponse,ResourceException> |
FilterChain.handleCreate(Context context,
CreateRequest request) |
Promise<ResourceResponse,ResourceException> |
Router.handleDelete(Context context,
DeleteRequest request) |
default Promise<ResourceResponse,ResourceException> |
RequestHandler.handleDelete(Context context,
DeleteRequest request)
Deletes a JSON resource, returning a
Promise that will be
completed when the resource has been deleted. |
Promise<ResourceResponse,ResourceException> |
FilterChain.handleDelete(Context context,
DeleteRequest request) |
Promise<ResourceResponse,ResourceException> |
Router.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 a
Promise that will be completed when the
resource has been updated. |
Promise<ResourceResponse,ResourceException> |
FilterChain.handlePatch(Context context,
PatchRequest request) |
Promise<QueryResponse,ResourceException> |
Router.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 a
Promise that will be completed when the
search has completed. |
Promise<QueryResponse,ResourceException> |
FilterChain.handleQuery(Context context,
QueryRequest request,
QueryResourceHandler handler) |
Promise<ResourceResponse,ResourceException> |
Router.handleRead(Context context,
ReadRequest request) |
default Promise<ResourceResponse,ResourceException> |
RequestHandler.handleRead(Context context,
ReadRequest request)
Reads a JSON resource, returning a
Promise that will be
completed when the resource has been read. |
Promise<ResourceResponse,ResourceException> |
FilterChain.handleRead(Context context,
ReadRequest request) |
Promise<ResourceResponse,ResourceException> |
Router.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 a
Promise that will be completed when the
resource has been updated. |
Promise<ResourceResponse,ResourceException> |
FilterChain.handleUpdate(Context context,
UpdateRequest request) |
Promise<ResourceResponse,ResourceException> |
Connection.patchAsync(Context context,
PatchRequest request)
Asynchronously updates a JSON resource by applying a set of changes to
its existing content.
|
Promise<ResourceResponse,ResourceException> |
AbstractConnectionWrapper.patchAsync(Context context,
PatchRequest request)
Asynchronously updates a JSON resource by applying a set of changes to
its existing content.
|
default Promise<ResourceResponse,ResourceException> |
SingletonResourceProvider.patchInstance(Context context,
PatchRequest request)
Patches the single resource instance. |
Promise<ResourceResponse,ResourceException> |
MemoryBackend.patchInstance(Context context,
String id,
PatchRequest request)
Patches an existing resource within the collection. |
default Promise<ResourceResponse,ResourceException> |
CollectionResourceProvider.patchInstance(Context context,
String resourceId,
PatchRequest request)
Patches an existing resource within the collection. |
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 a
Promise that will be completed with the
results of the search. |
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 a
Promise that will be completed with the
results of the search. |
Promise<QueryResponse,ResourceException> |
MemoryBackend.queryCollection(Context context,
QueryRequest request,
QueryResourceHandler handler)
Searches the collection for all resources which match the query request
criteria. |
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<ResourceResponse,ResourceException> |
Connection.readAsync(Context context,
ReadRequest request)
Asynchronously reads a JSON resource.
|
Promise<ResourceResponse,ResourceException> |
AbstractConnectionWrapper.readAsync(Context context,
ReadRequest request)
Asynchronously reads a JSON resource.
|
default Promise<ResourceResponse,ResourceException> |
SingletonResourceProvider.readInstance(Context context,
ReadRequest request)
Reads the single resource instance. |
Promise<ResourceResponse,ResourceException> |
MemoryBackend.readInstance(Context context,
String id,
ReadRequest request)
Reads an existing resource within the collection. |
default Promise<ResourceResponse,ResourceException> |
CollectionResourceProvider.readInstance(Context context,
String resourceId,
ReadRequest request)
Reads an existing resource within the collection. |
Promise<ResourceResponse,ResourceException> |
Connection.updateAsync(Context context,
UpdateRequest request)
Asynchronously updates a JSON resource by replacing its existing content
with new content.
|
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> |
MemoryBackend.updateInstance(Context context,
String id,
UpdateRequest request)
Updates an existing resource within the collection. |
default Promise<ResourceResponse,ResourceException> |
CollectionResourceProvider.updateInstance(Context context,
String resourceId,
UpdateRequest request)
Updates an existing resource within the collection. |
default Promise<ResourceResponse,ResourceException> |
SingletonResourceProvider.updateInstance(Context context,
UpdateRequest request)
Updates the single resource instance. |
Modifier and Type | Method and Description |
---|---|
<V> Promise<V,OAuthException> |
OAuthException.asPromise()
Return this OAuthException as a Promise.
|
Promise<URI,OAuthException> |
OAuthClient.getAuthRedirect(DataStore dataStore,
String data,
URI landingPage)
Return the URI that the user agent should be redirected to, to authenticate and authorize access.
|
Promise<? extends SessionInfo,OAuthException> |
OAuthClient.getSessionInfo(DataStore dataStore)
Validate whether an Auth Server session is still active and valid.
|
Promise<UserInfo,OAuthException> |
OAuthClient.getUserInfo(DataStore dataStore)
Return the authenticated user's info from the external authentication server.
|
Promise<JsonValue,OAuthException> |
OAuthClient.handlePostAuth(DataStore dataStore,
Map<String,List<String>> requestParameters)
Handle the data produced by the Auth Server as a result of a successful authentication and return the final
redirect to the landing page specified in the
OAuthClient.getAuthRedirect(DataStore, String, URI) call. |
Promise<Void,OAuthException> |
OAuthClient.refresh(DataStore dataStore)
Refreshes a token if it has expired.
|
Modifier and Type | Method and Description |
---|---|
Promise<URI,OAuthException> |
OAuth2Client.getAuthRedirect(DataStore dataStore,
String data,
URI landingPage) |
Promise<? extends OAuth2SessionInfo,OAuthException> |
OAuth2Client.getSessionInfo(DataStore dataStore) |
Promise<UserInfo,OAuthException> |
OAuth2Client.getUserInfo(DataStore dataStore) |
Promise<JsonValue,OAuthException> |
OAuth2Client.handlePostAuth(DataStore dataStore,
Map<String,List<String>> requestParameters) |
Promise<Void,OAuthException> |
OAuth2Client.refresh(DataStore dataStore) |
Modifier and Type | Method and Description |
---|---|
Promise<URI,OAuthException> |
OpenIDConnectClient.getAuthRedirect(DataStore dataStore,
String data,
URI landingPage) |
Promise<? extends OAuth2SessionInfo,OAuthException> |
OpenIDConnectClient.getSessionInfo(DataStore dataStore) |
Promise<UserInfo,OAuthException> |
OpenIDConnectClient.getUserInfo(DataStore dataStore) |
Promise<JsonValue,OAuthException> |
OpenIDConnectClient.handlePostAuth(DataStore dataStore,
Map<String,List<String>> requestParameters) |
Modifier and Type | Interface and Description |
---|---|
interface |
LdapPromise<S>
A handle which can be used to retrieve the Result of an asynchronous Request.
|
Modifier and Type | Method and Description |
---|---|
Promise<Connection,LdapException> |
LdapConnectionFactory.getConnectionAsync() |
Promise<Connection,LdapException> |
ConnectionFactory.getConnectionAsync()
Asynchronously obtains a connection to the Directory Server associated
with this connection factory.
|
Modifier and Type | Class and Description |
---|---|
class |
LdapPromiseImpl<S>
This class provides an implementation of the
LdapPromise . |
Modifier and Type | Method and Description |
---|---|
static <R> LdapPromise<R> |
LdapPromises.asLdapPromise(Promise<R,LdapException> wrappedPromise)
Converts a
Promise to a LdapPromise with a request ID of -1. |
static <R> LdapPromise<R> |
LdapPromises.asLdapPromise(Promise<R,LdapException> wrappedPromise,
int requestId)
Converts a
Promise to a LdapPromise with the provided request ID. |
Modifier and Type | Method and Description |
---|---|
<S extends T> |
ThreadPoolSecretStore.getActive(Purpose<S> purpose) |
<S extends T> |
SecretStore.getActive(Purpose<S> purpose)
Returns the active secret for the given purpose.
|
<S extends Secret> |
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.
|
<S extends T> |
ThreadPoolSecretStore.getNamed(Purpose<S> purpose,
String name) |
<S extends T> |
SecretStore.getNamed(Purpose<S> purpose,
String name)
Returns the named secret from this store.
|
<S extends Secret> |
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 given
purpose if no such secret exists), otherwise it returns all
valid secrets for the given purpose. |
<S extends Secret> |
SecretsProvider.getNamedSecret(Purpose<S> purpose,
String id)
Gets the secret for the given purpose with the given stable secret id.
|
<S extends T> |
ThreadPoolSecretStore.getValid(Purpose<S> purpose) |
<S extends T> |
SecretStore.getValid(Purpose<S> purpose)
Returns all valid secrets for the given purpose from this store.
|
<S extends Secret> |
SecretsProvider.getValidSecrets(Purpose<S> purpose)
Returns all secrets for the given purpose which have not yet expired.
|
Modifier and Type | Method and Description |
---|---|
<S extends CryptoKey> |
JwkSetSecretStore.getActive(Purpose<S> purpose) |
<S extends CryptoKey> |
JwkSetSecretStore.getNamed(Purpose<S> purpose,
String name) |
<S extends CryptoKey> |
JwkSetSecretStore.getValid(Purpose<S> purpose) |
Modifier and Type | Method and Description |
---|---|
<S extends CryptoKey> |
KeyStoreSecretStore.getActive(Purpose<S> purpose) |
<S extends CryptoKey> |
KeyStoreSecretStore.getNamed(Purpose<S> purpose,
String id) |
<S extends CryptoKey> |
KeyStoreSecretStore.getValid(Purpose<S> purpose) |
Modifier and Type | Method and Description |
---|---|
default Promise<SecretBuilder,NoSuchSecretException> |
SecretPropertyFormat.decodeToPromise(String propertyValue)
Decodes the input property value, setting relevant properties on a
SecretBuilder object. |
<S extends Secret> |
PropertyResolverSecretStore.getActive(Purpose<S> purpose) |
<S extends Secret> |
PropertyResolverSecretStore.getNamed(Purpose<S> purpose,
String name) |
<S extends Secret> |
PropertyResolverSecretStore.getValid(Purpose<S> purpose) |
Modifier and Type | Method and Description |
---|---|
Promise<ActionResponse,ResourceException> |
AnonymousProcessService.handleAction(Context context,
ActionRequest request) |
Promise<ResourceResponse,ResourceException> |
AnonymousProcessService.handleRead(Context context,
ReadRequest request) |
Promise<ResourceResponse,ResourceException> |
UserUpdateService.patchInstance(Context context,
String resourceId,
PatchRequest request) |
Modifier and Type | Method and Description |
---|---|
Promise<? extends VOUT,? extends E> |
AsyncFunction.apply(VIN value)
Asynchronously applies this function to the input parameter
value
and returns a Promise for the result. |
Modifier and Type | Class and Description |
---|---|
class |
PromiseImpl<V,E extends Exception>
An implementation of
Promise which can be used as is, or as the basis
for more complex asynchronous behavior. |
Modifier and Type | Method and Description |
---|---|
static Promise<Void,NeverThrowsException> |
Promises.allDone(Collection<Promise<?,?>> promises)
Returns a
Promise 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 a
Promise which will be completed successfully once all of the
provided promises have completed (successfully or not, including runtime exceptions),
returning back the context parameter. |
static <V,E extends Exception> |
Promises.newExceptionPromise(E exception)
Returns a
Promise representing an asynchronous task which has
already failed with the provided exception. |
static <V,E extends Exception> |
Promises.newResultPromise(V result)
Returns a
Promise representing an asynchronous task which has
already succeeded with the provided result. |
static <V,E extends Exception> |
Promises.newRuntimeExceptionPromise(RuntimeException exception)
Returns a
Promise representing an asynchronous task which has
already failed with the provided runtime exception. |
<VOUT> Promise<VOUT,E> |
PromiseImpl.then(Function<? super V,VOUT,E> onResult) |
<VOUT> Promise<VOUT,E> |
Promise.then(Function<? super V,VOUT,E> onResult)
Submits the provided function for execution once this
Promise has
completed with a result, and returns a new Promise representing
the outcome of the function. |
<VOUT,EOUT extends Exception> |
PromiseImpl.then(Function<? super V,VOUT,EOUT> onResult,
Function<? super E,VOUT,EOUT> onException) |
<VOUT,EOUT extends Exception> |
Promise.then(Function<? super V,VOUT,EOUT> onResult,
Function<? super E,VOUT,EOUT> onException)
Submits the provided functions for execution once this
Promise
has completed (with a result or an exception), and returns a new
Promise representing the outcome of the invoked function. |
<VOUT,EOUT extends Exception> |
PromiseImpl.then(Function<? super V,VOUT,EOUT> onResult,
Function<? super E,VOUT,EOUT> onException,
Function<? super RuntimeException,VOUT,EOUT> onRuntimeException) |
<VOUT,EOUT extends Exception> |
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 this
Promise
has completed (with a result or an exception or a RuntimeException ), and returns a new
Promise representing the outcome of the invoked function. |
Promise<V,E> |
PromiseImpl.thenAlways(Runnable always) |
Promise<V,E> |
Promise.thenAlways(Runnable onResultOrException)
Submits the provided runnable for execution once this
Promise has
completed, and regardless of whether it has a result or an exception. |
<VOUT> Promise<VOUT,E> |
PromiseImpl.thenAsync(AsyncFunction<? super V,VOUT,E> onResult) |
<VOUT> Promise<VOUT,E> |
Promise.thenAsync(AsyncFunction<? super V,VOUT,E> onResult)
Submits the provided asynchronous function for execution once this
Promise has completed with a result, and returns a new
Promise representing the outcome of the function. |
<VOUT,EOUT extends Exception> |
PromiseImpl.thenAsync(AsyncFunction<? super V,VOUT,EOUT> onResult,
AsyncFunction<? super E,VOUT,EOUT> onException) |
<VOUT,EOUT extends Exception> |
Promise.thenAsync(AsyncFunction<? super V,VOUT,EOUT> onResult,
AsyncFunction<? super E,VOUT,EOUT> onException)
Submits the provided asynchronous functions for execution once this
Promise has completed, and returns a new Promise
representing the outcome of the invoked function. |
<VOUT,EOUT extends Exception> |
PromiseImpl.thenAsync(AsyncFunction<? super V,VOUT,EOUT> onResult,
AsyncFunction<? super E,VOUT,EOUT> onException,
AsyncFunction<? super RuntimeException,VOUT,EOUT> onRuntimeException) |
<VOUT,EOUT extends Exception> |
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 this
Promise has completed, and returns a new Promise
representing the outcome of the invoked function. |
<EOUT extends Exception> |
PromiseImpl.thenCatch(Function<? super E,V,EOUT> onException) |
<EOUT extends Exception> |
Promise.thenCatch(Function<? super E,V,EOUT> onException)
Submits the provided function for execution once this
Promise has
not completed with a result (has completed with an exception), and returns
a new Promise representing the outcome of the function. |
<EOUT extends Exception> |
PromiseImpl.thenCatchAsync(AsyncFunction<? super E,V,EOUT> onException) |
<EOUT extends Exception> |
Promise.thenCatchAsync(AsyncFunction<? super E,V,EOUT> onException)
Submits the provided asynchronous function for execution once this
Promise has completed with an exception, and returns a new
Promise representing the outcome of the function. |
Promise<V,E> |
PromiseImpl.thenCatchRuntimeException(Function<? super RuntimeException,V,E> onRuntimeException) |
Promise<V,E> |
Promise.thenCatchRuntimeException(Function<? super RuntimeException,V,E> onRuntimeException)
Submits the provided function for execution once this
Promise has
not completed with a result nor with an exception but with a RuntimeException , and returns
a new Promise representing the outcome of the function. |
Promise<V,E> |
PromiseImpl.thenCatchRuntimeExceptionAsync(AsyncFunction<? super RuntimeException,V,E> onRuntimeException) |
Promise<V,E> |
Promise.thenCatchRuntimeExceptionAsync(AsyncFunction<? super RuntimeException,V,E> onRuntimeException)
Submits the provided asynchronous function for execution once this
Promise has completed with a RuntimeException , and returns a new
Promise representing the outcome of the function. |
Promise<V,E> |
PromiseImpl.thenFinally(Runnable onFinally) |
Promise<V,E> |
Promise.thenFinally(Runnable onResultOrException)
Submits the provided runnable for execution once this
Promise has
completed, and regardless of whether of its outcome. |
Promise<V,E> |
PromiseImpl.thenOnException(ExceptionHandler<? super E> onException) |
Promise<V,E> |
Promise.thenOnException(ExceptionHandler<? super E> onException)
Registers the provided completion handler for notification if this
Promise cannot be completed due to an exception. |
Promise<V,E> |
PromiseImpl.thenOnResult(ResultHandler<? super V> onResult) |
Promise<V,E> |
Promise.thenOnResult(ResultHandler<? super V> onResult)
Registers the provided completion handler for notification once this
Promise has completed with a result. |
Promise<V,E> |
PromiseImpl.thenOnResultOrException(ResultHandler<? super V> onResult,
ExceptionHandler<? super E> onException) |
Promise<V,E> |
Promise.thenOnResultOrException(ResultHandler<? super V> onResult,
ExceptionHandler<? super E> onException)
Registers the provided completion handlers for notification once this
Promise has completed (with a result or an exception). |
Promise<V,E> |
PromiseImpl.thenOnResultOrException(Runnable onResultOrException) |
Promise<V,E> |
Promise.thenOnResultOrException(Runnable onResultOrException)
Submits the provided runnable for execution once this
Promise has
completed, and regardless of whether it has a result or an exception. |
Promise<V,E> |
PromiseImpl.thenOnRuntimeException(RuntimeExceptionHandler onRuntimeException) |
Promise<V,E> |
Promise.thenOnRuntimeException(RuntimeExceptionHandler onRuntimeException)
Registers the provided completion handler for notification if this
Promise cannot be completed due to an runtime exception. |
static <V,E extends Exception> |
Promises.when(List<Promise<V,E>> promises)
Returns a
Promise 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> |
Promises.when(Promise<V,E>... promises)
Returns a
Promise which will be completed once all of the
provided promises have succeeded, or as soon as one of them fails. |
Modifier and Type | Method and Description |
---|---|
static <V,E extends Exception> |
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.
|
Modifier and Type | Method and Description |
---|---|
static <V,E extends Exception> |
Promises.when(Promise<V,E>... promises)
Returns a
Promise which will be completed once all of the
provided promises have succeeded, or as soon as one of them fails. |
Modifier and Type | Method and Description |
---|---|
static Promise<Void,NeverThrowsException> |
Promises.allDone(Collection<Promise<?,?>> promises)
Returns a
Promise 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 a
Promise which will be completed successfully once all of the
provided promises have completed (successfully or not, including runtime exceptions),
returning back the context parameter. |
static <V,E extends Exception> |
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 <V,E extends Exception> |
Promises.when(List<Promise<V,E>> promises)
Returns a
Promise which will be completed once all of the
provided promises have succeeded, or as soon as one of them fails. |
Copyright © 2010-2018, ForgeRock All Rights Reserved.