public class PgpKeyPairGenerator
extends Object
| Constructor and Description |
|---|
PgpKeyPairGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static TypedKeyValue<String,String> |
generateKeyPair(String userId,
String password,
int keySize)
Generate key pair.
|
static boolean |
generateKeyPair(String userId,
String password,
int keySize,
OutputStream publicKey,
OutputStream secrectKey) |
static int[] |
getPreferredCompressionAlgorithms()
Gets the preferred compression algorithms.
|
static int[] |
getPreferredEncryptionAlgorithms()
the preferred symmetric encryption algorithm order
|
static int[] |
getPreferredHashingAlgorithms()
the preferred hash algorithm order
|
public static int[] getPreferredEncryptionAlgorithms()
public static int[] getPreferredCompressionAlgorithms()
public static int[] getPreferredHashingAlgorithms()
public static boolean generateKeyPair(String userId,
String password,
int keySize,
OutputStream publicKey,
OutputStream secrectKey)
throws Exception
userId - the user id for the PGP key pairpassword - the password used to secure the secret (private) keykeySize - the custom key sizepublicKey - the target stream for the public keysecrectKey - the target stream for the secret (private) keyExceptionKeyPairGenerator#generateKeyPair(String, String, int, OutputStream,
OutputStream)public static TypedKeyValue<String,String> generateKeyPair(String userId, String password, int keySize) throws Exception
userId - the user idpassword - the passwordkeySize - the key sizeException - the exceptionCopyright © 2010-2020 Toolsverse. All Rights Reserved.