public abstract class PgpKeyFactory
extends java.lang.Object
Constructor and Description |
---|
PgpKeyFactory() |
Modifier and Type | Method and Description |
---|---|
abstract PgpKeyPair |
makeElGamalKeyPair(int size)
Makes an ElGamal PGP public/private key pair.
|
abstract PgpKeyPair |
makeElGamalKeyPair(int size,
java.lang.String password)
Makes an ElGamal PGP public/private key pair with password protection on the private key.
|
static PgpKeyFactory |
makeInstance()
Makes a new PgpKeyFactory instance.
|
abstract PgpKeyPair |
makeRsaKeyPair(int size)
Makes an RSA PGP public/private key pair.
|
abstract PgpKeyPair |
makeRsaKeyPair(int size,
java.lang.String password)
Makes an RSA PGP public/private key pair with password protection on the private key.
|
public static PgpKeyFactory makeInstance()
public abstract PgpKeyPair makeElGamalKeyPair(int size) throws EngineException
size
- The size of the encryption key in bits.EngineException
- If there was a problem creating the key pair.public abstract PgpKeyPair makeElGamalKeyPair(int size, java.lang.String password) throws EngineException
size
- The size of the encryption key in bits.password
- The password for private key access. A password that is null or the empty string implies that no
private key encryption occurs and that the private key is stored in the clear.EngineException
- If there was a problem creating the key pair.public abstract PgpKeyPair makeRsaKeyPair(int size) throws EngineException
size
- The size of the encryption key in bits.EngineException
- If there was a problem creating the key pair.public abstract PgpKeyPair makeRsaKeyPair(int size, java.lang.String password) throws EngineException
size
- The size of the encryption key in bits.password
- The password for private key access. A password that is null or the empty string implies that no
private key encryption occurs and that the private key is stored in the clear.EngineException
- If there was a problem creating the key pair.© 2000-2025 Flux Corporation. All rights reserved.