org.apache.camel.converter.crypto
Class PGPDataFormat

java.lang.Object
  extended by org.apache.camel.converter.crypto.PGPDataFormat
All Implemented Interfaces:
org.apache.camel.spi.DataFormat

public class PGPDataFormat
extends Object
implements org.apache.camel.spi.DataFormat

PGPDataFormat uses the bouncy castle libraries to enable encryption and decryption in the PGP format.


Constructor Summary
PGPDataFormat()
           
 
Method Summary
 boolean getArmored()
           
 boolean getIntegrity()
           
 String getKeyFileName()
           
 String getKeyUserid()
           
 String getPassword()
           
 void marshal(org.apache.camel.Exchange exchange, Object graph, OutputStream outputStream)
           
 void setArmored(boolean armored)
          Sets if the encrypted file should be written in ascii visible text
 void setIntegrity(boolean integrity)
          Whether or not to add a integrity check/sign to the encrypted file
 void setKeyFileName(String keyFileName)
          filename of the keyring that will be used, classpathResource
 void setKeyUserid(String keyUserid)
          Userid of the key used to encrypt/decrypt
 void setPassword(String password)
          Password used to open the private keyring
 Object unmarshal(org.apache.camel.Exchange exchange, InputStream encryptedStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PGPDataFormat

public PGPDataFormat()
Method Detail

marshal

public void marshal(org.apache.camel.Exchange exchange,
                    Object graph,
                    OutputStream outputStream)
             throws Exception
Specified by:
marshal in interface org.apache.camel.spi.DataFormat
Throws:
Exception

unmarshal

public Object unmarshal(org.apache.camel.Exchange exchange,
                        InputStream encryptedStream)
                 throws Exception
Specified by:
unmarshal in interface org.apache.camel.spi.DataFormat
Throws:
Exception

setArmored

public void setArmored(boolean armored)
Sets if the encrypted file should be written in ascii visible text


getArmored

public boolean getArmored()

setIntegrity

public void setIntegrity(boolean integrity)
Whether or not to add a integrity check/sign to the encrypted file


getIntegrity

public boolean getIntegrity()

setKeyUserid

public void setKeyUserid(String keyUserid)
Userid of the key used to encrypt/decrypt


getKeyUserid

public String getKeyUserid()

setKeyFileName

public void setKeyFileName(String keyFileName)
filename of the keyring that will be used, classpathResource


getKeyFileName

public String getKeyFileName()

setPassword

public void setPassword(String password)
Password used to open the private keyring


getPassword

public String getPassword()


Apache CAMEL