|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.mailet.GenericMailet org.apache.james.transport.mailets.smime.AbstractSign org.apache.james.transport.mailets.smime.Sign org.apache.james.transport.mailets.smime.SMIMESign
public class SMIMESign
Puts a server-side SMIME signature on a message.
It is a concrete subclass of Sign
, with very few modifications to it,
to specialize for SMIME.
Handles the following init parameters (will comment only the differences from AbstractSign
):
true
.true
.getExplanationText()
).
Constructor Summary | |
---|---|
SMIMESign()
|
Method Summary | |
---|---|
protected java.lang.String[] |
getAllowedInitParameters()
Gets the expected init parameters. |
java.lang.String |
getExplanationText()
If the <explanationText> init parameter is missing
returns the following default explanation template string: |
java.lang.String |
getMailetInfo()
Return a string describing this mailet. |
protected javax.mail.internet.MimeBodyPart |
getWrapperBodyPart(org.apache.mailet.Mail mail)
A text file with the massaged contents of getExplanationText()
is attached to the original message. |
protected void |
initKeyHolderClass()
Initializer for property keyHolderClass. |
protected void |
initPostmasterSigns()
If the <postmasterSigns> init parameter is missing sets it to true. |
protected void |
initRebuildFrom()
If the <rebuildFrom> init parameter is missing sets it to true. |
Methods inherited from class org.apache.james.transport.mailets.smime.AbstractSign |
---|
fromAddressSameAsReverse, getKeyHolder, getKeyHolderClass, getMessageHeaders, getReplacedExplanationText, getSignerName, init, initDebug, initExplanationText, initKeyHolder, initSignerName, isDebug, isOkToSign, isPostmasterSigns, isRebuildFrom, service, setDebug, setExplanationText, setKeyHolder, setKeyHolderClass, setPostmasterSigns, setRebuildFrom, setSignerName |
Methods inherited from class org.apache.mailet.GenericMailet |
---|
arrayToString, checkInitParameters, destroy, getInitParameter, getInitParameter, getInitParameterNames, getMailetConfig, getMailetContext, getMailetName, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SMIMESign()
Method Detail |
---|
public java.lang.String getMailetInfo()
getMailetInfo
in interface org.apache.mailet.Mailet
getMailetInfo
in class Sign
protected java.lang.String[] getAllowedInitParameters()
AbstractSign
getAllowedInitParameters
in class Sign
public java.lang.String getExplanationText()
<explanationText>
init parameter is missing
returns the following default explanation template string:
The message this file is attached to has been signed on the server by
"[signerName]" <[signerAddress]>
to certify that the sender is known and truly has the following address (reverse-path):
[reversePath]
and that the original message has the following message headers:
[headers]
The signature envelopes this attachment too.
Please check the signature integrity.
"[signerName]" <[signerAddress]>
getExplanationText
in class Sign
protected void initKeyHolderClass() throws javax.mail.MessagingException
SMIMEKeyHolder
.
initKeyHolderClass
in class AbstractSign
javax.mail.MessagingException
protected void initPostmasterSigns()
<postmasterSigns>
init parameter is missing sets it to true.
initPostmasterSigns
in class Sign
protected void initRebuildFrom() throws javax.mail.MessagingException
<rebuildFrom>
init parameter is missing sets it to true.
initRebuildFrom
in class Sign
javax.mail.MessagingException
protected javax.mail.internet.MimeBodyPart getWrapperBodyPart(org.apache.mailet.Mail mail) throws javax.mail.MessagingException, java.io.IOException
getExplanationText()
is attached to the original message.
getWrapperBodyPart
in class Sign
mail
- The mail to massage.
javax.mail.MessagingException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |