org.cert.cc.encryption
Class PartPGPProcessor

java.lang.Object
  extended by org.cert.cc.encryption.AbstractProcessor
      extended by org.cert.cc.encryption.AbstractPGPProcessor<BodyPart>
          extended by 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

Field Summary
 
Fields inherited from class org.cert.cc.encryption.AbstractProcessor
log
 
Constructor Summary
PartPGPProcessor()
           
 
Method Summary
 BodyPart createBodyPart(BodyPart p)
          Transforms an encrypted BodyPart p into a decrypted BodyPart
protected  BodyPart 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

PartPGPProcessor

public PartPGPProcessor()
Method Detail

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