sKeyAlias, sKeyPassword.toCharArray ()); if (aLK.isFailure ()) throw new IllegalStateException (aLK.getErrorText (TextHelper.EN)); m_aCertificateChain = aLK.getKeyEntry ().getCertificateChain (); m_aX509Certificate = (X509Certificate) aLK.getKeyEntry ().getCertificate (); m_aKeyPair = new KeyPair (m_aX509Certificate.getPublicKey (), aLK.getKeyEntry ().getPrivateKey ());
return new LoadedKey <> (null, EKeyStoreLoadError.KEY_NO_ALIAS, sKeyStorePath); return new LoadedKey <> (null, EKeyStoreLoadError.KEY_NO_PASSWORD, sKeyStoreKeyAlias, sKeyStorePath); return new LoadedKey <> (null, EKeyStoreLoadError.KEY_INVALID_ALIAS, sKeyStoreKeyAlias, sKeyStorePath); return new LoadedKey <> (null, EKeyStoreLoadError.KEY_INVALID_TYPE, sKeyStoreKeyAlias, return new LoadedKey <> (null, EKeyStoreLoadError.KEY_INVALID_PASSWORD, sKeyStoreKeyAlias, return new LoadedKey <> (null, EKeyStoreLoadError.KEY_LOAD_ERROR, sKeyStoreKeyAlias, return new LoadedKey <> (aKeyEntry, null);
SMPServerConfiguration.getKeyStoreKeyAlias (), SMPServerConfiguration.getKeyStoreKeyPassword ()); if (aLoadedKey.isFailure ()) _loadError (aLoadedKey.getError (), PeppolKeyStoreHelper.getLoadError (aLoadedKey)); throw new InitializationException (s_sInitError); m_aKeyEntry = aLoadedKey.getKeyEntry (); LOGGER.info ("SMPKeyManager successfully initialized with keystore '" + SMPServerConfiguration.getKeyStorePath () +
sKeyStoreAlias, PDClientConfiguration.getKeyStoreKeyPassword ()); if (aKeyLoading.isFailure ()) final PrivateKeyEntry aKeyEntry = aKeyLoading.getKeyEntry (); final Certificate [] aChain = aKeyEntry.getCertificateChain ();
@Nullable public static String getLoadError (@Nonnull final LoadedKey <?> aLK) { return aLK == null ? null : aLK.getErrorText (TextHelper.EN); } }
SMPServerConfiguration.getKeyStoreKeyAlias (), SMPServerConfiguration.getKeyStoreKeyPassword ()); if (aLoadedKey.isFailure ()) _loadError (aLoadedKey.getError (), PeppolKeyStoreHelper.getLoadError (aLoadedKey)); throw new InitializationException (s_sInitError); m_aKeyEntry = aLoadedKey.getKeyEntry (); LOGGER.info ("SMPKeyManager successfully initialized with keystore '" + SMPServerConfiguration.getKeyStorePath () +
sKeyStoreAlias, PDClientConfiguration.getKeyStoreKeyPassword ()); if (aKeyLoading.isFailure ()) final PrivateKeyEntry aKeyEntry = aKeyLoading.getKeyEntry (); final Certificate [] aChain = aKeyEntry.getCertificateChain ();