|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.converter.crypto.PGPDataFormat
public class PGPDataFormat
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 |
|---|
public PGPDataFormat()
| Method Detail |
|---|
public void marshal(org.apache.camel.Exchange exchange,
Object graph,
OutputStream outputStream)
throws Exception
marshal in interface org.apache.camel.spi.DataFormatException
public 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||