Uses of Class
codes.grow.packages.vault.core.Secret
Packages that use Secret
Package
Description
Grow Codes SDK for HashiCorp Vault.
-
Uses of Secret in codes.grow.packages.vault
Methods in codes.grow.packages.vault that return SecretModifier and TypeMethodDescriptionAuthInfo.clientToken()Returns the value of theclientTokenrecord component.TokenInfo.id()Returns the value of theidrecord component.DatabaseCredentials.password()Returns the value of thepasswordrecord component.IssuedCertificate.privateKey()Returns the value of theprivateKeyrecord component.SecretIdInfo.secretId()Returns the value of thesecretIdrecord component.SecretIdInfo.secretIdAccessor()Returns the value of thesecretIdAccessorrecord component.WrapInfo.token()Returns the value of thetokenrecord component.Methods in codes.grow.packages.vault that return types with arguments of type SecretModifier and TypeMethodDescriptionAuthInfo.accessor()Returns the value of theaccessorrecord component.TokenInfo.accessor()Returns the value of theaccessorrecord component.WrapInfo.accessor()Returns the value of theaccessorrecord component.VaultClient.token()Returns the current client token (from the config, a login orVaultClient.setToken(codes.grow.packages.vault.core.Secret)).VaultConfig.token()Returns the API token.Methods in codes.grow.packages.vault with parameters of type SecretModifier and TypeMethodDescriptionLooks up a token (auth/token/lookup-selfwith that token).Wrapping.lookupWrapping(Secret token) Properties of a wrapping token without using it:POST sys/wrapping/lookup.Wrapping.lookupWrappingAsync(Secret token) AsynchronousWrapping.lookupWrapping(Secret).Sets the privileged password.voidReplaces the client token.Sets the API token.Sets the API token.Unwraps a token:POST sys/wrapping/unwrapauthenticated with the wrapping token itself.Wrapping.unwrapAsync(Secret token) AsynchronousWrapping.unwrap(Secret).static KubernetesAuthCreates the method with an explicit service account token instead of a file.Constructors in codes.grow.packages.vault with parameters of type SecretModifierConstructorDescriptionAppRoleAuth(String roleId, Secret secretId, String mount) Creates the method.AuthInfo(Secret clientToken, Optional<Secret> accessor, List<String> policies, List<String> tokenPolicies, Map<String, String> metadata, Duration leaseDuration, boolean renewable, String entityId, String tokenType, boolean orphan, int numUses) Creates the record; collections are copied.DatabaseCredentials(String username, Secret password) Creates an instance of aDatabaseCredentialsrecord class.IssuedCertificate(String certificate, String issuingCa, List<String> caChain, String serialNumber, Optional<Instant> expiration, Secret privateKey, String privateKeyType) Creates the record; the chain is copied.Creates the method.SecretIdInfo(Secret secretId, Secret secretIdAccessor, int secretIdNumUses, Duration secretIdTtl) Creates an instance of aSecretIdInforecord class.Creates the method.TokenInfo(Secret id, Optional<Secret> accessor, List<String> policies, Duration ttl, Duration creationTtl, Optional<Instant> creationTime, Optional<Instant> expireTime, Optional<Instant> issueTime, boolean renewable, String displayName, Map<String, String> meta, int numUses, boolean orphan, String path, String type, Duration explicitMaxTtl, String entityId) Creates the record; collections are copied.UserpassAuth(String username, Secret password, String mount) Creates the method.WrapInfo(Secret token, Optional<Secret> accessor, Duration ttl, Optional<Instant> creationTime, String creationPath) Creates an instance of aWrapInforecord class.Constructor parameters in codes.grow.packages.vault with type arguments of type SecretModifierConstructorDescriptionAuthInfo(Secret clientToken, Optional<Secret> accessor, List<String> policies, List<String> tokenPolicies, Map<String, String> metadata, Duration leaseDuration, boolean renewable, String entityId, String tokenType, boolean orphan, int numUses) Creates the record; collections are copied.TokenInfo(Secret id, Optional<Secret> accessor, List<String> policies, Duration ttl, Duration creationTtl, Optional<Instant> creationTime, Optional<Instant> expireTime, Optional<Instant> issueTime, boolean renewable, String displayName, Map<String, String> meta, int numUses, boolean orphan, String path, String type, Duration explicitMaxTtl, String entityId) Creates the record; collections are copied.WrapInfo(Secret token, Optional<Secret> accessor, Duration ttl, Optional<Instant> creationTime, String creationPath) Creates an instance of aWrapInforecord class. -
Uses of Secret in codes.grow.packages.vault.core
Methods in codes.grow.packages.vault.core that return SecretModifier and TypeMethodDescriptionstatic SecretSecret.of(char[] value) Wraps a copy of a character array; the caller may clear its own array afterwards.static SecretWraps a string value.Methods in codes.grow.packages.vault.core with parameters of type SecretModifier and TypeMethodDescriptionTlsOptions.Builder.clientKeyPem(Secret pem) Sets the client key as inline PEM.booleanCompares the values in constant time. -
Uses of Secret in codes.grow.packages.vault.testing
Methods in codes.grow.packages.vault.testing that return SecretModifier and TypeMethodDescriptionVaultTesting.InitResult.rootToken()Returns the value of therootTokenrecord component.Methods in codes.grow.packages.vault.testing that return types with arguments of type SecretModifier and TypeMethodDescriptionVaultTesting.InitResult.keys()Returns the value of thekeysrecord component.VaultTesting.InitResult.keysBase64()Returns the value of thekeysBase64record component.VaultTesting.InitResult.recoveryKeys()Returns the value of therecoveryKeysrecord component.VaultTesting.InitResult.recoveryKeysBase64()Returns the value of therecoveryKeysBase64record component.Methods in codes.grow.packages.vault.testing with parameters of type SecretModifier and TypeMethodDescriptionstatic SealStatusVaultTesting.unseal(VaultClient client, Secret key) Enters one unseal key (hex or base64):PUT sys/unseal.Constructors in codes.grow.packages.vault.testing with parameters of type SecretModifierConstructorDescriptionInitResult(List<Secret> keys, List<Secret> keysBase64, List<Secret> recoveryKeys, List<Secret> recoveryKeysBase64, Secret rootToken) Creates the record; lists are copied.Constructor parameters in codes.grow.packages.vault.testing with type arguments of type Secret