- private Map<String, RegisteredUser> getRegisteredUsersV1(final Set<String> numbers) throws IOException {
- final Map<String, ACI> response;
- try {
- response = dependencies.getAccountManager()
- .getRegisteredUsers(ServiceConfig.getIasKeyStore(),
- numbers,
- serviceEnvironmentConfig.getCdsMrenclave());
- } catch (Quote.InvalidQuoteFormatException | UnauthenticatedQuoteException | SignatureException |
- UnauthenticatedResponseException | InvalidKeyException | NumberFormatException e) {
- throw new IOException(e);
- }
- final var registeredUsers = new HashMap<String, RegisteredUser>();
- response.forEach((key, value) -> registeredUsers.put(key,
- new RegisteredUser(Optional.of(value), Optional.empty())));
- return registeredUsers;
- }
-