org.cert.cc.encryption
Class AbstractSMIMEProcessor<R>
java.lang.Object
org.cert.cc.encryption.AbstractProcessor
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSMIMEProcessor
public AbstractSMIMEProcessor()
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