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 mail-encryptor key-provider to determine the certificates by an keystore. If no keystore is given, an default one will be created- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description KeyStoreCertProvider()
Creats an provider with an default keystoreKeyStoreCertProvider(File keyStoreFile, String keyStorePassword)
Creats an 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 dertermine the certificate of an given mail-address
-
-
-
Constructor Detail
-
KeyStoreCertProvider
public KeyStoreCertProvider() throws Exception
Creats an provider with an 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 dertermine the certificate of an given mail-address- Specified by:
findCertificateForModel
in interfaceIMailEncryptorCertProvider
- Returns:
X509Certificate
the certificate ornull
is none was found
-
-