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