From 0a6b62c87e7bda1932e5eb9f79dccb4718f779ee Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Thu, 1 Dec 2022 14:01:27 +0100 Subject: style(matching): fix code-style issue in ERnP client --- .../auth/eidas/v2/clients/ernp/ErnpRestClient.java | 25 +++++++++++----------- 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'modules') 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 persons, @Nonnull String citizenCountryCode, String processStepFiendlyname) throws EaafAuthenticationException { - + // process ERnP response and check state of entities List 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 fullErnpResults; /** * Build reduced ERnP register result. * - *

New ERnP entries are allowed by default

+ *

+ * New ERnP entries are allowed by default + *

* * @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 true to allow new ERnP entries by user decision, - * otherwise false + * @param list {@link List} of ERnP entities + * @param allowNewErnpEntries true to allow new ERnP entries by + * user decision, otherwise false */ public ErnpRegisterResult(List list, boolean allowNewErnpEntries) { fullErnpResults = list; allowErnpEntryByUser = allowNewErnpEntries; } - - + /** * Get all active ERnP results. * -- cgit v1.2.3