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.gcpkms A secret store implementation that can retrieve keys from a Google Cloud Platform Key Management Service.org.forgerock.secrets.keys Contains cryptographic key related API objects.org.forgerock.secrets.propertyresolver Provides aSecretStoreimplementation that loads secrets from a Common ConfigurationPropertyResolverand then decodes it with aSecretPropertyFormat.org.forgerock.secrets.vault Secrets backend that reads secrets from a remote Hashicorp Vault server. -
-
Uses of SecretBuilder in org.forgerock.secrets
Methods in org.forgerock.secrets that return SecretBuilder Modifier and Type Method Description SecretBuilderSecretBuilder. allowedAlgorithms(Collection<String> allowedAlgorithms)Sets the cryptographic algorithms that can be used with this key.SecretBuilderSecretBuilder. allowedAlgorithms(Predicate<String> allowedAlgorithmsTest)Sets the cryptographic algorithms that can be used with this key.SecretBuilderSecretBuilder. certificate(Certificate certificate)Sets the certificate associated with this secret.SecretBuilderSecretBuilder. certificateChain(Certificate... chain)Sets the certificate chain associated with this secret.SecretBuilderSecretBuilder. certificateChain(List<? extends Certificate> chain)Sets the certificate chain associated with this secret.SecretBuilderSecretBuilder. clock(Clock clock)Set the source of time for the default (relative) secret expiry time.SecretBuilderSecretBuilder. combine(SecretBuilder that)Returns a freshSecretBuilderthat combines the data from this secret builder and the argument.SecretBuilderSecretBuilder. expiresAt(Instant expiry)Sets the secret to expire at the given time.SecretBuilderSecretBuilder. expiresIn(long deadline, TemporalUnit unit, Clock clock)Sets the secret to expire in deadline units from now.SecretBuilderSecretBuilder. keyUsages(Set<KeyUsage> keyUsages)Sets the allowed key usages for this key.SecretBuilderSecretBuilder. password(char[] password)Sets the raw data of this secret object to the UTF-8 bytes of the given password.SecretBuilderSecretBuilder. provider(Provider provider)Sets the provider associated with this secret.SecretBuilderSecretBuilder. publicKey(PublicKey key)Sets the public key associated with this secret.SecretBuilderSecretBuilder. rawData(byte[] rawData)Sets the raw data of the secret object.SecretBuilderSecretBuilder. secretKey(Key key)Sets the secret key for this object.SecretBuilderSecretBuilder. stableId(String id)Sets the stable id of this secret.Methods in org.forgerock.secrets that return types with arguments of type SecretBuilder Modifier and Type Method Description Promise<SecretBuilder,NoSuchSecretException>SecretDecoder. decodeToPromise(byte[] data)Decodes the raw data retrieved from a backend into aSecretBuilderfor further processing.Methods in org.forgerock.secrets with parameters of type SecretBuilder Modifier and Type Method Description SecretBuilderSecretBuilder. combine(SecretBuilder that)Returns a freshSecretBuilderthat combines the data from this secret builder and the argument.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.gcpkms
Methods in org.forgerock.secrets.gcpkms that return SecretBuilder Modifier and Type Method Description SecretBuilderGoogleKmsEncryptedPropertyFormat. decode(String propertyValue)Methods in org.forgerock.secrets.gcpkms that return types with arguments of type SecretBuilder Modifier and Type Method Description Promise<SecretBuilder,NoSuchSecretException>GoogleKmsEncryptedPropertyFormat. decodeToPromise(String propertyValue) -
Uses of SecretBuilder in org.forgerock.secrets.keys
Methods in org.forgerock.secrets.keys that return SecretBuilder Modifier and Type Method Description SecretBuilderCryptoKey. toBuilder()Converts the key back into aSecretBuilder, pre-initialized with the fields of this CryptoKey object.Constructors in org.forgerock.secrets.keys with parameters of type SecretBuilder Constructor Description CertificateVerificationKey(SecretBuilder builder)Initialises the key with the given secret data.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 SecretBuilderPemPropertyFormat. decode(String propertyValue)SecretBuilderPropertyFormatBase64. decode(String propertyValue)SecretBuilderSecretKeyPropertyFormat. decode(String propertyValue)SecretBuilderSecretPropertyFormat. decode(String propertyValue)Decodes the input property value, setting relevant properties on aSecretBuilderobject.Methods in org.forgerock.secrets.propertyresolver that return types with arguments of type SecretBuilder Modifier and Type Method Description Promise<SecretBuilder,NoSuchSecretException>PemPropertyFormat. decodeToPromise(String propertyValue)default Promise<SecretBuilder,NoSuchSecretException>SecretPropertyFormat. decodeToPromise(byte[] data)Decodes the data as a UTF-8 string and then callsSecretPropertyFormat.decodeToPromise(String)to decode the string value.default Promise<SecretBuilder,NoSuchSecretException>SecretPropertyFormat. decodeToPromise(String propertyValue)Decodes the input property value, setting relevant properties on aSecretBuilderobject.Constructor parameters in org.forgerock.secrets.propertyresolver with type arguments of type SecretBuilder Constructor Description PemPropertyFormat(Supplier<SecretBuilder> secretBuilderSupplier)Initializes the property format without any support for decrypting private key files.PemPropertyFormat(SecretsProvider secretsProvider, Purpose<GenericSecret> decryptionPasswordPurpose, Supplier<SecretBuilder> secretBuilderSupplier)Initializes the property format with the given secrets provider and purpose for decrypting password-encrypted PEM files. -
Uses of SecretBuilder in org.forgerock.secrets.vault
Methods in org.forgerock.secrets.vault that return types with arguments of type SecretBuilder Modifier and Type Method Description Promise<SecretBuilder,NoSuchSecretException>VaultKeyValueSecretStore.SecretFieldDecoder. apply(SecretBuilder secretBuilder, JsonValue jsonValue)Decodes a JSON value into one or more fields on aSecretBuilder.Methods in org.forgerock.secrets.vault with parameters of type SecretBuilder Modifier and Type Method Description Promise<SecretBuilder,NoSuchSecretException>VaultKeyValueSecretStore.SecretFieldDecoder. apply(SecretBuilder secretBuilder, JsonValue jsonValue)Decodes a JSON value into one or more fields on aSecretBuilder.
-