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 org.bouncycastle.openpgp.PGPPrivateKey findPrivateKey(org.apache.camel.CamelContext context, String keychainFilename, byte[] secKeyRing, InputStream encryptedInput, String passphrase, PGPPassphraseAccessor passphraseAccessor, String provider)
          Deprecated. 
static org.bouncycastle.openpgp.PGPPrivateKey findPrivateKey(org.apache.camel.CamelContext context, String keychainFilename, byte[] secKeyRing, InputStream encryptedInput, String passphrase, String provider)
          Deprecated. 
static org.bouncycastle.openpgp.PGPPrivateKey findPrivateKey(org.apache.camel.CamelContext context, String keychainFilename, InputStream encryptedInput, String passphrase)
          Deprecated. 
static org.bouncycastle.openpgp.PGPPrivateKey findPrivateKeyWithKeyId(org.apache.camel.CamelContext context, String filename, byte[] secretKeyRing, long keyid, String passphrase, PGPPassphraseAccessor passpraseAccessor, String provider)
           
static org.bouncycastle.openpgp.PGPPrivateKey findPrivateKeyWithkeyId(long keyid, String passphrase, PGPPassphraseAccessor passphraseAccessor, String provider, org.bouncycastle.openpgp.PGPSecretKeyRingCollection pgpSec)
           
static org.bouncycastle.openpgp.PGPPublicKey findPublicKey(org.apache.camel.CamelContext context, String filename, byte[] keyRing, String userid, boolean forEncryption)
          Deprecated. 
static org.bouncycastle.openpgp.PGPPublicKey findPublicKey(org.apache.camel.CamelContext context, String filename, String userid, boolean forEncryption)
          Deprecated. 
static List<org.bouncycastle.openpgp.PGPPublicKey> findPublicKeys(org.apache.camel.CamelContext context, String filename, byte[] keyRing, List<String> userids, boolean forEncryption)
           
static List<org.bouncycastle.openpgp.PGPPublicKey> findPublicKeys(List<String> useridParts, boolean forEncryption, org.bouncycastle.openpgp.PGPPublicKeyRingCollection pgpPublicKeyringCollection)
           
static org.bouncycastle.openpgp.PGPPublicKey findPublicKeyWithKeyId(org.apache.camel.CamelContext context, String filename, byte[] keyRing, long keyid, boolean forEncryption)
          Deprecated. 
static org.bouncycastle.openpgp.PGPSecretKey findSecretKey(org.apache.camel.CamelContext context, String keychainFilename, byte[] secKeyRing, String passphrase, String provider)
          Deprecated. 
static org.bouncycastle.openpgp.PGPSecretKey findSecretKey(org.apache.camel.CamelContext context, String keychainFilename, byte[] secKeyRing, String passphrase, String userId, String provider)
          Deprecated. 
static org.bouncycastle.openpgp.PGPSecretKey findSecretKey(org.apache.camel.CamelContext context, String keychainFilename, String passphrase)
          Deprecated. 
static List<PGPSecretKeyAndPrivateKeyAndUserId> findSecretKeysWithPrivateKeyAndUserId(org.apache.camel.CamelContext context, String keychainFilename, byte[] secKeyRing, Map<String,String> sigKeyUserId2Password, String provider)
           
static List<PGPSecretKeyAndPrivateKeyAndUserId> findSecretKeysWithPrivateKeyAndUserId(Map<String,String> sigKeyUserId2Password, String provider, org.bouncycastle.openpgp.PGPSecretKeyRingCollection pgpSec)
           
static org.bouncycastle.openpgp.PGPPublicKeyRingCollection getPublicKeyRingCollection(org.apache.camel.CamelContext context, String filename, byte[] keyRing, boolean forEncryption)
           
static org.bouncycastle.openpgp.PGPPublicKey getPublicKeyWithKeyIdAndUserID(long keyId, List<String> userIdParts, org.bouncycastle.openpgp.PGPPublicKeyRingCollection publicKeyringCollection)
          Determines a public key from the keyring collection which has a certain key ID and which has a User ID which contains at least one of the User ID parts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findPublicKey

@Deprecated
public static org.bouncycastle.openpgp.PGPPublicKey findPublicKey(org.apache.camel.CamelContext context,
                                                                             String filename,
                                                                             String userid,
                                                                             boolean forEncryption)
                                                           throws IOException,
                                                                  org.bouncycastle.openpgp.PGPException,
                                                                  NoSuchProviderException
