Class PluginCertProvider

java.lang.Object
de.xima.fc.mail.impl.security.certprovider.PluginCertProvider
All Implemented Interfaces:
IMailSecurityCertProvider

public class PluginCertProvider extends Object implements IMailSecurityCertProvider
A mail security certificate provider that uses plugins to find certificates for email addresses.
Author:
XIMA MEDIA GmbH
  • Constructor Details

    • PluginCertProvider

      public PluginCertProvider()
  • Method Details

    • findEncryptionCertificate

      public Optional<X509Certificate> findEncryptionCertificate(String emailAddress, Long clientId, IUser user)
      Description copied from interface: IMailSecurityCertProvider
      Finds the certificate for email-encryption for the given email address within the given client.
      Specified by:
      findEncryptionCertificate in interface IMailSecurityCertProvider
      Parameters:
      emailAddress - the email address to find the certificate for
      clientId - the ID of the client to find the certificate in
      user - the user requesting the certificate
      Returns:
      an Optional containing the found X509Certificate, or empty if no certificate was found for encrypting mail to the given email address
    • findSignatureCertificateBundle

      public Optional<CertificateBundle> findSignatureCertificateBundle(String emailAddress, Long clientId, IUser user)
      Description copied from interface: IMailSecurityCertProvider
      Finds the certificate bundle containing the private key for email-signing for the given email address within the given client.
      Specified by:
      findSignatureCertificateBundle in interface IMailSecurityCertProvider
      Parameters:
      emailAddress - the email address to find the private key for
      clientId - the ID of the client to find the private key in
      user - the user requesting the private key
      Returns:
      an Optional containing the found CertificateBundle (with private key), or empty if no private key was found for signing mail from the given email address