Class KeyStoreCertProvider
- java.lang.Object
-
- de.xima.fc.mail.impl.encrypt.certprovider.KeyStoreCertProvider
-
- All Implemented Interfaces:
IMailEncryptorCertProvider
public class KeyStoreCertProvider extends Object implements 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
Constructors Constructor Description KeyStoreCertProvider()
Creates 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description X509Certificate
findCertificateForModel(CertRequestDataModel model)
Method to determine the certificate of an given mail-address
-
-
-
Constructor Detail
-
KeyStoreCertProvider
public KeyStoreCertProvider() throws Exception
Creates a provider with a default keystore- Throws:
Exception
- on errors while opening or creating the keystore
-
-
Method Detail
-
findCertificateForModel
public X509Certificate findCertificateForModel(CertRequestDataModel model)
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
-
-