Deprecated. 

Throws:
IOException
org.bouncycastle.openpgp.PGPException
NoSuchProviderException

findPublicKey

@Deprecated
public static org.bouncycastle.openpgp.PGPPublicKey findPublicKey(org.apache.camel.CamelContext context,
                                                                             String filename,
                                                                             byte[] keyRing,
                                                                             String userid,
                                                                             boolean forEncryption)
                                                           throws IOException,
                                                                  org.bouncycastle.openpgp.PGPException,
                                                                  NoSuchProviderException
Deprecated. 

Throws:
IOException
org.bouncycastle.openpgp.PGPException
NoSuchProviderException

findPublicKeys

public static List<org.bouncycastle.openpgp.PGPPublicKey> findPublicKeys(org.apache.camel.CamelContext context,
                                                                         String filename,
                                                                         byte[] keyRing,
                                                                         List<String> userids,
                                                                         boolean forEncryption)
                                                                  throws IOException,
                                                                         org.bouncycastle.openpgp.PGPException,
                                                                         NoSuchProviderException
Throws:
IOException
org.bouncycastle.openpgp.PGPException
NoSuchProviderException

findPublicKeyWithKeyId

@Deprecated
public static org.bouncycastle.openpgp.PGPPublicKey findPublicKeyWithKeyId(org.apache.camel.CamelContext context,
                                                                                      String filename,
                                                                                      byte[] keyRing,
                                                                                      long keyid,
                                                                                      boolean forEncryption)
                                                                    throws IOException,
                                                                           org.bouncycastle.openpgp.PGPException,
                                                                           NoSuchProviderException
Deprecated. 

Throws:
IOException
org.bouncycastle.openpgp.PGPException
NoSuchProviderException

getPublicKeyRingCollection

public static org.bouncycastle.openpgp.PGPPublicKeyRingCollection getPublicKeyRingCollection(org.apache.camel.CamelContext context,
                                                                                             String filename,
                                                                                             byte[] keyRing,
                                                                                             boolean forEncryption)
                                                                                      throws IOException,
                                                                                             org.bouncycastle.openpgp.PGPException
Throws:
IOException
org.bouncycastle.openpgp.PGPException

findPrivateKeyWithKeyId

public static org.bouncycastle.openpgp.PGPPrivateKey findPrivateKeyWithKeyId(org.apache.camel.CamelContext context,
                                                                             String filename,
                                                                             byte[] secretKeyRing,
                                                                             long keyid,
                                                                             String passphrase,
                                                                             PGPPassphraseAccessor passpraseAccessor,
                                                                             String provider)
                                                                      throws IOException,
                                                                             org.bouncycastle.openpgp.PGPException,
                                                                             NoSuchProviderException
Throws:
IOException
org.bouncycastle.openpgp.PGPException
NoSuchProviderException

findPrivateKeyWithkeyId

public static org.bouncycastle.openpgp.PGPPrivateKey findPrivateKeyWithkeyId(long keyid,
                                                                             String passphrase,
                                                                             PGPPassphraseAccessor passphraseAccessor,
                                                                             String provider,
                                                                             org.bouncycastle.openpgp.PGPSecretKeyRingCollection pgpSec)
                                                                      throws org.bouncycastle.openpgp.PGPException
Throws:
org.bouncycastle.openpgp.PGPException

findPublicKeys

public static List<org.bouncycastle.openpgp.PGPPublicKey> findPublicKeys(List<String> useridParts,
                                                                         boolean forEncryption,
                                                                         org.bouncycastle.openpgp.PGPPublicKeyRingCollection pgpPublicKeyringCollection)

findPrivateKey

@Deprecated
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
Deprecated. 

Throws:
IOException
org.bouncycastle.openpgp.PGPException
NoSuchProviderException

findPrivateKey

@Deprecated
public static org.bouncycastle.openpgp.PGPPrivateKey findPrivateKey(org.apache.camel.CamelContext context,
                                                                               String keychainFilename,
                                                                               byte[] secKeyRing,
                                                                               InputStream encryptedInput,
                                                                               String passphrase,
                                                                               String provider)
                                                             throws IOException,
                                                                    org.bouncycastle.openpgp.PGPException,
                                                                    NoSuchProviderException
