| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static byte[] | |
| pack-priv static PGPPrivateKey | Returns: the private key.a secret key ring collection. pgpSec, long keyID we want. keyID, char[] passphrase to decrypt secret key with. pass)Search a secret key ring collection for a secret key corresponding to keyID if it exists. |
| pack-priv static PGPPublicKey | |
| pack-priv static PGPPublicKey | Returns: the first public key found.data stream containing the public key data input)A simple routine that opens a key ring file and loads the first available key suitable for encryption. |
| pack-priv static PGPSecretKey | |
| pack-priv static PGPSecretKey | Returns: a secret key.stream to read the secret key ring collection from. input)A simple routine that opens a key ring file and loads the first available key suitable for signature generation. |
| PGPExampleUtil | back to summary |
|---|---|
| pack-priv PGPExampleUtil() | |
| compressFile | back to summary |
|---|---|
| pack-priv static byte[] compressFile(String fileName, int algorithm) throws IOException | |
| findSecretKey | back to summary |
|---|---|
| pack-priv static PGPPrivateKey findSecretKey(PGPSecretKeyRingCollection pgpSec, long keyID, char[] pass) throws PGPException, NoSuchProviderException Search a secret key ring collection for a secret key corresponding to keyID if it exists.
| |
| readPublicKey | back to summary |
|---|---|
| pack-priv static PGPPublicKey readPublicKey(String fileName) throws IOException, PGPException | |
| readPublicKey | back to summary |
|---|---|
| pack-priv static PGPPublicKey readPublicKey(InputStream input) throws IOException, PGPException A simple routine that opens a key ring file and loads the first available key suitable for encryption.
| |
| readSecretKey | back to summary |
|---|---|
| pack-priv static PGPSecretKey readSecretKey(String fileName) throws IOException, PGPException | |
| readSecretKey | back to summary |
|---|---|
| pack-priv static PGPSecretKey readSecretKey(InputStream input) throws IOException, PGPException A simple routine that opens a key ring file and loads the first available key suitable for signature generation.
| |