Package org.webpki.crypto
Enum Class KeyAlgorithms
- All Implemented Interfaces:
Serializable
,Comparable<KeyAlgorithms>
,Constable
,CryptoAlgorithms
Asymmetric key algorithms.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAlgorithmId
(AlgorithmPreferences algorithmPreferences) static KeyAlgorithms
getECKeyAlgorithm
(ECParameterSpec actual) static KeyAlgorithms
getKeyAlgorithm
(Key key) static KeyAlgorithms
getKeyAlgorithm
(Key key, Boolean keyParameters) static KeyAlgorithms
getKeyAlgorithmFromId
(String algorithmId, AlgorithmPreferences algorithmPreferences) getOid()
int
boolean
boolean
boolean
static PublicKey
normalizePublicKey
(PublicKey publicKey) static KeyAlgorithms
Returns the enum constant of this class with the specified name.static KeyAlgorithms[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface org.webpki.crypto.CryptoAlgorithms
getCoseAlgorithmId, getJoseAlgorithmId, isSymmetric
-
Enum Constant Details
-
RSA1024
-
RSA2048
-
RSA3072
-
RSA4096
-
RSA1024_EXP
-
RSA2048_EXP
-
RSA3072_EXP
-
RSA4096_EXP
-
P_256
-
P_384
-
P_521
-
SECG_K_256
-
BRAINPOOL_P_256
-
ED25519
-
ED448
-
X25519
-
X448
-
-
Field Details
-
XML_DSIG_CURVE_PREFIX
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
isMandatorySksAlgorithm
public boolean isMandatorySksAlgorithm()- Specified by:
isMandatorySksAlgorithm
in interfaceCryptoAlgorithms
-
getJceName
- Specified by:
getJceName
in interfaceCryptoAlgorithms
-
getOid
- Specified by:
getOid
in interfaceCryptoAlgorithms
-
getECDomainOID
-
getPublicKeySizeInBits
public int getPublicKeySizeInBits() -
getRecommendedSignatureAlgorithm
-
hasParameters
public boolean hasParameters() -
getECParameterSpec
-
getECKeyAlgorithm
-
getKeyAlgorithm
-
normalizePublicKey
-
getKeyAlgorithm
-
getKeyAlgorithmFromId
public static KeyAlgorithms getKeyAlgorithmFromId(String algorithmId, AlgorithmPreferences algorithmPreferences) -
getAlgorithmId
- Specified by:
getAlgorithmId
in interfaceCryptoAlgorithms
-
isDeprecated
public boolean isDeprecated()- Specified by:
isDeprecated
in interfaceCryptoAlgorithms
-
getKeyType
- Specified by:
getKeyType
in interfaceCryptoAlgorithms
-