org.apache.camel.converter.crypto
Class PGPDataFormatUtil

java.lang.Object
  extended by org.apache.camel.converter.crypto.PGPDataFormatUtil

public final class PGPDataFormatUtil
extends Object


Method Summary
static byte[] compress(byte[] clearData, String fileName, int algorithm)
           
static org.bouncycastle.openpgp.PGPPrivateKey findPrivateKey(org.apache.camel.CamelContext context, InputStream keyringInput, InputStream encryptedInput, String passphrase)
           
static org.bouncycastle.openpgp.PGPPrivateKey findPrivateKey(org.apache.camel.CamelContext context, String keychainFilename, InputStream encryptedInput, String passphrase)
           
static org.bouncycastle.openpgp.PGPPublicKey findPublicKey(org.apache.camel.CamelContext context, InputStream input, String userid)
           
static org.bouncycastle.openpgp.PGPPublicKey findPublicKey(org.apache.camel.CamelContext context, String filename, String userid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findPublicKey

public static org.bouncycastle.openpgp.PGPPublicKey findPublicKey(org.apache.camel.CamelContext context,
                                                                  String filename,
                                                                  String userid)
                                                           throws IOException,
                                                                  org.bouncycastle.openpgp.PGPException,
                                                                  NoSuchProviderException
Throws:
IOException
org.bouncycastle.openpgp.PGPException
NoSuchProviderException

findPublicKey

public static org.bouncycastle.openpgp.PGPPublicKey findPublicKey(org.apache.camel.CamelContext context,
                                                                  InputStream input,
                                                                  String userid)
                                                           throws IOException,
                                                                  org.bouncycastle.openpgp.PGPException,
                                                                  NoSuchProviderException
Throws:
IOException
org.bouncycastle.openpgp.PGPException
NoSuchProviderException

findPrivateKey

public static org.bouncycastle.openpgp.PGPPrivateKey findPrivateKey(org.apache.camel.CamelContext context,
                                                                    String keychainFilename,
                                                                    InputStream encryptedInput,
                                                                    String passphrase)
                                                             throws IOException,
                                                                    org.bouncycastle.openpgp.PGPException,
                                                                    NoSuchProviderException
Throws:
IOException
org.bouncycastle.openpgp.PGPException
NoSuchProviderException

findPrivateKey

public static org.bouncycastle.openpgp.PGPPrivateKey findPrivateKey(org.apache.camel.CamelContext context,
                                                                    InputStream keyringInput,
                                                                    InputStream encryptedInput,
                                                                    String passphrase)
                                                             throws IOException,
                                                                    org.bouncycastle.openpgp.PGPException,
                                                                    NoSuchProviderException
Throws:
IOException
org.bouncycastle.openpgp.PGPException
NoSuchProviderException

compress

public static byte[] compress(byte[] clearData,
                              String fileName,
                              int algorithm)
                       throws IOException
Throws:
IOException


Apache CAMEL