aboutsummaryrefslogtreecommitdiff
path: root/modules/authmodule-eIDAS-v2/src/main/java
diff options
context:
space:
mode:
authorThomas <>2022-12-01 14:01:27 +0100
committerThomas <>2022-12-01 14:01:27 +0100
commit0a6b62c87e7bda1932e5eb9f79dccb4718f779ee (patch)
tree9af544572dff46b4c4ca646303e1eeded2cea9bc /modules/authmodule-eIDAS-v2/src/main/java
parent8878c97d1aa4b8abd95de5aef19e48c40522a18e (diff)
downloadNational_eIDAS_Gateway-0a6b62c87e7bda1932e5eb9f79dccb4718f779ee.tar.gz
National_eIDAS_Gateway-0a6b62c87e7bda1932e5eb9f79dccb4718f779ee.tar.bz2
National_eIDAS_Gateway-0a6b62c87e7bda1932e5eb9f79dccb4718f779ee.zip
style(matching): fix code-style issue in ERnP client
Diffstat (limited to 'modules/authmodule-eIDAS-v2/src/main/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.
*