Package org.frankframework.encryption
Class CorePkiUtil
java.lang.Object
org.frankframework.encryption.CorePkiUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic KeyStorecreateKeyStore(HasKeystore keystoreOwner) static KeyStorecreateKeyStore(HasTruststore truststoreOwner) static CertificategetCertificate(HasTruststore truststoreOwner) getExpiringCertificates(KeyStore keystore, TemporalAmount duration) Returns a list of certificate aliases which are due to expire.static PrivateKeygetPrivateKey(HasKeystore keystoreOwner) static PublicKeygetPublicKey(HasTruststore truststoreOwner) static HasTruststorekeyStoreAsTrustStore(HasKeystore keystoreOwner)
-
Method Details
-
keyStoreAsTrustStore
-
createKeyStore
- Throws:
EncryptionException
-
createKeyStore
- Throws:
EncryptionException
-
getPrivateKey
- Throws:
EncryptionException
-
getPublicKey
- Throws:
EncryptionException
-
getCertificate
- Throws:
EncryptionException
-
getExpiringCertificates
@Nonnull public static List<String> getExpiringCertificates(KeyStore keystore, TemporalAmount duration) throws EncryptionException Returns a list of certificate aliases which are due to expire.- Parameters:
keystore- AKeyStore.duration- Date after which Certificates should be classified as 'due to expire'.- Returns:
- A list with aliases of
Certificates. - Throws:
EncryptionException
-