org.cert.cc.encryption
Class MessagePGPProcessor

java.lang.Object
  extended by org.cert.cc.encryption.AbstractProcessor
      extended by org.cert.cc.encryption.AbstractPGPProcessor<Message>
          extended by org.cert.cc.encryption.MessagePGPProcessor

public final class MessagePGPProcessor
extends AbstractPGPProcessor<Message>

MessagePGPProcessor takes a PGP encrypted data and produces a mail Message.

© 2009 Carnegie Mellon University

Author:
Steve Scholnick

Field Summary
 
Fields inherited from class org.cert.cc.encryption.AbstractProcessor
log
 
Constructor Summary
MessagePGPProcessor()
           
 
Method Summary
 Message createMessage(byte[] data)
          Transforms raw data (PGP encoded) into a new Message
protected  Message extractData(PGPLiteralData data)
          Returns the clear data extracted from the PGPLiteralData
 
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

MessagePGPProcessor

public MessagePGPProcessor()
Method Detail

createMessage

public Message createMessage(byte[] data)
                      throws NoSuchProviderException,
                             IOException,
                             PGPException
Transforms raw data (PGP encoded) into a new Message

Parameters:
data - PGP data
Returns:
Newly created Message
Throws:
IOException - If unable to create the new Message
PGPException - If unable to create the new Message
NoSuchProviderException - If unable to create the new Message

extractData

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

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


Copyright © 2012 Carnegie Mellon University