Package org.apache.synapse.util.resolver
Class SecureVaultResolver
- java.lang.Object
-
- org.apache.synapse.util.resolver.SecureVaultResolver
-
public class SecureVaultResolver extends Object
Check the secret alias match with the vaultLookupPattern regex.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
checkVaultLookupPattersExists(String aliasSecret)
Check the secret alias match with the vaultLookupPattern regex.static String
resolve(SynapseEnvironment synapseEnvironment, String value)
Convert the secret alias to the actual password using synapse message context.
-
-
-
Method Detail
-
checkVaultLookupPattersExists
public static boolean checkVaultLookupPattersExists(String aliasSecret)
Check the secret alias match with the vaultLookupPattern regex.- Parameters:
aliasSecret
- Value of secret alias- Returns:
- boolean state of the pattern existence.
-
resolve
public static String resolve(SynapseEnvironment synapseEnvironment, String value)
Convert the secret alias to the actual password using synapse message context.- Parameters:
synapseEnvironment
- synapse environmentvalue
- Value of password from DBMediator- Returns:
- the actual password from the Secure Vault Password Management.
-
-