Package org.mockserver.keys
Enum AsymmetricKeyPairAlgorithm
- java.lang.Object
-
- java.lang.Enum<AsymmetricKeyPairAlgorithm>
-
- org.mockserver.keys.AsymmetricKeyPairAlgorithm
-
- All Implemented Interfaces:
Serializable,Comparable<AsymmetricKeyPairAlgorithm>
public enum AsymmetricKeyPairAlgorithm extends Enum<AsymmetricKeyPairAlgorithm>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EC256_SHA256EC384_SHA384ECP512_SHA512RSA2048_SHA256RSA3072_SHA384RSA4096_SHA512
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlgorithm()StringgetECDomainParameters()StringgetJwtAlgorithm()intgetKeyLength()StringgetSigningAlgorithm()static AsymmetricKeyPairAlgorithmvalueOf(String name)Returns the enum constant of this type with the specified name.static AsymmetricKeyPairAlgorithm[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EC256_SHA256
public static final AsymmetricKeyPairAlgorithm EC256_SHA256
-
EC384_SHA384
public static final AsymmetricKeyPairAlgorithm EC384_SHA384
-
ECP512_SHA512
public static final AsymmetricKeyPairAlgorithm ECP512_SHA512
-
RSA2048_SHA256
public static final AsymmetricKeyPairAlgorithm RSA2048_SHA256
-
RSA3072_SHA384
public static final AsymmetricKeyPairAlgorithm RSA3072_SHA384
-
RSA4096_SHA512
public static final AsymmetricKeyPairAlgorithm RSA4096_SHA512
-
-
Method Detail
-
values
public static AsymmetricKeyPairAlgorithm[] 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 (AsymmetricKeyPairAlgorithm c : AsymmetricKeyPairAlgorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AsymmetricKeyPairAlgorithm 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
-
getAlgorithm
public String getAlgorithm()
-
getJwtAlgorithm
public String getJwtAlgorithm()
-
getSigningAlgorithm
public String getSigningAlgorithm()
-
getECDomainParameters
public String getECDomainParameters()
-
getKeyLength
public int getKeyLength()
-
-