Enum SignatureScheme
- All Implemented Interfaces:
Serializable, Comparable<SignatureScheme>, java.lang.constant.Constable
All the signature schemes for TLS 1.3.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionECDSA with P-256 and SHA-256.ECDSA with P-384 and SHA-384.ECDSA with P-521 and SHA-512.ECDSA with SHA-1 (legacy).EdDSA with Ed25519.EdDSA with Ed448.ML-DSA level 2.ML-DSA level 3.ML-DSA level 5.RSA with SHA-1 (PKCS1-v1_5, legacy).RSA with SHA-256 (PKCS1-v1_5).RSA with SHA-384 (PKCS1-v1_5).RSA with SHA-512 (PKCS1-v1_5).RSA-PSS with SHA-256.RSA-PSS with SHA-384.RSA-PSS with SHA-512.RSA-PSS with RSA-E and SHA-256.RSA-PSS with RSA-E and SHA-384.RSA-PSS with RSA-E and SHA-512.SLH-DSA SHA2-128F.SLH-DSA SHA2-128S.SLH-DSA SHA2-192F.SLH-DSA SHA2-192S.SLH-DSA SHA2-256F.SLH-DSA SHA2-256S.SLH-DSA SHAKE-128F.SLH-DSA SHAKE-128S.SLH-DSA SHAKE-192F.SLH-DSA SHAKE-192S.SLH-DSA SHAKE-256F.SLH-DSA SHAKE-256S.SM2 with SM3. -
Method Summary
Modifier and TypeMethodDescriptiongetAuth()Returns the authentication type for this scheme.intgetId()Returns the numeric ID of this signature scheme.static SignatureSchemevalueOf(int schemeId) Looks up a signature scheme by its numeric ID.static SignatureSchemeReturns the enum constant of this type with the specified name.static SignatureScheme[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
rsa_pkcs1_sha256
RSA with SHA-256 (PKCS1-v1_5). -
rsa_pkcs1_sha384
RSA with SHA-384 (PKCS1-v1_5). -
rsa_pkcs1_sha512
RSA with SHA-512 (PKCS1-v1_5). -
ecdsa_secp256r1_sha256
ECDSA with P-256 and SHA-256. -
ecdsa_secp384r1_sha384
ECDSA with P-384 and SHA-384. -
ecdsa_secp521r1_sha512
ECDSA with P-521 and SHA-512. -
rsa_pss_rsae_sha256
RSA-PSS with RSA-E and SHA-256. -
rsa_pss_rsae_sha384
RSA-PSS with RSA-E and SHA-384. -
rsa_pss_rsae_sha512
RSA-PSS with RSA-E and SHA-512. -
ed25519
EdDSA with Ed25519. -
ed448
EdDSA with Ed448. -
rsa_pss_pss_sha256
RSA-PSS with SHA-256. -
rsa_pss_pss_sha384
RSA-PSS with SHA-384. -
rsa_pss_pss_sha512
RSA-PSS with SHA-512. -
rsa_pkcs1_sha1
RSA with SHA-1 (PKCS1-v1_5, legacy). -
ecdsa_sha1
ECDSA with SHA-1 (legacy). -
mldsa44
ML-DSA level 2. -
mldsa65
ML-DSA level 3. -
mldsa87
ML-DSA level 5. -
slhdsa_sha2_128s
SLH-DSA SHA2-128S. -
slhdsa_sha2_128f
SLH-DSA SHA2-128F. -
slhdsa_sha2_192s
SLH-DSA SHA2-192S. -
slhdsa_sha2_192f
SLH-DSA SHA2-192F. -
slhdsa_sha2_256s
SLH-DSA SHA2-256S. -
slhdsa_sha2_256f
SLH-DSA SHA2-256F. -
slhdsa_shake_128s
SLH-DSA SHAKE-128S. -
slhdsa_shake_128f
SLH-DSA SHAKE-128F. -
slhdsa_shake_192s
SLH-DSA SHAKE-192S. -
slhdsa_shake_192f
SLH-DSA SHAKE-192F. -
slhdsa_shake_256s
SLH-DSA SHAKE-256S. -
slhdsa_shake_256f
SLH-DSA SHAKE-256F. -
sm2sig_sm3
SM2 with SM3.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getId
public int getId()Returns the numeric ID of this signature scheme.- Returns:
- the ID
-
getAuth
Returns the authentication type for this scheme.- Returns:
- the authentication type
-
valueOf
Looks up a signature scheme by its numeric ID.- Parameters:
schemeId- the numeric ID- Returns:
- the signature scheme, or
nullif not found
-