diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2020-11-11 11:35:27 +0100 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2020-11-11 11:35:27 +0100 |
commit | b04c31afa0213048367ee6e4eec4fb52dfd59915 (patch) | |
tree | fe04cdcaa3e96cea2d3e31753b4e49692db1da8f /eidas_modules/authmodule-eIDAS-v2 | |
parent | 23ff9db88aa5d6065546dcfe8593822997597137 (diff) | |
download | National_eIDAS_Gateway-b04c31afa0213048367ee6e4eec4fb52dfd59915.tar.gz National_eIDAS_Gateway-b04c31afa0213048367ee6e4eec4fb52dfd59915.tar.bz2 National_eIDAS_Gateway-b04c31afa0213048367ee6e4eec4fb52dfd59915.zip |
verify on start-up, if AuthBlock signing-key is accessable
Diffstat (limited to 'eidas_modules/authmodule-eIDAS-v2')
-rw-r--r-- | eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/service/AuthBlockSigningService.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/service/AuthBlockSigningService.java b/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/service/AuthBlockSigningService.java index 30d255b9..cb96b0a0 100644 --- a/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/service/AuthBlockSigningService.java +++ b/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/service/AuthBlockSigningService.java @@ -124,6 +124,10 @@ public class AuthBlockSigningService { //build new KeyStore based on configuration keyStore = keyStoreFactory.buildNewKeyStore(keyStoreConfiguration); + //check if Key is accessable + EaafKeyStoreUtils.getPrivateKeyAndCertificates( + keyStore.getFirst(), getKeyAlias(), getKeyPassword(), true, KEYSTORE_FRIENDLYNAME); + log.info("AuthBlock signing-service successful initialized"); } |