@Test public void getDefaultPrivateKeyUsingDefaultPassword() { PrivateKey key = amKeyProvider.getPrivateKey(DEFAULT_PRIVATE_KEY_ALIAS); Assert.assertNotNull(key); }
public java.security.PrivateKey getPrivateKey (String certAlias) { java.security.PrivateKey key = null; try { key = (PrivateKey) ks.getKey(certAlias, privateKeyPass.toCharArray()); } catch (KeyStoreException e) { logger.error(e.getMessage()); } catch (NoSuchAlgorithmException e) { logger.error(e.getMessage()); } catch (UnrecoverableKeyException e) { logger.error(e.getMessage()); } return key; }
AMKeyProvider implements KeyProvider { public java.security.PrivateKey getPrivateKey (String certAlias) { java.security.PrivateKey key = null; try { key = (PrivateKey) ks.getKey(certAlias, privateKeyPass.toCharArray()); } catch (KeyStoreException e) { logger.error(e.getMessage()); } catch (NoSuchAlgorithmException e) { logger.error(e.getMessage()); } catch (UnrecoverableKeyException e) { logger.error(e.getMessage()); } return key; } }
AMKeyProvider implements KeyProvider { public java.security.PrivateKey getPrivateKey (String certAlias) { java.security.PrivateKey key = null; try { key = (PrivateKey) ks.getKey(certAlias, privateKeyPass.toCharArray()); } catch (KeyStoreException e) { logger.error(e.getMessage()); } catch (NoSuchAlgorithmException e) { logger.error(e.getMessage()); } catch (UnrecoverableKeyException e) { logger.error(e.getMessage()); } return key; } AMKeyProvider();  AMKeyProvider(
            String keyStoreFilePropName,String keyStorePassFilePropName,
            String keyStoreTypePropName, String privateKeyPassFilePropName);  AMKeyProvider( boolean alreadyResolved,
            String keyStoreFile,String keyStorePass,
            String keyStoreType, String privateKeyPass); }
AMKeyProvider implements KeyProvider { public java.security.PrivateKey getPrivateKey (String certAlias) { java.security.PrivateKey key = null; try { key = (PrivateKey) ks.getKey(certAlias, privateKeyPass.toCharArray()); } catch (KeyStoreException e) { logger.error(e.getMessage()); } catch (NoSuchAlgorithmException e) { logger.error(e.getMessage()); } catch (UnrecoverableKeyException e) { logger.error(e.getMessage()); } return key; } AMKeyProvider();  AMKeyProvider(
            String keyStoreFilePropName,String keyStorePassFilePropName,
            String keyStoreTypePropName, String privateKeyPassFilePropName);  AMKeyProvider( boolean alreadyResolved,
            String keyStoreFile,String keyStorePass,
            String keyStoreType, String privateKeyPass); static String decodePassword(String password); void setLogger(Debug logger); void setKey(String storepass, String keypass); java.security.cert.X509Certificate getX509Certificate(
            String certAlias); java.security.PublicKey getPublicKey(String keyAlias); java.security.PrivateKey getPrivateKey(String certAlias); PrivateKey getPrivateKey(String certAlias, String encryptedKeyPass); String getCertificateAlias(Certificate cert); char[] getKeystorePass(); String getPrivateKeyPass(); String getKeystoreType(); String getKeystoreFilePath(); KeyStore getKeyStore(); void setCertificateEntry(String certAlias, Certificate cert); Certificate getCertificate(String certAlias); void store(); Certificate getCertificate(
            java.security.PublicKey publicKey); }
AMKeyProvider implements KeyProvider { public java.security.PrivateKey getPrivateKey (String certAlias) { java.security.PrivateKey key = null; try { key = (PrivateKey) ks.getKey(certAlias, privateKeyPass.toCharArray()); } catch (KeyStoreException e) { logger.error(e.getMessage()); } catch (NoSuchAlgorithmException e) { logger.error(e.getMessage()); } catch (UnrecoverableKeyException e) { logger.error(e.getMessage()); } return key; } AMKeyProvider();  AMKeyProvider(
            String keyStoreFilePropName,String keyStorePassFilePropName,
            String keyStoreTypePropName, String privateKeyPassFilePropName);  AMKeyProvider( boolean alreadyResolved,
            String keyStoreFile,String keyStorePass,
            String keyStoreType, String privateKeyPass); static String decodePassword(String password); void setLogger(Debug logger); void setKey(String storepass, String keypass); java.security.cert.X509Certificate getX509Certificate(
            String certAlias); java.security.PublicKey getPublicKey(String keyAlias); java.security.PrivateKey getPrivateKey(String certAlias); PrivateKey getPrivateKey(String certAlias, String encryptedKeyPass); String getCertificateAlias(Certificate cert); char[] getKeystorePass(); String getPrivateKeyPass(); String getKeystoreType(); String getKeystoreFilePath(); KeyStore getKeyStore(); void setCertificateEntry(String certAlias, Certificate cert); Certificate getCertificate(String certAlias); void store(); Certificate getCertificate(
            java.security.PublicKey publicKey);  }