Skip to content

Commit bfc926f

Browse files
committed
Javadoc updates
1 parent b5803b8 commit bfc926f

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

src/main/java/com/bettercloud/vault/Vault.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ public Vault(final VaultConfig vaultConfig) {
7676

7777
/**
7878
* Construct a Vault driver instance with the provided config settings, and use the provided global KV Engine version for all secrets.
79+
*
80+
* @param vaultConfig Configuration settings for Vault interaction (e.g. server address, token, etc)
81+
* @param engineVersion Which version of the Key/Value Secret Engine to use globally (i.e. 1 or 2)
7982
*/
8083
public Vault(final VaultConfig vaultConfig, final Integer engineVersion) {
8184
if (engineVersion < 1 || engineVersion > 2) {
@@ -99,6 +102,8 @@ public Vault(final VaultConfig vaultConfig, final Integer engineVersion) {
99102
* If a secrets KV Engine version map is not supplied, use Vault APIs to determine the
100103
* KV Engine version for each secret. This call requires admin rights.
101104
* @param globalFallbackVersion The Integer version of the KV Engine to use as a global fallback.
105+
*
106+
* @throws VaultException If any error occurs
102107
*/
103108
public Vault(final VaultConfig vaultConfig, final Boolean useSecretsEnginePathMap, final Integer globalFallbackVersion)
104109
throws VaultException {

src/main/java/com/bettercloud/vault/VaultConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ public VaultConfig environmentLoader(final EnvironmentLoader environmentLoader)
8383
* @param nameSpace The namespace to use globally in this VaultConfig instance.
8484
* @return This object, with the namespace populated, ready for additional builder-pattern method calls or else
8585
* finalization with the build() method
86+
*
87+
* @throws VaultException If any error occurs
8688
*/
8789
public VaultConfig nameSpace(final String nameSpace) throws VaultException {
8890
if (nameSpace != null && !nameSpace.isEmpty()) {

src/main/java/com/bettercloud/vault/api/Logical.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,6 @@ private Integer engineVersionForSecretPath(final String secretPath) {
649649
*
650650
* @param path The Vault secret path to check (e.g. <code>secret/</code>).
651651
* @return The response information received from Vault
652-
* @throws VaultException If any error occurs, or unexpected response received from Vault
653652
*/
654653
public Integer getEngineVersionForSecretPath(final String path) {
655654
return this.engineVersionForSecretPath(path);

src/main/java/com/bettercloud/vault/api/LogicalUtilities.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ public static String adjustPathForList(final String path, final Logical.logicalO
100100
*
101101
* @param path The Vault path to check or mutate, based on the operation.
102102
* @param operation The operation being performed, e.g. readV2 or writeV1.
103+
*
104+
* @return The modified path
103105
*/
104106
public static String adjustPathForDelete(final String path, final Logical.logicalOperations operation) {
105107
final List<String> pathSegments = getPathSegments(path);
@@ -118,6 +120,8 @@ public static String adjustPathForDelete(final String path, final Logical.logica
118120
* When deleting secret versions, you must inject the path segment "delete" right after the lowest-level path segment.
119121
*
120122
* @param path The Vault path to check or mutate, based on the operation.
123+
*
124+
* @return The modified path
121125
*/
122126
public static String adjustPathForVersionDelete(final String path) {
123127
final List<String> pathSegments = getPathSegments(path);

0 commit comments

Comments
 (0)