org.apache.james.transport.mailets.smime
Class SMIMEDecrypt

java.lang.Object
  extended by org.apache.mailet.GenericMailet
      extended by org.apache.james.transport.mailets.smime.SMIMEDecrypt
All Implemented Interfaces:
org.apache.mailet.Mailet, org.apache.mailet.MailetConfig

public class SMIMEDecrypt
extends org.apache.mailet.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.GenericMailet
arrayToString, checkInitParameters, destroy, 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
Overrides:
init in class org.apache.mailet.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.GenericMailet
Throws:
javax.mail.MessagingException


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