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.
Methods inherited from class org.apache.mailet.base.GenericMailet |
arrayToString, checkInitParameters, destroy, getInitParameter, getInitParameter, getInitParameter, getInitParameterNames, getMailetConfig, getMailetContext, getMailetInfo, getMailetName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DKIM_AUTH_RESULT_ATTRIBUTE
public static final String DKIM_AUTH_RESULT_ATTRIBUTE
- See Also:
- Constant Field Values
verifier
protected DKIMVerifier verifier
DKIMVerify
public DKIMVerify()
init
public void init()
throws javax.mail.MessagingException
- Overrides:
init
in class org.apache.mailet.base.GenericMailet
- Throws:
javax.mail.MessagingException
service
public void service(org.apache.mailet.Mail mail)
throws javax.mail.MessagingException
- Specified by:
service
in interface org.apache.mailet.Mailet
- Specified by:
service
in class org.apache.mailet.base.GenericMailet
- Throws:
javax.mail.MessagingException
verify
protected static List<SignatureRecord> verify(DKIMVerifier verifier,
javax.mail.internet.MimeMessage message,
boolean forceCRLF)
throws javax.mail.MessagingException,
FailException
- Throws:
javax.mail.MessagingException
FailException
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.