*
* @return Actual password
*/
public String getResolvedSecret() {
SecretResolver secretResolver = null;
if (localSecretResolver != null && localSecretResolver.isInitialized()) {
secretResolver = localSecretResolver;
} else if (globalSecretResolver != null && globalSecretResolver.isInitialized()
&& globalSecretResolver.isTokenProtected(token)) {
secretResolver = globalSecretResolver;
}
if (secretResolver != null) {
if (aliasSecret != null && !"".equals(aliasSecret)) {
if (secretPrompt == null) {
return secretResolver.resolve(aliasSecret);
} else {
return secretResolver.resolve(aliasSecret, secretPrompt);
}
}
}
return aliasSecret;
}