Package org.webpki.crypto
Enum Class AsymSignatureAlgorithms
- All Implemented Interfaces:
Serializable
,Comparable<AsymSignatureAlgorithms>
,Constable
,CryptoAlgorithms
,SignatureAlgorithms
public enum AsymSignatureAlgorithms
extends Enum<AsymSignatureAlgorithms>
implements SignatureAlgorithms
Asymmetric key signature algorithms.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic AsymSignatureAlgorithms
getAlgorithmFromId
(int coseAlgorithmId) static AsymSignatureAlgorithms
getAlgorithmFromId
(String algorithmId, AlgorithmPreferences algorithmPreferences) getAlgorithmId
(AlgorithmPreferences algorithmPreferences) int
getOid()
boolean
boolean
static boolean
testAlgorithmUri
(String sksId) static AsymSignatureAlgorithms
Returns the enum constant of this class with the specified name.static AsymSignatureAlgorithms[]
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
getJoseAlgorithmId, isSymmetric
-
Enum Constant Details
-
RSA_SHA1
-
RSA_SHA256
-
RSA_SHA384
-
RSA_SHA512
-
RSAPSS_SHA256
-
RSAPSS_SHA384
-
RSAPSS_SHA512
-
ECDSA_SHA256
-
ECDSA_SHA384
-
ECDSA_SHA512
-
ED25519
-
ED448
-
-
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
-
getDigestAlgorithm
- Specified by:
getDigestAlgorithm
in interfaceSignatureAlgorithms
-
testAlgorithmUri
-
getAlgorithmFromId
public static AsymSignatureAlgorithms getAlgorithmFromId(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
-
getMGF1ParameterSpec
-
getCoseAlgorithmId
public int getCoseAlgorithmId()- Specified by:
getCoseAlgorithmId
in interfaceCryptoAlgorithms
-
getAlgorithmFromId
-