| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private OperatorHelper | |
| private SecureRandom |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PGPKeyPairGenerator | get(int version, Date creationTime)
Implements abstract org.
|
| public JcaPGPKeyPairGeneratorProvider | Returns: the current builder.provider object for cryptographic primitives. provider)Set the provider object to use for creating cryptographic primitives in the resulting factory the builder produces. |
| public JcaPGPKeyPairGeneratorProvider | Returns: the current builder.the name of the provider to reference for cryptographic primitives. providerName)Set the provider name to use for creating cryptographic primitives in the resulting factory the builder produces. |
| public JcaPGPKeyPairGeneratorProvider |
| helper | back to summary |
|---|---|
| private OperatorHelper helper | |
| secureRandom | back to summary |
|---|---|
| private SecureRandom secureRandom | |
| JcaPGPKeyPairGeneratorProvider | back to summary |
|---|---|
| public JcaPGPKeyPairGeneratorProvider() | |
| get | back to summary |
|---|---|
| public PGPKeyPairGenerator get(int version, Date creationTime) Implements abstract org.
| |
| setProvider | back to summary |
|---|---|
| public JcaPGPKeyPairGeneratorProvider setProvider(Provider provider) Set the provider object to use for creating cryptographic primitives in the resulting factory the builder produces.
| |
| setProvider | back to summary |
|---|---|
| public JcaPGPKeyPairGeneratorProvider setProvider(String providerName) Set the provider name to use for creating cryptographic primitives in the resulting factory the builder produces.
| |
| setSecureRandom | back to summary |
|---|---|
| public JcaPGPKeyPairGeneratorProvider setSecureRandom(SecureRandom random) | |
| Modifier and Type | Field and Description |
|---|---|
| private final OperatorHelper |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PGPKeyPair | generateEd25519KeyPair()
Implements abstract org. Generate an elliptic curve signing key over the twisted Edwards curve25519. |
| public PGPKeyPair | generateEd448KeyPair()
Implements abstract org. Generate an elliptic curve signing key over the twisted Edwards curve448. |
| public PGPKeyPair | generateLegacyEd25519KeyPair()
Implements abstract org. Generate a legacy elliptic curve signing key pair over the twisted Edwards curve25519. |
| public PGPKeyPair | generateLegacyX25519KeyPair()
Implements abstract org. Generate a legacy elliptic curve Diffie-Hellman encryption key pair over curve25519. |
| public PGPKeyPair | generateRsaKeyPair(BigInteger
RSA exponent exponent, int e strength of the key pair in bits bitStrength)Implements abstract org. Generate a RSA key pair with the given bit-strength over a custom exponent. |
| public PGPKeyPair | generateX25519KeyPair()
Implements abstract org. Generate an elliptic curve Diffie-Hellman encryption key over curve25519. |
| public PGPKeyPair | generateX448KeyPair()
Implements abstract org. Generate an elliptic curve Diffie-Hellman encryption key over curve448. |
| helper | back to summary |
|---|---|
| private final OperatorHelper helper | |
| JcaPGPKeyPairGenerator | back to summary |
|---|---|
| public JcaPGPKeyPairGenerator(int version, Date creationTime, OperatorHelper helper, SecureRandom random) | |
| generateEd25519KeyPair | back to summary |
|---|---|
| public PGPKeyPair generateEd25519KeyPair() throws PGPException Implements abstract org. Doc from org. Generate an elliptic curve signing key over the twisted Edwards curve25519.
The key will use
| |
| generateEd448KeyPair | back to summary |
|---|---|
| public PGPKeyPair generateEd448KeyPair() throws PGPException Implements abstract org. Doc from org. Generate an elliptic curve signing key over the twisted Edwards curve448.
The key will use
| |
| generateLegacyEd25519KeyPair | back to summary |
|---|---|
| public PGPKeyPair generateLegacyEd25519KeyPair() throws PGPException Implements abstract org. Doc from org. 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 PGPKeyPair generateLegacyX25519KeyPair() throws PGPException Implements abstract org. Doc from org. 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
| |
| generateRsaKeyPair | back to summary |
|---|---|
| public PGPKeyPair generateRsaKeyPair(BigInteger exponent, int bitStrength) throws PGPException Implements abstract org. Doc from org. 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.
| |
| generateX25519KeyPair | back to summary |
|---|---|
| public PGPKeyPair generateX25519KeyPair() throws PGPException Implements abstract org. Doc from org. Generate an elliptic curve Diffie-Hellman encryption key over curve25519.
THe key will use
| |
| generateX448KeyPair | back to summary |
|---|---|
| public PGPKeyPair generateX448KeyPair() throws PGPException Implements abstract org. Doc from org. Generate an elliptic curve Diffie-Hellman encryption key over curve448.
THe key will use
| |