final LoadedKey <KeyStore.PrivateKeyEntry> aLK = KeyStoreHelper.loadPrivateKey (aLKS.getKeyStore (), sKeyStorePath, sKeyAlias,
PDClientConfiguration.getTrustStorePath (), PDClientConfiguration.getTrustStorePassword ()); final KeyStore aTrustStore = aLoadedTrustStore.getKeyStore (); .loadKeyMaterial (aLoadedKeyStore.getKeyStore (), PDClientConfiguration.getKeyStoreKeyPassword (), (aAliases, aSocket) -> {
private void _loadCertificates () { // Reset every time _setCertValid (false); _loadError (null, null); m_aTrustStore = null; // Load the trust store final LoadedKeyStore aTrustStoreLoading = KeyStoreHelper.loadKeyStore (SMPServerConfiguration.getTrustStoreType (), SMPServerConfiguration.getTrustStorePath (), SMPServerConfiguration.getTrustStorePassword ()); if (aTrustStoreLoading.isFailure ()) { _loadError (aTrustStoreLoading.getError (), PeppolKeyStoreHelper.getLoadError (aTrustStoreLoading)); throw new InitializationException (s_sInitError); } m_aTrustStore = aTrustStoreLoading.getKeyStore (); LOGGER.info ("SMPTrustManager successfully initialized with truststore '" + SMPServerConfiguration.getTrustStorePath () + "'"); _setCertValid (true); }
private void _loadCertificates () { // Reset every time _setCertValid (false); _loadError (null, null); m_aTrustStore = null; // Load the trust store final LoadedKeyStore aTrustStoreLoading = KeyStoreHelper.loadKeyStore (SMPServerConfiguration.getTrustStoreType (), SMPServerConfiguration.getTrustStorePath (), SMPServerConfiguration.getTrustStorePassword ()); if (aTrustStoreLoading.isFailure ()) { _loadError (aTrustStoreLoading.getError (), PeppolKeyStoreHelper.getLoadError (aTrustStoreLoading)); throw new InitializationException (s_sInitError); } m_aTrustStore = aTrustStoreLoading.getKeyStore (); LOGGER.info ("SMPTrustManager successfully initialized with truststore '" + SMPServerConfiguration.getTrustStorePath () + "'"); _setCertValid (true); }
throw new InitializationException (s_sInitError); m_aKeyStore = aLoadedKeyStore.getKeyStore ();
throw new InitializationException (s_sInitError); m_aKeyStore = aLoadedKeyStore.getKeyStore ();
final KeyStore aKeyStore = aKeyStoreLR.getKeyStore (); final String sKeyStoreAlias = PDClientConfiguration.getKeyStoreKeyAlias (); final LoadedKey <KeyStore.PrivateKeyEntry> aKeyLoading = KeyStoreHelper.loadPrivateKey (aKeyStore,
final KeyStore aKeyStore = aKeyStoreLR.getKeyStore (); final String sKeyStoreAlias = PDClientConfiguration.getKeyStoreKeyAlias (); final LoadedKey <KeyStore.PrivateKeyEntry> aKeyLoading = KeyStoreHelper.loadPrivateKey (aKeyStore,