我有一个问题,就是在列表中添加一些属性,这些属性存储在Vault中,而这些Vault详细信息是在配置服务器中配置的。有人可以帮忙吗?我已将值添加为“硬编码”,但这不是正确的过程。
case DELETE:
ArrayList<String> list =new ArrayList<String>();
//Hardecoded value
list.add("SPECIALTOKEN");
list.add("INTERNALTOKEN");
list.add("MAILING");
//Given the key which needs to bring the value from the vault and store here
list.add("authentication.credentialMap");
if(!StringUtils.isEmpty(apiRequest.getToken()) && ! list.contains(apiRequest.getToken())) {
deleteToken(serviceResponse, apiResponse, apiRequest);
return serviceResponse;
}
deleteJwtToken(serviceRequest, serviceResponse, apiResponse);
break;