Package org.apache.james.jdkim.mailets
Class DKIMVerify
java.lang.Object
org.apache.mailet.base.GenericMailet
org.apache.james.jdkim.mailets.DKIMVerify
- All Implemented Interfaces:
org.apache.mailet.Mailet,org.apache.mailet.MailetConfig
public class DKIMVerify
extends org.apache.mailet.base.GenericMailet
This mailet verify a message using the DKIM protocol
Sample configuration:
<mailet match="All" class="DKIMVerify">
</mailet>
By default the mailet assume that Javamail will use LF instead of CRLF
so it will verify the hash using converted newlines. If you don't want this
behaviout then set forceCRLF attribute to false.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()voidservice(org.apache.mailet.Mail mail) protected static List<org.apache.james.jdkim.api.SignatureRecord>verify(DKIMVerifierImpl verifier, javax.mail.internet.MimeMessage message, boolean forceCRLF) Methods inherited from class org.apache.mailet.base.GenericMailet
arrayToString, checkInitParameters, destroy, getInitParameter, getInitParameter, getInitParameter, getInitParameterNames, getMailetConfig, getMailetContext, getMailetInfo, getMailetName, init, log, log
-
Field Details
-
DKIM_AUTH_RESULT_ATTRIBUTE
- See Also:
-
verifier
-
-
Constructor Details
-
DKIMVerify
public DKIMVerify()
-
-
Method Details
-
init
public void init() throws javax.mail.MessagingException- Overrides:
initin classorg.apache.mailet.base.GenericMailet- Throws:
javax.mail.MessagingException
-
service
public void service(org.apache.mailet.Mail mail) throws javax.mail.MessagingException - Specified by:
servicein interfaceorg.apache.mailet.Mailet- Specified by:
servicein classorg.apache.mailet.base.GenericMailet- Throws:
javax.mail.MessagingException
-
verify
protected static List<org.apache.james.jdkim.api.SignatureRecord> verify(DKIMVerifierImpl verifier, javax.mail.internet.MimeMessage message, boolean forceCRLF) throws javax.mail.MessagingException, org.apache.james.jdkim.exceptions.FailException - Throws:
javax.mail.MessagingExceptionorg.apache.james.jdkim.exceptions.FailException
-