Package de.xima.fc.cryptography
Enum KeyAlgorithm
- java.lang.Object
-
- java.lang.Enum<KeyAlgorithm>
-
- de.xima.fc.cryptography.KeyAlgorithm
-
- All Implemented Interfaces:
Serializable,Comparable<KeyAlgorithm>
public enum KeyAlgorithm extends Enum<KeyAlgorithm>
- Since:
- 30.01.26
- Author:
- Norman Lorenz
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetStandardName()The standard name of the key algorithm, which can be used in Java Cryptography API.static KeyAlgorithmvalueOf(String name)Returns the enum constant of this type with the specified name.static KeyAlgorithm[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RSA
public static final KeyAlgorithm RSA
-
DSA
public static final KeyAlgorithm DSA
-
EC
public static final KeyAlgorithm EC
-
-
Method Detail
-
values
public static KeyAlgorithm[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (KeyAlgorithm c : KeyAlgorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KeyAlgorithm valueOf(String name)
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
-
getStandardName
public String getStandardName()
The standard name of the key algorithm, which can be used in Java Cryptography API.- See Also:
KeyFactory,Key.getAlgorithm()
-
-