org.cert.cc.description
Class PGPEncryptedEmailBodyProcessor

java.lang.Object
  extended by org.cert.cc.encryption.AbstractProcessor
      extended by org.cert.cc.encryption.AbstractPGPProcessor<String>
          extended by org.cert.cc.description.PGPEncryptedEmailBodyProcessor
All Implemented Interfaces:
DescriptionProcessor

public final class PGPEncryptedEmailBodyProcessor
extends AbstractPGPProcessor<String>
implements DescriptionProcessor

PGPEncryptedEmailBodyProcessor handles any PGP encrypted email message.

© 2009 Carnegie Mellon University

Author:
Steve Scholnick

Field Summary
 
Fields inherited from class org.cert.cc.encryption.AbstractProcessor
log
 
Constructor Summary
PGPEncryptedEmailBodyProcessor()
           
 
Method Summary
protected  String extractData(PGPLiteralData data)
          Returns the clear data extracted from the PGPLiteralData
 String generateDescription(Message message)
          Creates and returns the description
 
Methods inherited from class org.cert.cc.encryption.AbstractPGPProcessor
process
 
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

PGPEncryptedEmailBodyProcessor

public PGPEncryptedEmailBodyProcessor()
Method Detail

extractData

protected String extractData(PGPLiteralData data)
                      throws IOException
Returns the clear data extracted from the PGPLiteralData

Specified by:
extractData in class AbstractPGPProcessor<String>
Parameters:
data - PGPLiteralData data
Returns:
Clear data
Throws:
IOException - If unable to extract the clear data

generateDescription

public String generateDescription(Message message)
                           throws MessagingException
Creates and returns the description

Specified by:
generateDescription in interface DescriptionProcessor
Parameters:
message - Email Message
Returns:
Clear text description
Throws:
MessagingException - If unable to generate the description


Copyright © 2012 Carnegie Mellon University