public String resolve(FabricService fabricService, Map<String, Map<String, String>> configs, String pid, String key, String value) {
return getEncryptor(fabricService).decrypt(value.substring(RESOLVER_SCHEME.length() + 1));
}
private PBEStringEncryptor getEncryptor(FabricService fabricService) {
StandardPBEStringEncryptor encryptor = new StandardPBEStringEncryptor();
encryptor.setAlgorithm(getAlgorithm(fabricService));
encryptor.setPassword(getPassword(fabricService));
return encryptor;
}