Package de.mhus.lib.core.mail
Class GpgEncryptedMail
- java.lang.Object
-
- de.mhus.lib.core.mail.GpgEncryptedMail
-
-
Constructor Summary
Constructors Constructor Description GpgEncryptedMail()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GpgEncryptedMailopenKeyStore(File file, String passphrase)voidsend(MailTransport transport)GpgEncryptedMailsetBcc(String... bcc)GpgEncryptedMailsetCc(String... cc)GpgEncryptedMailsetContent(String content)GpgEncryptedMailsetFrom(String from)GpgEncryptedMailsetKeyStore(KeyStore ks)GpgEncryptedMailsetSubject(String subject)GpgEncryptedMailsetTo(String... to)
-
-
-
Method Detail
-
setFrom
public GpgEncryptedMail setFrom(String from)
-
setTo
public GpgEncryptedMail setTo(String... to)
-
setCc
public GpgEncryptedMail setCc(String... cc)
-
setBcc
public GpgEncryptedMail setBcc(String... bcc)
-
setSubject
public GpgEncryptedMail setSubject(String subject)
-
setContent
public GpgEncryptedMail setContent(String content)
-
setKeyStore
public GpgEncryptedMail setKeyStore(KeyStore ks)
-
openKeyStore
public GpgEncryptedMail openKeyStore(File file, String passphrase) throws NoSuchAlgorithmException, CertificateException, FileNotFoundException, IOException, KeyStoreException, NoSuchProviderException
-
send
public void send(MailTransport transport) throws Exception
-
-