org.apache.james.mailet.crypto.mailet
Class SMIMEDecrypt

java.lang.Object
  extended byorg.apache.mailet.base.GenericMailet
      extended byorg.apache.james.mailet.crypto.mailet.SMIMEDecrypt
All Implemented Interfaces:
org.apache.mailet.Mailet, org.apache.mailet.MailetConfig

public class SMIMEDecrypt
extends org.apache.mailet.base.GenericMailet

This mailet decrypts a s/mime encrypted message. It takes as input an encrypted message and it tries to dechiper it using the key specified in its configuration. If the decryption is successful the mail will be changed and it will contain the decrypted message. The mail attribute org.apache.james.SMIMEDecrypt will contain the public certificate of the key used in the process. The configuration parameters of this mailet are summarized below. The firsts define the keystore where the key that will be used to decrypt messages is saved.

The other parameters define which private key have to be used. (if the store contains more than one key).


Field Summary
protected  java.lang.String mailAttribute
           
 
Constructor Summary
SMIMEDecrypt()
           
 
Method Summary
 void init()
           
 void service(org.apache.mailet.Mail mail)
           
 
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 Detail

mailAttribute

protected java.lang.String mailAttribute
Constructor Detail

SMIMEDecrypt

public SMIMEDecrypt()
Method Detail

init

public void init()
          throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

service

public void service(org.apache.mailet.Mail mail)
             throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException
See Also:
Mailet.service(org.apache.mailet.Mail)


Copyright © 2008-2009 The Apache Software Foundation. All Rights Reserved.