Uses of Class
de.stklcode.jvault.connector.exception.VaultConnectorException
Package
Description
Java Vault Connector base package - contains
VaultConnector
interface and
default implementation.Some custom exceptions for error handling.
-
Uses of VaultConnectorException in de.stklcode.jvault.connector
Modifier and TypeMethodDescriptionfinal AuthResponse
HTTPVaultConnector.authAppRole
(String roleID, String secretID) default AuthResponse
VaultConnector.authAppRole
(String roleID) Authorize to Vault using AppRole method without secret ID.VaultConnector.authAppRole
(String roleID, String secretID) Authorize to Vault using AppRole method.final TokenResponse
Authorize to Vault using token.final AuthResponse
HTTPVaultConnector.authUserPass
(String username, String password) VaultConnector.authUserPass
(String username, String password) Authorize to Vault using username and password.HTTPVaultConnectorBuilder.buildAndAuth()
Build connector and authenticate with token set in factory or from environment.final boolean
HTTPVaultConnector.createAppRole
(AppRole role) boolean
VaultConnector.createAppRole
(AppRole role) Register a new AppRole role from given metamodel.default boolean
VaultConnector.createAppRole
(String roleName) Register new AppRole role with default policy.default boolean
VaultConnector.createAppRole
(String roleName, String roleID) Register new AppRole role with default policy and custom ID.default boolean
VaultConnector.createAppRole
(String roleName, List<String> policies) Register new AppRole role with policies.default boolean
VaultConnector.createAppRole
(String roleName, List<String> policies, String roleID) Register new AppRole role with policies and custom ID.final AppRoleSecretResponse
HTTPVaultConnector.createAppRoleSecret
(String roleName, AppRoleSecret secret) default AppRoleSecretResponse
VaultConnector.createAppRoleSecret
(String roleName) Register new random generated AppRole secret.VaultConnector.createAppRoleSecret
(String roleName, AppRoleSecret secret) Register new AppRole secret with custom ID.default AppRoleSecretResponse
VaultConnector.createAppRoleSecret
(String roleName, String secretID) Register new AppRole secret with custom ID.boolean
HTTPVaultConnector.createOrUpdateTokenRole
(String name, TokenRole role) default boolean
VaultConnector.createOrUpdateTokenRole
(TokenRole role) Create a new or update an existing token role.boolean
VaultConnector.createOrUpdateTokenRole
(String name, TokenRole role) Create a new or update an existing token role.final AuthResponse
HTTPVaultConnector.createToken
(Token token) final AuthResponse
HTTPVaultConnector.createToken
(Token token, boolean orphan) final AuthResponse
HTTPVaultConnector.createToken
(Token token, String role) VaultConnector.createToken
(Token token) Create a new token.VaultConnector.createToken
(Token token, boolean orphan) Create a new token.VaultConnector.createToken
(Token token, String role) Create a new token for specific role.final void
void
Delete key from Vault.final void
HTTPVaultConnector.deleteAllSecretVersions
(String mount, String key) void
VaultConnector.deleteAllSecretVersions
(String mount, String key) Delete latest version of a secret from Vault.final boolean
HTTPVaultConnector.deleteAppRole
(String roleName) boolean
VaultConnector.deleteAppRole
(String roleName) Delete AppRole role from Vault.final void
HTTPVaultConnector.deleteLatestSecretVersion
(String mount, String key) void
VaultConnector.deleteLatestSecretVersion
(String mount, String key) Delete latest version of a secret from Vault.final void
HTTPVaultConnector.deleteSecretVersions
(String mount, String key, int... versions) void
VaultConnector.deleteSecretVersions
(String mount, String key, int... versions) Delete secret versions from Vault.boolean
HTTPVaultConnector.deleteTokenRole
(String name) boolean
VaultConnector.deleteTokenRole
(String name) Delete a token role.final boolean
HTTPVaultConnector.destroyAppRoleSecret
(String roleName, String secretID) boolean
VaultConnector.destroyAppRoleSecret
(String roleName, String secretID) Destroy an AppRole secret.final void
HTTPVaultConnector.destroySecretVersions
(String mount, String key, int... versions) void
VaultConnector.destroySecretVersions
(String mount, String key, int... versions) Destroy secret versions from Vault.HTTPVaultConnectorBuilder.fromEnv()
Build connector based on theVAULT_ADDR
andVAULT_CACERT
(optional) environment variables.final String
HTTPVaultConnector.getAppRoleID
(String roleName) VaultConnector.getAppRoleID
(String roleName) Retrieve ID for an AppRole role.final List
<AuthBackend> HTTPVaultConnector.getAuthBackends()
VaultConnector.getAuthBackends()
Get all available authentication backends.HTTPVaultConnector.getHealth()
VaultConnector.getHealth()
Query server health information.List available nodes from Vault.HTTPVaultConnector.listAppRoles()
VaultConnector.listAppRoles()
List existing (accessible) AppRole roles.HTTPVaultConnector.listAppRoleSecrets
(String roleName) VaultConnector.listAppRoleSecrets
(String roleName) List existing (accessible) secret IDs for AppRole role.HTTPVaultConnector.listTokenRoles()
VaultConnector.listTokenRoles()
List available token roles from Vault.final AppRoleResponse
HTTPVaultConnector.lookupAppRole
(String roleName) VaultConnector.lookupAppRole
(String roleName) Lookup an AppRole role.final AppRoleSecretResponse
HTTPVaultConnector.lookupAppRoleSecret
(String roleName, String secretID) VaultConnector.lookupAppRoleSecret
(String roleName, String secretID) Lookup an AppRole secret.final TokenResponse
HTTPVaultConnector.lookupToken
(String token) VaultConnector.lookupToken
(String token) Lookup token information.final SecretResponse
Retrieve any nodes content from Vault.default CredentialsResponse
VaultConnector.readDbCredentials
(String role, String mount) Read credentials for SQL backends.default CredentialsResponse
VaultConnector.readMongoDbCredentials
(String role) Read credentials for MSSQL backend at default mount point.default CredentialsResponse
VaultConnector.readMsSqlCredentials
(String role) Read credentials for MSSQL backend at default mount point.default CredentialsResponse
VaultConnector.readMySqlCredentials
(String role) Read credentials for MySQL backend at default mount point.default CredentialsResponse
VaultConnector.readPostgreSqlCredentials
(String role) Read credentials for PostgreSQL backend at default mount point.default SecretResponse
VaultConnector.readSecretData
(String mount, String key) Retrieve the latest secret data for specific version from Vault.final MetadataResponse
HTTPVaultConnector.readSecretMetadata
(String mount, String key) VaultConnector.readSecretMetadata
(String mount, String key) Retrieve secret metadata from Vault.final SecretResponse
HTTPVaultConnector.readSecretVersion
(String mount, String key, Integer version) VaultConnector.readSecretVersion
(String mount, String key, Integer version) Retrieve secret data from Vault.HTTPVaultConnector.readTokenRole
(String name) VaultConnector.readTokenRole
(String name) Lookup token information.final SecretResponse
default SecretResponse
Renew lease with given ID.Renew lease with given ID.final void
void
Revoke given lease immediately.final void
HTTPVaultConnector.seal()
void
VaultConnector.seal()
Seal vault.final SealResponse
HTTPVaultConnector.sealStatus()
VaultConnector.sealStatus()
Retrieve status of vault seal.final boolean
HTTPVaultConnector.setAppRoleID
(String roleName, String roleID) boolean
VaultConnector.setAppRoleID
(String roleName, String roleID) Set custom ID for an AppRole role.final void
HTTPVaultConnector.undeleteSecretVersions
(String mount, String key, int... versions) void
VaultConnector.undeleteSecretVersions
(String mount, String key, int... versions) Undelete (restore) secret versions from Vault.final SealResponse
default SealResponse
Unseal vault.Unseal vault.void
HTTPVaultConnector.updateSecretMetadata
(String mount, String key, Integer maxVersions, boolean casRequired) void
VaultConnector.updateSecretMetadata
(String mount, String key, Integer maxVersions, boolean casRequired) Update secret metadata.HTTPVaultConnectorBuilder.withTrustedCA
(Path cert) Add a trusted CA certificate for HTTPS connections.final void
default void
Write simple value to Vault.default void
Write value to Vault.void
Write value to Vault.final SecretVersionResponse
default SecretVersionResponse
Write secret to Vault.Write secret to Vault. -
Uses of VaultConnectorException in de.stklcode.jvault.connector.exception
Modifier and TypeClassDescriptionclass
Exception thrown trying to do a request without any authorization handles.class
Exception thrown on problems with connection to Vault backend.class
Exception thrown when trying to send malformed request.final class
Exception thrown when response from vault returned with erroneous status code or payload could not be parsed to entity class.class
Exception thrown when trying to access a path the current user/token does not have permission to access.class
Exception thrown on errors with TLS connection.