public final class PGPDataFormatUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
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.
|
@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
IOExceptionorg.bouncycastle.openpgp.PGPExceptionNoSuchProviderException@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
IOExceptionorg.bouncycastle.openpgp.PGPExceptionNoSuchProviderExceptionpublic 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
IOExceptionorg.bouncycastle.openpgp.PGPExceptionNoSuchProviderException@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
IOExceptionorg.bouncycastle.openpgp.PGPExceptionNoSuchProviderExceptionpublic static org.bouncycastle.openpgp.PGPPublicKeyRingCollection getPublicKeyRingCollection(org.apache.camel.CamelContext context,
String filename,
byte[] keyRing,
boolean forEncryption)
throws IOException,
org.bouncycastle.openpgp.PGPException
IOExceptionorg.bouncycastle.openpgp.PGPExceptionpublic 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
IOExceptionorg.bouncycastle.openpgp.PGPExceptionNoSuchProviderExceptionpublic static org.bouncycastle.openpgp.PGPPrivateKey findPrivateKeyWithkeyId(long keyid,
String passphrase,
PGPPassphraseAccessor passphraseAccessor,
String provider,
org.bouncycastle.openpgp.PGPSecretKeyRingCollection pgpSec)
throws org.bouncycastle.openpgp.PGPException
org.bouncycastle.openpgp.PGPExceptionpublic static List<org.bouncycastle.openpgp.PGPPublicKey> findPublicKeys(List<String> useridParts, boolean forEncryption, org.bouncycastle.openpgp.PGPPublicKeyRingCollection pgpPublicKeyringCollection)
@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
IOExceptionorg.bouncycastle.openpgp.PGPExceptionNoSuchProviderException@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
IOExceptionorg.bouncycastle.openpgp.PGPExceptionNoSuchProviderException@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
IOExceptionorg.bouncycastle.openpgp.PGPExceptionNoSuchProviderException@Deprecated public static org.bouncycastle.openpgp.PGPSecretKey findSecretKey(org.apache.camel.CamelContext context, String keychainFilename, String passphrase) throws IOException, org.bouncycastle.openpgp.PGPException, NoSuchProviderException
IOExceptionorg.bouncycastle.openpgp.PGPExceptionNoSuchProviderException@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
IOExceptionorg.bouncycastle.openpgp.PGPExceptionNoSuchProviderExceptionpublic 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
IOExceptionorg.bouncycastle.openpgp.PGPExceptionNoSuchProviderException@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
IOExceptionorg.bouncycastle.openpgp.PGPExceptionNoSuchProviderExceptionpublic static List<PGPSecretKeyAndPrivateKeyAndUserId> findSecretKeysWithPrivateKeyAndUserId(Map<String,String> sigKeyUserId2Password, String provider, org.bouncycastle.openpgp.PGPSecretKeyRingCollection pgpSec) throws org.bouncycastle.openpgp.PGPException
org.bouncycastle.openpgp.PGPExceptionpublic static org.bouncycastle.openpgp.PGPPublicKey getPublicKeyWithKeyIdAndUserID(long keyId,
List<String> userIdParts,
org.bouncycastle.openpgp.PGPPublicKeyRingCollection publicKeyringCollection)
throws org.bouncycastle.openpgp.PGPException
keyId - key IDuserIdParts - user ID parts, can be empty, than no filter on the User ID is
executedpublicKeyringCollection - keyring collectionnull if no fitting key is foundorg.bouncycastle.openpgp.PGPExceptionApache Camel