public static enum CertificateBuilder.Algorithm extends Enum<CertificateBuilder.Algorithm>
CertificateBuilder.Algorithm enum encapsulates both the key type, key generation parameters, and the signature
algorithm to use.| Enum Constant and Description |
|---|
ecp256
The NIST P-256 elliptic curve algorithm, offer fast key generation, signing, and verification,
with small keys and signatures, at 128-bits of security strength.
|
ecp384
The NIST P-384 elliptic curve algorithm, offer fast key generation, signing, and verification,
with small keys and signatures, at 192-bits of security strength.
|
ed25519
The Ed25519 algorithm offer fast key generation, signing, and verification,
with very small keys and signatures, at 128-bits of security strength.
|
ed448
The Ed448 algorithm offer fast key generation, signing, and verification,
with small keys and signatures, at 224-bits of security strength.
|
rsa2048
The 2048-bit RSA algorithm offer roughly 112-bits of security strength, at the cost of large keys
and slightly expensive key generation.
|
rsa3072
The 3072-bit RSA algorithm offer roughly 128-bits of security strength, at the cost of large keys
and fairly expensive key generation.
|
rsa4096
The 4096-bit RSA algorithm offer roughly greater than 128-bits of security strength,
at the cost of large keys and very expensive key generation.
|
rsa8192
The 8192-bit RSA algorithm offer roughly greater than 192-bits of security strength,
at the cost of very large keys and extremely expensive key generation.
|
| Modifier and Type | Method and Description |
|---|---|
KeyPair |
generateKeyPair(SecureRandom secureRandom) |
static CertificateBuilder.Algorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CertificateBuilder.Algorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CertificateBuilder.Algorithm ecp256
This algorithm is older than the Edwards curves, and are more widely supported.
public static final CertificateBuilder.Algorithm ecp384
This algorithm is older than the Edwards curves, and are more widely supported.
public static final CertificateBuilder.Algorithm rsa2048
This algorithm enjoy the widest support and compatibility, though.
public static final CertificateBuilder.Algorithm rsa3072
RSA enjoy pretty wide compatibility, though not all systems support keys this large.
public static final CertificateBuilder.Algorithm rsa4096
RSA enjoy pretty wide compatibility, though not all systems support keys this large.
public static final CertificateBuilder.Algorithm rsa8192
RSA enjoy pretty wide compatibility, though not all systems support keys this large.
public static final CertificateBuilder.Algorithm ed25519
This algorithm is relatively new, require Java 15 or newer, and may not be supported everywhere.
public static final CertificateBuilder.Algorithm ed448
This algorithm is relatively new, require Java 15 or newer, and may not be supported everywhere.
public static CertificateBuilder.Algorithm[] values()
for (CertificateBuilder.Algorithm c : CertificateBuilder.Algorithm.values()) System.out.println(c);
public static CertificateBuilder.Algorithm valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic KeyPair generateKeyPair(SecureRandom secureRandom) throws GeneralSecurityException
GeneralSecurityExceptionCopyright © 2008–2024 The Netty Project. All rights reserved.