Uses of Class
org.forgerock.secrets.credentials.CredentialPair
Packages that use CredentialPair
Package
Description
Core
Filter
implementations.Core
Handler
implementations.This package provides APIs for OAuth 2.0 services implementations.
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
Methods in org.forgerock.http.filter with parameters of type CredentialPairModifier 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
Methods in org.forgerock.http.handler with parameters of type CredentialPairModifier 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
Constructors in org.forgerock.http.oauth2 with parameters of type CredentialPairModifierConstructorDescriptionClientSecretPostAuthenticationFilter
(CredentialPair<GenericSecret> credentials) Creates a filter that will add the client credentials to the request body. -
Uses of CredentialPair in org.forgerock.secrets.credentials
Methods in org.forgerock.secrets.credentials that return CredentialPairModifier 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
Methods in org.forgerock.secrets.oauth2 with parameters of type CredentialPairModifier 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.Constructors in org.forgerock.secrets.oauth2 with parameters of type CredentialPairModifierConstructorDescriptionResourceOwnerPasswordGrantTypeHandler
(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.