Uses of Class
org.forgerock.secrets.credentials.CredentialPair
Package
Description
Core
Filter
implementations.Core
Handler
implementations.This package provides APIs for OAuth 2.0 services implementations.
Collection of heaplets supporting OAuth2 client authentication Filters.
Contains secret credential related API objects.
A Secrets API backend that can obtain OAuth 2 access tokens from a token endpoint, along with a collection of
grant type handlers.
-
Uses of CredentialPair in org.forgerock.http.filter
Modifier and TypeMethodDescriptionstatic Filter
Filters.newHttpBasicAuthenticationFilter
(CredentialPair<GenericSecret> credentialPair) Creates an authenticationFilter
that puts a Basic Authorization header in the request.static Filter
Filters.newHttpBasicAuthenticationFilter
(CredentialPair<GenericSecret> credentialPair, Charset charset) Creates an authenticationFilter
that puts a Basic Authorization header in the request.static Filter
Filters.newUrlEncodedHttpBasicAuthFilter
(CredentialPair<GenericSecret> credentialPair) Creates an authenticationFilter
that put a Basic Authorization header in the request. -
Uses of CredentialPair 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.static HttpClientHandler.ProxyInfo
HttpClientHandler.ProxyInfo.blockingProxyInfo
(URI proxyUri, CredentialPair<GenericSecret> credentialPair) Creates an instance of ProxyInfo for a proxy that requires authentication, this will block and wait for a credentialPair to return a value. -
Uses of CredentialPair in org.forgerock.http.oauth2
ModifierConstructorDescriptionClientSecretPostAuthenticationFilter
(CredentialPair<GenericSecret> credentials) Creates a filter that will add the client credentials to the request body. -
Uses of CredentialPair in org.forgerock.openig.filter.oauth2.client.authentication
Modifier and TypeMethodDescriptionprotected Filter
ClientSecretBasicAuthenticationFilterHeaplet.createFilter
(CredentialPair<GenericSecret> credentialPair) protected Filter
ClientSecretPostAuthenticationFilterHeaplet.createFilter
(CredentialPair<GenericSecret> credentialPair) -
Uses of CredentialPair in org.forgerock.secrets.credentials
Modifier and TypeMethodDescriptionstatic <T extends Secret>
CredentialPair<T>CredentialPair.credentialPair
(SecretReference<T> secretReference, Function<T, PrincipalAndSecret<T>> mapper) Factory method to create a new instance ofCredentialPair
from a reference to a secret containing both the principal and secret.static <T extends Secret>
CredentialPair<T>CredentialPair.fixedPrincipalCredentialPair
(String principal, SecretReference<T> secretReference) Factory method to create a new instance ofCredentialPair
with a static principal and a dynamic principal secret. -
Uses of CredentialPair in org.forgerock.secrets.oauth2
Modifier and TypeMethodDescriptionAccessTokenSecretStore.Builder.withClientSecretBasicAuth
(CredentialPair<GenericSecret> credentials) Configures the token store to supply client credentials via HTTP Basic Authentication.AccessTokenSecretStore.Builder.withClientSecretPostAuth
(CredentialPair<GenericSecret> credentials) Configures the token store to supply client credentials via client_secret_post method.ModifierConstructorDescriptionResourceOwnerPasswordGrantTypeHandler
(String clientId, CredentialPair<GenericSecret> ownerCredentials) Initialises the grant type handler with the given credentials and the default scope for this client.ResourceOwnerPasswordGrantTypeHandler
(String clientId, CredentialPair<GenericSecret> ownerCredentials, Collection<String> scope) Initialises the grant type handler with the given resource owner credentials.