Class PluginMailEncryptionRetVal
- java.lang.Object
 - 
- de.xima.fc.plugin.models.retval.mail.PluginMailEncryptionRetVal
 
 
- 
- All Implemented Interfaces:
 IPluginReturnValue,IPluginMailEncryptionRetVal
public class PluginMailEncryptionRetVal extends Object implements IPluginMailEncryptionRetVal
A POJO data class that for the return value of the mail encryption plugin. An instance of this class holds the certificate provided by the plugin.- Author:
 - XIMA MEDIA GmbH
 
 
- 
- 
Constructor Summary
Constructors Constructor Description PluginMailEncryptionRetVal(X509Certificate certificate) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description X509CertificategetCertificate()This should return the certificate to be used for encrypting the email. 
 - 
 
- 
- 
Constructor Detail
- 
PluginMailEncryptionRetVal
public PluginMailEncryptionRetVal(X509Certificate certificate)
- Parameters:
 certificate- The certificate to be returned by the plugin.
 
 - 
 
- 
Method Detail
- 
getCertificate
public X509Certificate getCertificate()
Description copied from interface:IPluginMailEncryptionRetValThis should return the certificate to be used for encrypting the email. The email is sent to the email address as specified by theIPluginMailEncryptionParamsthat were passed to the plugin.- Specified by:
 getCertificatein interfaceIPluginMailEncryptionRetVal- Returns:
 - X509 Certificate The certificate to be used for sending an encrypted email. May return 
nullif no certificate was found. In this case, other certificate providers are searched for a certificate. 
 
 - 
 
 -