|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflux.file.PgpKeyFactory
public abstract class PgpKeyFactory
Makes PGP public/private key pairs that can be used in conjunction with PGP file actions.
| Constructor Summary | |
|---|---|
PgpKeyFactory()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PgpKeyFactory()
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||