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 ConstantsEnum ConstantDescription -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetAlgorithmId(AlgorithmPreferences algorithmPreferences) static KeyAlgorithmsgetECKeyAlgorithm(ECParameterSpec actual) static KeyAlgorithmsgetKeyAlgorithm(Key key) static KeyAlgorithmsgetKeyAlgorithm(Key key, Boolean keyParameters) static KeyAlgorithmsgetKeyAlgorithmFromId(String algorithmId, AlgorithmPreferences algorithmPreferences) getOid()intbooleanbooleanbooleanstatic PublicKeynormalizePublicKey(PublicKey publicKey) static KeyAlgorithmsReturns 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, valueOfMethods inherited from interface org.webpki.crypto.CryptoAlgorithms
getCoseAlgorithmId, getJoseAlgorithmId, isSymmetric
-
Enum Constant Details
-
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:
isMandatorySksAlgorithmin interfaceCryptoAlgorithms
-
getJceName
- Specified by:
getJceNamein interfaceCryptoAlgorithms
-
getOid
- Specified by:
getOidin 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:
getAlgorithmIdin interfaceCryptoAlgorithms
-
isDeprecated
public boolean isDeprecated()- Specified by:
isDeprecatedin interfaceCryptoAlgorithms
-
getKeyType
- Specified by:
getKeyTypein interfaceCryptoAlgorithms
-