org.cert.cc.encryption
Class PartPGPProcessor
java.lang.Object
org.cert.cc.encryption.AbstractProcessor
org.cert.cc.encryption.AbstractPGPProcessor<BodyPart>
org.cert.cc.encryption.PartPGPProcessor
public final class PartPGPProcessor
- extends AbstractPGPProcessor<BodyPart>
PartPGPProcessor converts an encrypted BodyPart
p
into a decrypted BodyPart
© 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 |
PartPGPProcessor
public PartPGPProcessor()
createBodyPart
public BodyPart createBodyPart(BodyPart p)
throws IOException,
MessagingException,
NoSuchProviderException,
PGPException
- Transforms an encrypted
BodyPart
p
into a decrypted BodyPart
- Parameters:
p
- Encrypted BodyPart
data
- Returns:
- Decrypted
BodyPart
- Throws:
IOException
- If unable to create the decrypted data BodyPart
MessagingException
- If unable to create the decrypted data BodyPart
PGPException
- If unable to create the decrypted data BodyPart
NoSuchProviderException
- If unable to create the decrypted data BodyPart
extractData
protected BodyPart extractData(PGPLiteralData data)
throws IOException
- Returns the clear data extracted from the
PGPLiteralData
- Specified by:
extractData
in class AbstractPGPProcessor<BodyPart>
- Parameters:
data
- PGPLiteralData
data
- Returns:
- Clear data
- Throws:
IOException
- If unable to extract the clear data
Copyright © 2012 Carnegie Mellon University