From be1c69d66fdf98658a3183e346401be9ad4d4cc3 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Mon, 20 Jan 2020 14:58:29 +0100 Subject: update maven repository --- id/moa-spss-container/pom.xml | 415 ++++++++++----------- .../id/auth/builder/AuthenticationDataBuilder.java | 41 +- 2 files changed, 242 insertions(+), 214 deletions(-) (limited to 'id') diff --git a/id/moa-spss-container/pom.xml b/id/moa-spss-container/pom.xml index fb27ca174..75f8d1d35 100644 --- a/id/moa-spss-container/pom.xml +++ b/id/moa-spss-container/pom.xml @@ -1,4 +1,7 @@ - + + 4.0.0 MOA @@ -9,226 +12,216 @@ moa-spss-container MOA-SPSS-Container-for-MOA-ID This module holds MOA-SPSS and all required library - + - ${basedir}/../../repository - - + ${basedir}/../../repository + + - - MOA - MOA Dependencies - - true - ignore - - default - file://${repositoryPath} - + + MOA + MOA Dependencies + + true + ignore + + default + file://${repositoryPath} + + + MOA_web + MOA Dependencies weblocation + + true + ignore + + default + https://git.egiz.gv.at/EAAF-Components/plain/eaaf_modules/eaaf_module_moa-sig/repository + - + - - - org.apache.maven.plugins + + + org.apache.maven.plugins maven-compiler-plugin - - ${basedir}/../../repository/MOA/spss/ext_libs/*.jar - - + + ${basedir}/../../repository/MOA/spss/ext_libs/*.jar + + - - + + - + - - MOA.spss.server - moa-sig-lib - 3.1.2 - - - commons-logging - commons-logging - - - * - axis - - - - - - - - MOA.spss - common - 3.1.2 - - - MOA.spss - tsl_lib - 2.0.2 - - - iaik.prod - iaik_cms - 5.1 - - - iaik.prod - iaik_cpades - 2.5.1_moa - - - iaik.prod - iaik_cpxlevel - 0.9_moa - - - iaik.prod - iaik_eccelerate - 5.01 - - - - iaik.prod - iaik_eccelerate_addon - 5.01 - - - - iaik.prod - iaik_eccelerate_cms - 5.01 - - - iaik.prod - iaik_jce_full - - - - iaik.prod - iaik_jsse - 4.4 - - - iaik.prod + + MOA.spss.server + moa-sig-lib + 3.1.2 + + + commons-logging + commons-logging + + + * + axis + + + + + + + + MOA.spss + common + 3.1.2 + + + MOA.spss + tsl_lib + 2.0.2 + + + iaik.prod + iaik_cms + 5.1 + + + iaik.prod + iaik_cpades + 2.5.1_moa + + + iaik.prod + iaik_cpxlevel + 0.9_moa + + + iaik.prod + iaik_eccelerate + 5.01 + + + + iaik.prod + iaik_eccelerate_addon + 5.01 + + + + iaik.prod + iaik_eccelerate_cms + 5.01 + + + iaik.prod + iaik_jce_full + + + + iaik.prod + iaik_jsse + 4.4 + + + iaik.prod iaik_moa 2.06 - - - iaik.prod - iaik_pki_module - 2.01_moa - - - iaik.prod - iaik_sva - 1.0.2_moa - - - iaik.prod - iaik_tsp - 2.32_eval - - - iaik.prod - iaik_util - 0.23 - - - iaik.prod - iaik_xades - 2.13_moa - - - iaik.prod - iaik_xsect - 2.13_moa - - - - - - - javax.mail - mail - - - junit - junit - - - org.postgresql - postgresql - - - - iaik.prod - iaik_Pkcs11Provider - runtime - - - iaik.prod - iaik_Pkcs11Wrapper - runtime - - - iaik.prod - iaik_Pkcs11Wrapper - win32 - dll - runtime - true - - - - - javax.xml.bind - jaxb-api - - - com.sun.xml.bind - jaxb-impl - - - com.sun.xml.bind - jaxb-core - - - - - - + + + iaik.prod + iaik_pki_module + 2.01_moa + + + iaik.prod + iaik_sva + 1.0.2_moa + + + iaik.prod + iaik_tsp + 2.32_eval + + + iaik.prod + iaik_util + 0.23 + + + iaik.prod + iaik_xades + 2.13_moa + + + iaik.prod + iaik_xsect + 2.13_moa + + + + + + + javax.mail + mail + + + junit + junit + + + org.postgresql + postgresql + + + + iaik.prod + iaik_Pkcs11Provider + runtime + + + iaik.prod + iaik_Pkcs11Wrapper + runtime + + + iaik.prod + iaik_Pkcs11Wrapper + win32 + dll + runtime + true + + + + + javax.xml.bind + jaxb-api + + + com.sun.xml.bind + jaxb-impl + + + com.sun.xml.bind + jaxb-core + + + + + + - + \ No newline at end of file diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/AuthenticationDataBuilder.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/AuthenticationDataBuilder.java index 6a01bd1fb..cdb0dae98 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/AuthenticationDataBuilder.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/AuthenticationDataBuilder.java @@ -558,6 +558,10 @@ public class AuthenticationDataBuilder extends AbstractAuthenticationDataBuilder Logger.info("Post-Processing for Austrian eID finished"); } + + injectNewEidAttributes(authData, session); + + //#################################################################### //copy all generic authentication information, which are not processed before to authData Iterator copyInterator = includedToGenericAuthData.iterator(); @@ -582,7 +586,33 @@ public class AuthenticationDataBuilder extends AbstractAuthenticationDataBuilder } - /** + private void injectNewEidAttributes(MOAAuthenticationData authData, IAuthenticationSession session) { + try { + String onlineIdl = session.getGenericDataFromSession(PVPConstants.EID_E_ID_TOKEN_NAME, String.class); + if (StringUtils.isNoneEmpty(onlineIdl)) { + authData.seteIDToken(Base64Utils.decode(onlineIdl, true)); + } + + } catch (IOException e) { + Logger.warn("Attribute: " + PVPConstants.EID_E_ID_TOKEN_NAME + " found, but injection failed: " + e.getMessage()); + + } + +// try { +// String eidStatusLevel = session.getGenericDataFromSession(PVPConstants.EID_IDENTITY_STATUS_LEVEL_NAME, String.class); +// if (StringUtils.isNotEmpty(eidStatusLevel)) { +// authData.setEidStatus(PVPConstants.EID_IDENTITY_STATUS_LEVEL_VALUES.); +// } +// } catch (Exception e) { +// Logger.warn("Attribute: " + PVPConstants.EID_IDENTITY_STATUS_LEVEL_NAME + " found, but injection failed: " + e.getMessage()); +// +// } + + } + + + + /** * @param authData * @param notValidbPK * @param notValidbPKType @@ -894,7 +924,12 @@ public class AuthenticationDataBuilder extends AbstractAuthenticationDataBuilder } } catch (Exception e) { - Logger.warn("Foreign bPK generation FAILED for sector: " + foreignSector, e); + Logger.info("Foreign bPK generation FAILED for sector: " + foreignSector); + if (Logger.isDebugEnabled()) { + Logger.warn("Details: ", e); + + } + } @@ -928,7 +963,7 @@ public class AuthenticationDataBuilder extends AbstractAuthenticationDataBuilder } } catch (Exception e) { - Logger.warn("Can NOT generate additional bPKs. Reason: " + e.getMessage()); + Logger.info("Can NOT generate additional bPKs. Reason: " + e.getMessage()); if (Logger.isDebugEnabled()) { Logger.warn("StackTrace: ", e); -- cgit v1.2.3