Package org.frankframework.encryption
Class PkiUtil
java.lang.Object
org.frankframework.encryption.PkiUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic KeyManager[]
createKeyManagers
(KeyStore keystore, String password, String algorithm) static KeyStore
createKeyStore
(URL url, String password, KeystoreType keystoreType, String purpose) static TrustManager[]
createTrustManagers
(KeyStore keystore, String algorithm) static Certificate
getCertificate
(HasTruststore truststoreOwner, String purpose) static PrivateKey
getPrivateKey
(HasKeystore keystoreOwner, String purpose) static PublicKey
getPublicKey
(HasTruststore truststoreOwner, String purpose) static HasTruststore
keyStoreAsTrustStore
(HasKeystore keystoreOwner)
-
Constructor Details
-
PkiUtil
public PkiUtil()
-
-
Method Details
-
keyStoreAsTrustStore
-
createKeyManagers
public static KeyManager[] createKeyManagers(KeyStore keystore, String password, String algorithm) throws KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException -
createTrustManagers
public static TrustManager[] createTrustManagers(KeyStore keystore, String algorithm) throws KeyStoreException, NoSuchAlgorithmException -
createKeyStore
public static KeyStore createKeyStore(URL url, String password, KeystoreType keystoreType, String purpose) throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException -
getPrivateKey
public static PrivateKey getPrivateKey(HasKeystore keystoreOwner, String purpose) throws EncryptionException - Throws:
EncryptionException
-
getPublicKey
public static PublicKey getPublicKey(HasTruststore truststoreOwner, String purpose) throws EncryptionException - Throws:
EncryptionException
-
getCertificate
public static Certificate getCertificate(HasTruststore truststoreOwner, String purpose) throws EncryptionException - Throws:
EncryptionException
-