SimpleCredentials simpleCredentials = (SimpleCredentials) creds;
if (storeEnabled ||
"admin".equals(simpleCredentials.getUserID()) && "admin".equals(new String(simpleCredentials.getPassword()))) {
VaultAuthConfig.RepositoryConfig cfg = new VaultAuthConfig.RepositoryConfig(getLookupId(mountpoint));
cfg.addCredsConfig(new SimpleCredentialsConfig(simpleCredentials));
config.addRepositoryConfig(cfg);
try {
config.save();
log.warn("Credentials for {} updated in {}.", mountpoint, config.getConfigFile().getPath());
} catch (IOException e) {