Class PluginMailEncryptionRetVal

    • 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: IPluginMailEncryptionRetVal
        This should return the certificate to be used for encrypting the email. The email is sent to the email address as specified by the IPluginMailEncryptionParams that were passed to the plugin.
        Specified by:
        getCertificate in interface IPluginMailEncryptionRetVal
        Returns:
        X509 Certificate The certificate to be used for sending an encrypted email. May return null if no certificate was found. In this case, other certificate providers are searched for a certificate.