Package org.frankframework.encryption
Class CorePkiUtil
java.lang.Object
org.frankframework.encryption.CorePkiUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic KeyStore
createKeyStore
(HasKeystore keystoreOwner) static KeyStore
createKeyStore
(HasTruststore truststoreOwner) static Certificate
getCertificate
(HasTruststore truststoreOwner) getExpiringCertificates
(KeyStore keystore, TemporalAmount duration) Returns a list of certificate aliases which are due to expire.static PrivateKey
getPrivateKey
(HasKeystore keystoreOwner) static PublicKey
getPublicKey
(HasTruststore truststoreOwner) static HasTruststore
keyStoreAsTrustStore
(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
-