Fix typo in method name listAppRoleSecrets (#14)

This commit is contained in:
2017-08-18 20:45:47 +02:00
parent 745ab7a24c
commit 23f98f190b
4 changed files with 23 additions and 4 deletions

View File

@ -514,7 +514,7 @@ public class HTTPVaultConnector implements VaultConnector {
}
@Override
public final List<String> listAppRoleSecretss(final String roleName) throws VaultConnectorException {
public final List<String> listAppRoleSecrets(final String roleName) throws VaultConnectorException {
if (!isAuthorized())
throw new AuthorizationRequiredException();

View File

@ -325,8 +325,21 @@ public interface VaultConnector extends AutoCloseable {
* @param roleName The role name
* @return List of roles
* @throws VaultConnectorException on error
* @deprecated Use {@link #listAppRoleSecrets(String)}}. Will be removed in 0.7.0!
*/
List<String> listAppRoleSecretss(final String roleName) throws VaultConnectorException;
@Deprecated
default List<String> listAppRoleSecretss(final String roleName) throws VaultConnectorException {
return listAppRoleSecrets(roleName);
}
/**
* List existing (accessible) secret IDs for AppRole role.
*
* @param roleName The role name
* @return List of roles
* @throws VaultConnectorException on error
*/
List<String> listAppRoleSecrets(final String roleName) throws VaultConnectorException;
/**
* Register User-ID with App-ID.