Deprecated. 

Throws:
IOException
org.bouncycastle.openpgp.PGPException
NoSuchProviderException

findPrivateKey

@Deprecated
public static org.bouncycastle.openpgp.PGPPrivateKey findPrivateKey(org.apache.camel.CamelContext context,
                                                                               String keychainFilename,
                                                                               byte[] secKeyRing,
                                                                               InputStream encryptedInput,
                                                                               String passphrase,
                                                                               PGPPassphraseAccessor passphraseAccessor,
                                                                               String provider)
                                                             throws IOException,
                                                                    org.bouncycastle.openpgp.PGPException,
                                                                    NoSuchProviderException
Deprecated. 

Throws:
IOException
org.bouncycastle.openpgp.PGPException
NoSuchProviderException

findSecretKey

@Deprecated
public static org.bouncycastle.openpgp.PGPSecretKey findSecretKey(org.apache.camel.CamelContext context,
                                                                             String keychainFilename,
                                                                             String passphrase)
                                                           throws IOException,
                                                                  org.bouncycastle.openpgp.PGPException,
                                                                  NoSuchProviderException
Deprecated. 

Throws:
IOException
org.bouncycastle.openpgp.PGPException
NoSuchProviderException

findSecretKey

@Deprecated
public static org.bouncycastle.openpgp.PGPSecretKey findSecretKey(org.apache.camel.CamelContext context,
                                                                             String keychainFilename,
                                                                             byte[] secKeyRing,
                                                                             String passphrase,
                                                                             String userId,
                                                                             String provider)
                                                           throws IOException,
                                                                  org.bouncycastle.openpgp.PGPException,
                                                                  NoSuchProviderException
Deprecated. 

Throws:
IOException
org.bouncycastle.openpgp.PGPException
NoSuchProviderException

findSecretKeysWithPrivateKeyAndUserId

public static List<PGPSecretKeyAndPrivateKeyAndUserId> findSecretKeysWithPrivateKeyAndUserId(org.apache.camel.CamelContext context,
                                                                                             String keychainFilename,
                                                                                             byte[] secKeyRing,
                                                                                             Map<String,String> sigKeyUserId2Password,
                                                                                             String provider)
                                                                                      throws IOException,
                                                                                             org.bouncycastle.openpgp.PGPException,
                                                                                             NoSuchProviderException
Throws:
IOException
org.bouncycastle.openpgp.PGPException
NoSuchProviderException

findSecretKey

@Deprecated
public static org.bouncycastle.openpgp.PGPSecretKey findSecretKey(org.apache.camel.CamelContext context,
                                                                             String keychainFilename,
                                                                             byte[] secKeyRing,
                                                                             String passphrase,
                                                                             String provider)
                                                           throws IOException,
                                                                  org.bouncycastle.openpgp.PGPException,
                                                                  NoSuchProviderException
Deprecated. 

Throws:
IOException
org.bouncycastle.openpgp.PGPException
NoSuchProviderException

findSecretKeysWithPrivateKeyAndUserId

public static List<PGPSecretKeyAndPrivateKeyAndUserId> findSecretKeysWithPrivateKeyAndUserId(Map<String,String> sigKeyUserId2Password,
                                                                                             String provider,
                                                                                             org.bouncycastle.openpgp.PGPSecretKeyRingCollection pgpSec)
                                                                                      throws org.bouncycastle.openpgp.PGPException
Throws:
org.bouncycastle.openpgp.PGPException

getPublicKeyWithKeyIdAndUserID

public static org.bouncycastle.openpgp.PGPPublicKey getPublicKeyWithKeyIdAndUserID(long keyId,
                                                                                   List<String> userIdParts,
                                                                                   org.bouncycastle.openpgp.PGPPublicKeyRingCollection publicKeyringCollection)
                                                                            throws org.bouncycastle.openpgp.PGPException
Determines a public key from the keyring collection which has a certain key ID and which has a User ID which contains at least one of the User ID parts.

Parameters:
keyId - key ID
userIdParts - user ID parts, can be empty, than no filter on the User ID is executed
publicKeyringCollection - keyring collection
Returns:
public key or null if no fitting key is found
Throws:
org.bouncycastle.openpgp.PGPException


Apache Camel