Uses of Class
org.forgerock.secrets.SecretBuilder
-
Packages that use SecretBuilder Package Description org.forgerock.secrets Provides a unified API for accessing secrets of various kinds.org.forgerock.secrets.keys Contains cryptographic key related API objects.org.forgerock.secrets.propertyresolver Provides aSecretStore
implementation that loads secrets from a Common ConfigurationPropertyResolver
and then decodes it with aSecretPropertyFormat
. -
-
Uses of SecretBuilder in org.forgerock.secrets
Methods in org.forgerock.secrets that return SecretBuilder Modifier and Type Method Description SecretBuilder
SecretBuilder. certificate(Certificate certificate)
Sets the certificate associated with this secret.SecretBuilder
SecretBuilder. certificateChain(Certificate... chain)
Sets the certificate chain associated with this secret.SecretBuilder
SecretBuilder. certificateChain(List<? extends Certificate> chain)
Sets the certificate chain associated with this secret.SecretBuilder
SecretBuilder. clock(Clock clock)
Set the source of time for the default (relative) secret expiry time.SecretBuilder
SecretBuilder. expiresAt(Instant expiry)
Sets the secret to expire at the given time.SecretBuilder
SecretBuilder. expiresIn(long deadline, TemporalUnit unit, Clock clock)
Sets the secret to expire in deadline units from now.SecretBuilder
SecretBuilder. keyUsages(Set<KeyUsage> keyUsages)
Sets the allowed key usages for this key.SecretBuilder
SecretBuilder. password(char[] password)
Sets the raw data of this secret object to the UTF-8 bytes of the given password.SecretBuilder
SecretBuilder. provider(Provider provider)
Sets the provider associated with this secret.SecretBuilder
SecretBuilder. publicKey(PublicKey key)
Sets the public key associated with this secret.SecretBuilder
SecretBuilder. rawData(byte[] rawData)
Sets the raw data of the secret object.SecretBuilder
SecretBuilder. secretKey(Key key)
Sets the secret key for this object.SecretBuilder
SecretBuilder. stableId(String id)
Sets the stable id of this secret.Constructors in org.forgerock.secrets with parameters of type SecretBuilder Constructor Description GenericSecret(SecretBuilder builder)
Constructs a generic secret with the given stable identifier and secret data.Secret(SecretBuilder builder)
Constructs the secret using the given builder. -
Uses of SecretBuilder in org.forgerock.secrets.keys
Constructors in org.forgerock.secrets.keys with parameters of type SecretBuilder Constructor Description DataDecryptionKey(SecretBuilder builder)
Initialises the key with the given secret data.DataEncryptionKey(SecretBuilder builder)
Initialises the key with the given secret data.KeyAgreementKey(SecretBuilder builder)
Initialises the key with the given secret data.KeyDecryptionKey(SecretBuilder builder)
Initialises the key with the given secret data.KeyEncryptionKey(SecretBuilder builder)
Initialises the key with the given secret data.SigningKey(SecretBuilder builder)
Initialises the key with the given secret data.VerificationKey(SecretBuilder builder)
Initialises the key with the given secret data. -
Uses of SecretBuilder in org.forgerock.secrets.propertyresolver
Methods in org.forgerock.secrets.propertyresolver that return SecretBuilder Modifier and Type Method Description SecretBuilder
PropertyFormatBase64. decode(String propertyValue)
SecretBuilder
SecretKeyPropertyFormat. decode(String propertyValue)
SecretBuilder
SecretPropertyFormat. decode(String propertyValue)
Decodes the input property value, setting relevant properties on aSecretBuilder
object.Methods in org.forgerock.secrets.propertyresolver that return types with arguments of type SecretBuilder Modifier and Type Method Description default Promise<SecretBuilder,NoSuchSecretException>
SecretPropertyFormat. decodeToPromise(String propertyValue)
Decodes the input property value, setting relevant properties on aSecretBuilder
object.
-