Interface IMailSecurityCertProvider
- All Known Implementing Classes:
FCCertificateCertProvider, KeyStoreCertProvider, PluginCertProvider
public interface IMailSecurityCertProvider
Interface for certificate-providers for the mail-encryption
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionfindEncryptionCertificate(String emailAddress, Long clientId, IUser user) Finds the certificate for email-encryption for the given email address within the given client.findSignatureCertificateBundle(String emailAddress, Long clientId, IUser user) Finds the certificate bundle containing the private key for email-signing for the given email address within the given client.
-
Method Details
-
findEncryptionCertificate
Finds the certificate for email-encryption for the given email address within the given client.- Parameters:
emailAddress- the email address to find the certificate forclientId- the ID of the client to find the certificate inuser- the user requesting the certificate- Returns:
- an
Optionalcontaining the foundX509Certificate, or empty if no certificate was found for encrypting mail to the given email address
-
findSignatureCertificateBundle
Optional<CertificateBundle> findSignatureCertificateBundle(String emailAddress, Long clientId, IUser user) Finds the certificate bundle containing the private key for email-signing for the given email address within the given client.- Parameters:
emailAddress- the email address to find the private key forclientId- the ID of the client to find the private key inuser- the user requesting the private key- Returns:
- an
Optionalcontaining the foundCertificateBundle(with private key), or empty if no private key was found for signing mail from the given email address
-