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.GenericMailetThis mailet verify a message using the DKIM protocol Sample configuration:
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.<mailet match="All" class="DKIMVerify"> </mailet>
-
-
Field Summary
Fields Modifier and Type Field Description static StringDKIM_AUTH_RESULT_ATTRIBUTEprotected org.apache.james.jdkim.DKIMVerifierverifier
-
Constructor Summary
Constructors Constructor Description DKIMVerify()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit()voidservice(org.apache.mailet.Mail mail)protected static List<org.apache.james.jdkim.api.SignatureRecord>verify(org.apache.james.jdkim.DKIMVerifier verifier, javax.mail.internet.MimeMessage message, boolean forceCRLF)
-
-
-
Field Detail
-
DKIM_AUTH_RESULT_ATTRIBUTE
public static final String DKIM_AUTH_RESULT_ATTRIBUTE
- See Also:
- Constant Field Values
-
verifier
protected org.apache.james.jdkim.DKIMVerifier verifier
-
-
Method Detail
-
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(org.apache.james.jdkim.DKIMVerifier 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
-
-