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
    Modifier and Type
    Field
    Description
    static final String
     
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    service(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • DKIMVerify

      public DKIMVerify()
  • Method Details

    • 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<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.MessagingException
      org.apache.james.jdkim.exceptions.FailException