| Modifier and Type | Field and Description |
|---|---|
| protected final Date | |
| protected final KeyFingerPrintCalculator | |
| protected SecureRandom | |
| protected final int |
| Access | Constructor and Description |
|---|---|
| public | PGPKeyPairGenerator(int
public key version ( version, Date org.
or org.).key creation time creationTime, SecureRandom secure random number generator random, KeyFingerPrintCalculator fingerPrintCalculator)Create an instance of the key pair generator. |
| Modifier and Type | Method and Description |
|---|---|
| public abstract PGPKeyPair | Returns: Ed25519 key pairGenerate an elliptic curve signing key over the twisted Edwards curve25519. |
| public abstract PGPKeyPair | Returns: Ed448 signing key pairGenerate an elliptic curve signing key over the twisted Edwards curve448. |
| public PGPKeyPair | |
| public abstract PGPKeyPair | Returns: legacy Ed25519 key pairGenerate a legacy elliptic curve signing key pair over the twisted Edwards curve25519. |
| public abstract PGPKeyPair | Returns: legacy X25519 key pairGenerate a legacy elliptic curve Diffie-Hellman encryption key pair over curve25519. |
| public PGPKeyPair | |
| public PGPKeyPair | Returns: rsa key pairstrength of the key pair in bits bitStrength)Generate a RSA key pair with the given bit-strength. |
| public abstract PGPKeyPair | Returns: rsa key pairRSA exponent exponent, int e strength of the key pair in bits bitStrength)Generate a RSA key pair with the given bit-strength over a custom exponent. |
| public PGPKeyPair | |
| public abstract PGPKeyPair | Returns: X25519 encryption key pairGenerate an elliptic curve Diffie-Hellman encryption key over curve25519. |
| public abstract PGPKeyPair | Returns: X448 encryption key pairGenerate an elliptic curve Diffie-Hellman encryption key over curve448. |
| creationTime | back to summary |
|---|---|
| protected final Date creationTime | |
| fingerPrintCalculator | back to summary |
|---|---|
| protected final KeyFingerPrintCalculator fingerPrintCalculator | |
| random | back to summary |
|---|---|
| protected SecureRandom random | |
| version | back to summary |
|---|---|
| protected final int version | |
| PGPKeyPairGenerator | back to summary |
|---|---|
| public PGPKeyPairGenerator(int version, Date creationTime, SecureRandom random, KeyFingerPrintCalculator fingerPrintCalculator) Create an instance of the key pair generator.
| |
| generateEd25519KeyPair | back to summary |
|---|---|
| public abstract PGPKeyPair generateEd25519KeyPair() throws PGPException Generate an elliptic curve signing key over the twisted Edwards curve25519.
The key will use
| |
| generateEd448KeyPair | back to summary |
|---|---|
| public abstract PGPKeyPair generateEd448KeyPair() throws PGPException Generate an elliptic curve signing key over the twisted Edwards curve448.
The key will use
| |
| generateEncryptionSubkey | back to summary |
|---|---|
| public PGPKeyPair generateEncryptionSubkey() throws PGPException Generate an encryption subkey. An encryption subkey MUST use an encryption-capable public key algorithm.
| |
| generateLegacyEd25519KeyPair | back to summary |
|---|---|
| public abstract PGPKeyPair generateLegacyEd25519KeyPair() throws PGPException Generate a legacy elliptic curve signing key pair over the twisted Edwards curve25519.
Legacy keys have good application support, but MUST NOT be used as OpenPGP v6 keys.
The key will use
| |
| generateLegacyX25519KeyPair | back to summary |
|---|---|
| public abstract PGPKeyPair generateLegacyX25519KeyPair() throws PGPException Generate a legacy elliptic curve Diffie-Hellman encryption key pair over curve25519.
Legacy keys have good application support, but MUST NOT be used as OpenPGP v6 keys.
The key will use
| |
| generatePrimaryKey | back to summary |
|---|---|
| public PGPKeyPair generatePrimaryKey() throws PGPException Generate a primary key. A primary key MUST use a signing-capable public key algorithm.
| |
| generateRsaKeyPair | back to summary |
|---|---|
| public PGPKeyPair generateRsaKeyPair(int bitStrength) throws PGPException Generate a RSA key pair with the given bit-strength. It is recommended to use at least 2048 bits or more. The key will be generated over the default exponent 65537. RSA keys are deprecated for OpenPGP v6.
| |
| generateRsaKeyPair | back to summary |
|---|---|
| public abstract PGPKeyPair generateRsaKeyPair(BigInteger exponent, int bitStrength) throws PGPException Generate a RSA key pair with the given bit-strength over a custom exponent. It is recommended to use at least 2048 bits or more. RSA keys are deprecated for OpenPGP v6.
| |
| generateSigningSubkey | back to summary |
|---|---|
| public PGPKeyPair generateSigningSubkey() throws PGPException Generate a signing subkey. A signing subkey MUST use a signing-capable public key algorithm.
| |
| generateX25519KeyPair | back to summary |
|---|---|
| public abstract PGPKeyPair generateX25519KeyPair() throws PGPException Generate an elliptic curve Diffie-Hellman encryption key over curve25519.
THe key will use
| |
| generateX448KeyPair | back to summary |
|---|---|
| public abstract PGPKeyPair generateX448KeyPair() throws PGPException Generate an elliptic curve Diffie-Hellman encryption key over curve448.
THe key will use
| |