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 and Description |
|---|
PGPDataFormat() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public void marshal(org.apache.camel.Exchange exchange,
Object graph,
OutputStream outputStream)
throws Exception
marshal in interface org.apache.camel.spi.DataFormatExceptionpublic Object unmarshal(org.apache.camel.Exchange exchange, InputStream encryptedStream) throws Exception
unmarshal in interface org.apache.camel.spi.DataFormatExceptionpublic void setArmored(boolean armored)
public boolean getArmored()
public void setIntegrity(boolean integrity)
public boolean getIntegrity()
public void setKeyUserid(String keyUserid)
public String getKeyUserid()
public void setKeyFileName(String keyFileName)
public String getKeyFileName()
public void setPassword(String password)
public String getPassword()
Apache CAMEL