Uses of Class
org.forgerock.secrets.ValidSecretsReference
Package
Description
Classes and interfaces for JWT encryption and JWEs.
Classes and interfaces for JWT signing and JWS'.
Provides a unified API for accessing secrets of various kinds.
Contains secret credential related API objects.
Provides a
SecretStore
implementation that loads secrets from a Common Configuration
PropertyResolver
and then decodes it with a
SecretPropertyFormat
.-
Uses of ValidSecretsReference in org.forgerock.json.jose.jwe
Modifier and TypeMethodDescriptionPromise<? extends EncryptedJwt,
JweDecryptionCheckedException> EncryptedJwt.decrypt
(ValidSecretsReference<? extends CryptoKey, NeverThrowsException> secretsReference) Attempts to decrypt the JWT using any available keys from the givenValidSecretsReference
.SignedThenEncryptedJwt.decrypt
(ValidSecretsReference<? extends CryptoKey, NeverThrowsException> validSecretsReference) 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
(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 ValidSecretsReference in org.forgerock.json.jose.jws
Modifier and TypeMethodDescriptionPromise<? extends EncryptedJwt,
JweDecryptionCheckedException> EncryptedThenSignedJwt.decrypt
(ValidSecretsReference<? extends CryptoKey, NeverThrowsException> secretsReference) Decrypts the inner encrypted JWE so that the payload can be accessed.SigningManager.newVerificationHandler
(ValidSecretsReference<VerificationKey, NeverThrowsException> validSecrets) Constructs a new SigningHandler configured for verifying with the provided valid secrets reference. -
Uses of ValidSecretsReference in org.forgerock.secrets
Modifier and TypeMethodDescription<S extends Secret>
ValidSecretsReference<S,NeverThrowsException> SecretsProvider.createValidOrNamedReference
(Purpose<S> purpose, String name) Creates the valid secrets reference from the given purpose.<S extends Secret>
ValidSecretsReference<S,NeverThrowsException> SecretsProvider.createValidReference
(Purpose<S> purpose) Creates the valid secrets reference from the given purpose.ValidSecretsReference.refresh()
Force the refresh of the secret reference.static <T extends Secret>
ValidSecretsReference<T,NeverThrowsException> ValidSecretsReference.valid
(SecretsProvider secretsProvider, Purpose<T> purpose, Clock clock) Creates a reference to the valid secrets for the given purpose using the given secrets provider.static <T extends Secret>
ValidSecretsReference<T,NeverThrowsException> ValidSecretsReference.validOrNamed
(SecretsProvider secretsProvider, Purpose<T> purpose, String name, Clock clock) This creates a reference to either the named secret or all valid secrets for the purpose. -
Uses of ValidSecretsReference in org.forgerock.secrets.credentials
Modifier and TypeMethodDescriptionstatic <S extends Secret,
E extends Exception>
ValidCredentialPairs<S,E> ValidCredentialPairs.credentialPairs
(ValidSecretsReference<S, E> validSecrets, Function<S, PrincipalAndSecret<S>> mapper) Factory method to create a new instance ofValidCredentialPairs
from a reference to a set of secrets that each contain a credential pair.static <S extends Secret,
E extends Exception>
ValidCredentialPairs<S,E> ValidCredentialPairs.fixedPrincipalCredentialPairs
(String principal, ValidSecretsReference<S, E> validSecrets) Factory method to create a new instance ofValidCredentialPairs
from a reference to a set of secrets. -
Uses of ValidSecretsReference in org.forgerock.secrets.propertyresolver
ModifierConstructorDescriptionJwtWrappedPropertyFormat
(SecretPropertyFormat format, ValidSecretsReference<? extends CryptoKey, NeverThrowsException> validSecretsReference) Constructs a newJwtWrappedPropertyFormat
.