public class SimpleCryptoMail extends SimpleMail implements NeedsPostprocessing
Constructor and Description |
---|
SimpleCryptoMail(Session session,
CryptoService cryptoService,
java.lang.String from,
java.lang.String fromName) |
Modifier and Type | Method and Description |
---|---|
void |
doCrypto() |
MimeBodyPart |
getRootBodyPart() |
boolean |
isEncrypted() |
boolean |
isSigned() |
void |
postprocess() |
void |
setContent(java.lang.String text,
SimpleAttachment... attachements) |
void |
setContents(java.lang.String text) |
void |
setHtml(java.lang.String html) |
void |
setHtml(java.lang.String html,
SimpleAttachment... attachements) |
void |
setText(java.lang.String text) |
getSession, setBccRecipients, setCCRecipients, setFrom, setFrom, setSubject, setToRecipients, setToRecipients
public SimpleCryptoMail(Session session, CryptoService cryptoService, java.lang.String from, @Nullable java.lang.String fromName)
public boolean isEncrypted()
public boolean isSigned()
public void setText(java.lang.String text)
setText
in class SimpleMail
public void setHtml(java.lang.String html)
setHtml
in class SimpleMail
public void setHtml(java.lang.String html, SimpleAttachment... attachements)
setHtml
in class SimpleMail
public void setContents(java.lang.String text)
setContents
in class SimpleMail
public void setContent(java.lang.String text, SimpleAttachment... attachements)
setContent
in class SimpleMail
public void doCrypto() throws java.security.cert.CertificateEncodingException, OperatorCreationException, SMIMEException, MessagingException, java.lang.IllegalArgumentException, CMSException, java.io.IOException
java.security.cert.CertificateEncodingException
OperatorCreationException
SMIMEException
MessagingException
java.lang.IllegalArgumentException
CMSException
java.io.IOException
public void postprocess()
postprocess
in interface NeedsPostprocessing
public MimeBodyPart getRootBodyPart()