@Metadata(firstVersion="2.9.0", label="dataformat,transformation,security", title="PGP") public class PGPDataFormat extends DataFormatDefinition
Constructor and Description |
---|
PGPDataFormat() |
Modifier and Type | Method and Description |
---|---|
protected void |
configureDataFormat(DataFormat dataFormat,
CamelContext camelContext)
Allows derived classes to customize the data format
|
Integer |
getAlgorithm() |
Boolean |
getArmored() |
Integer |
getCompressionAlgorithm() |
Integer |
getHashAlgorithm() |
Boolean |
getIntegrity() |
String |
getKeyFileName() |
String |
getKeyUserid() |
String |
getPassword() |
String |
getProvider() |
String |
getSignatureKeyFileName() |
String |
getSignatureKeyRing() |
String |
getSignatureKeyUserid() |
String |
getSignaturePassword() |
String |
getSignatureVerificationOption() |
void |
setAlgorithm(Integer algorithm)
Symmetric key encryption algorithm; possible values are defined in org.bouncycastle.bcpg.SymmetricKeyAlgorithmTags;
for example 2 (= TRIPLE DES), 3 (= CAST5), 4 (= BLOWFISH), 6 (= DES), 7 (= AES_128).
|
void |
setArmored(Boolean armored)
This option will cause PGP to base64 encode the encrypted text, making it available for copy/paste, etc.
|
void |
setCompressionAlgorithm(Integer compressionAlgorithm)
Compression algorithm; possible values are defined in org.bouncycastle.bcpg.CompressionAlgorithmTags;
for example 0 (= UNCOMPRESSED), 1 (= ZIP), 2 (= ZLIB), 3 (= BZIP2).
|
void |
setHashAlgorithm(Integer hashAlgorithm)
Signature hash algorithm; possible values are defined in org.bouncycastle.bcpg.HashAlgorithmTags;
for example 2 (= SHA1), 8 (= SHA256), 9 (= SHA384), 10 (= SHA512), 11 (=SHA224).
|
void |
setIntegrity(Boolean integrity)
Adds an integrity check/sign into the encryption file.
|
void |
setKeyFileName(String keyFileName)
Filename of the keyring; must be accessible as a classpath resource (but you can specify a location in the file system by using the "file:" prefix).
|
void |
setKeyUserid(String keyUserid)
The user ID of the key in the PGP keyring used during encryption.
|
void |
setPassword(String password)
Password used when opening the private key (not used for encryption).
|
void |
setProvider(String provider)
Java Cryptography Extension (JCE) provider, default is Bouncy Castle
("BC").
|
void |
setSignatureKeyFileName(String signatureKeyFileName)
Filename of the keyring to use for signing (during encryption) or for signature verification (during decryption);
must be accessible as a classpath resource (but you can specify a location in the file system by using the "file:" prefix).
|
void |
setSignatureKeyRing(String signatureKeyRing)
Keyring used for signing/verifying as byte array.
|
void |
setSignatureKeyUserid(String signatureKeyUserid)
User ID of the key in the PGP keyring used for signing (during encryption) or signature verification (during decryption).
|
void |
setSignaturePassword(String signaturePassword)
Password used when opening the private key used for signing (during encryption).
|
void |
setSignatureVerificationOption(String signatureVerificationOption)
Controls the behavior for verifying the signature during unmarshaling.
|
configureDataFormat, createDataFormat, getContentTypeHeader, getDataFormat, getDataFormat, getDataFormat, getDataFormatName, getOtherAttributes, getShortName, setContentTypeHeader, setDataFormat, setDataFormatName, setOtherAttributes, setProperty, setProperty
getId, setId
public PGPDataFormat()
protected void configureDataFormat(DataFormat dataFormat, CamelContext camelContext)
DataFormatDefinition
configureDataFormat
in class DataFormatDefinition
public String getSignatureKeyUserid()
public void setSignatureKeyUserid(String signatureKeyUserid)
public String getSignaturePassword()
public void setSignaturePassword(String signaturePassword)
public String getSignatureKeyFileName()
public void setSignatureKeyFileName(String signatureKeyFileName)
public String getSignatureKeyRing()
public void setSignatureKeyRing(String signatureKeyRing)
public Integer getHashAlgorithm()
public void setHashAlgorithm(Integer hashAlgorithm)
public Boolean getArmored()
public void setArmored(Boolean armored)
public Boolean getIntegrity()
public void setIntegrity(Boolean integrity)
public String getKeyFileName()
public void setKeyFileName(String keyFileName)
public String getKeyUserid()
public void setKeyUserid(String keyUserid)
public String getPassword()
public Integer getAlgorithm()
public void setAlgorithm(Integer algorithm)
public Integer getCompressionAlgorithm()
public void setCompressionAlgorithm(Integer compressionAlgorithm)
public void setPassword(String password)
public String getProvider()
public void setProvider(String provider)
public String getSignatureVerificationOption()
public void setSignatureVerificationOption(String signatureVerificationOption)
Apache Camel