@Override public String retrieveFromVault(String encrypted) { if (isVaultFormat(encrypted)) { String vault = fqn; if (vault != null) { String[] split = encrypted.split("::"); if (split[1].equals(vault)) { Object value = options.get(split[2]); if (value == null) { value = split[3]; } return value.toString(); } } throw new NoSuchItemException(); } return encrypted; } }
throw new NoSuchItemException();
@Override public String retrieveFromVault(String encrypted) { if (isVaultFormat(encrypted)) { String vault = fqn; if (vault != null) { String[] split = encrypted.split("::"); if (split[1].equals(vault)) { Object value = options.get(split[2]); if (value == null) { value = split[3]; } return value.toString(); } } throw new NoSuchItemException(); } return encrypted; } }