Class KeyStoreCertProvider
java.lang.Object
de.xima.fc.mail.impl.encrypt.certprovider.KeyStoreCertProvider
- All Implemented Interfaces:
IMailEncryptorCertProvider
An email-encryptor key-provider to determine the certificates by a keystore. If no keystore is given, a default one
will be created.
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a provider with a default keystoreKeyStoreCertProvider
(File keyStoreFile, String keyStorePassword) Creates a provider with the given keystore-config or default if the config is not valid -
Method Summary
Modifier and TypeMethodDescriptionMethod to determine the certificate of an given mail-address
-
Constructor Details
-
KeyStoreCertProvider
Creates a provider with a default keystore- Throws:
Exception
- on errors while opening or creating the keystore
-
KeyStoreCertProvider
Creates a provider with the given keystore-config or default if the config is not valid
-
-
Method Details
-
findCertificateForModel
Description copied from interface:IMailEncryptorCertProvider
Method to determine the certificate of an given mail-address- Specified by:
findCertificateForModel
in interfaceIMailEncryptorCertProvider
- Parameters:
model
- containing mail and client- Returns:
X509Certificate
the certificate ornull
is none was found
-