public final class PGPDataFormatUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
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 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 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.
|
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
IOExceptionorg.bouncycastle.openpgp.PGPExceptionpublic 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
IOExceptionorg.bouncycastle.openpgp.PGPExceptionpublic 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)
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
IOExceptionorg.bouncycastle.openpgp.PGPExceptionpublic 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