aboutsummaryrefslogtreecommitdiff
path: root/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/clients/ernp/ErnpRestClient.java
diff options
context:
space:
mode:
Diffstat (limited to 'modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/clients/ernp/ErnpRestClient.java')
-rw-r--r--modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/clients/ernp/ErnpRestClient.java25
1 files changed, 13 insertions, 12 deletions
diff --git a/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/clients/ernp/ErnpRestClient.java b/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/clients/ernp/ErnpRestClient.java
index 0334df0a..a2f87b25 100644
--- a/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/clients/ernp/ErnpRestClient.java
+++ b/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/clients/ernp/ErnpRestClient.java
@@ -414,23 +414,23 @@ public class ErnpRestClient implements IErnpClient {
.collect(Collectors.toList());
log.info("Get #{} ERnP results after post-processing", ernpResult.size());
return ernpResult;
-
+
}
@NonNull
private ErnpRegisterResult processSearchPersonResponseSingleResult(
@Nonnull List<Person> persons,
@Nonnull String citizenCountryCode, String processStepFiendlyname) throws EaafAuthenticationException {
-
+
// process ERnP response and check state of entities
List<ErnpPersonRegisterResult> activePersons = processSearchPersonResponse(persons, citizenCountryCode);
-
+
// check final result
if (activePersons.isEmpty()) {
log.info("ERnP entry, which was selected by matching, looks already closed. "
+ "Disallow new ERnP entries by user selection");
return new ErnpRegisterResult(Collections.emptyList(), false);
-
+
} else if (activePersons.size() > 1) {
log.error("Find more-than-one ERnP entry with search criteria that has to be unique");
throw new WorkflowException(processStepFiendlyname,
@@ -941,7 +941,7 @@ public class ErnpRestClient implements IErnpClient {
.build();
}
-
+
@Getter
public static class ErnpRegisterResult {
@@ -949,13 +949,15 @@ public class ErnpRestClient implements IErnpClient {
* Flag that indicates if ERnP entries by user decision is allowed.
*/
private final boolean allowErnpEntryByUser;
-
+
private final List<ErnpPersonRegisterResult> fullErnpResults;
/**
* Build reduced ERnP register result.
*
- * <p>New ERnP entries are allowed by default</p>
+ * <p>
+ * New ERnP entries are allowed by default
+ * </p>
*
* @param list {@link List} of ERnP entities
*/
@@ -967,17 +969,16 @@ public class ErnpRestClient implements IErnpClient {
/**
* Build reduced ERnP register result.
*
- * @param list {@link List} of ERnP entities
- * @param allowNewErnpEntries <code>true</code> to allow new ERnP entries by user decision,
- * otherwise <code>false</code>
+ * @param list {@link List} of ERnP entities
+ * @param allowNewErnpEntries <code>true</code> to allow new ERnP entries by
+ * user decision, otherwise <code>false</code>
*/
public ErnpRegisterResult(List<ErnpPersonRegisterResult> list, boolean allowNewErnpEntries) {
fullErnpResults = list;
allowErnpEntryByUser = allowNewErnpEntries;
}
-
-
+
/**
* Get all active ERnP results.
*