org.cert.cc.encryption
Class AbstractSMIMEProcessor<R>

java.lang.Object
  extended by org.cert.cc.encryption.AbstractProcessor
      extended by org.cert.cc.encryption.AbstractSMIMEProcessor<R>
Direct Known Subclasses:
MessageSMIMEProcessor, SMIMEEncrytpedProcessor

public abstract class AbstractSMIMEProcessor<R>
extends AbstractProcessor

AbstractSMIMEProcessor is the base class for S/MIME decryption.

© 2009 Carnegie Mellon University

Author:
Steve Scholnick

Field Summary
 
Fields inherited from class org.cert.cc.encryption.AbstractProcessor
log
 
Constructor Summary
AbstractSMIMEProcessor()
           
 
Method Summary
protected abstract  R extractData(MimeBodyPart part)
          Returns the extracted data extracted from the MimeBodyPart
 R process(Message message)
          Transforms raw encrypted data (a Message object) into generic object specified by a sub-class.
 
Methods inherited from class org.cert.cc.encryption.AbstractProcessor
getApplicationProperty, getPassword, getSecretsProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSMIMEProcessor

public AbstractSMIMEProcessor()
Method Detail

process

public R process(Message message)
          throws MessagingException
Transforms raw encrypted data (a Message object) into generic object specified by a sub-class.

Parameters:
message - S/MIME encrypted email message
Returns:
Generic object (of type R)
Throws:
SMIMEException - If unable to decrypt the data
MessagingException - If unable to decrypt the data

extractData

protected abstract R extractData(MimeBodyPart part)
                          throws IOException,
                                 MessagingException
Returns the extracted data extracted from the MimeBodyPart

Parameters:
part - MimeBodyPart data
Returns:
Extracted dat
Throws:
IOException - If unable to extract the data
MessagingException


Copyright © 2012 Carnegie Mellon University