Enum PKCS8KeyFile.ECNamedCurveObjectIdentifier
- java.lang.Object
-
- java.lang.Enum<PKCS8KeyFile.ECNamedCurveObjectIdentifier>
-
- net.schmizz.sshj.userauth.keyprovider.PKCS8KeyFile.ECNamedCurveObjectIdentifier
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PKCS8KeyFile.ECNamedCurveObjectIdentifier>
- Enclosing class:
- PKCS8KeyFile
private static enum PKCS8KeyFile.ECNamedCurveObjectIdentifier extends java.lang.Enum<PKCS8KeyFile.ECNamedCurveObjectIdentifier>
-
-
Field Summary
Fields Modifier and Type Field Description private ECDSACurve
ecdsaCurve
private java.lang.String
objectId
-
Constructor Summary
Constructors Modifier Constructor Description private
ECNamedCurveObjectIdentifier(java.lang.String objectId, ECDSACurve ecdsaCurve)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PKCS8KeyFile.ECNamedCurveObjectIdentifier
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PKCS8KeyFile.ECNamedCurveObjectIdentifier[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SECP256R1
public static final PKCS8KeyFile.ECNamedCurveObjectIdentifier SECP256R1
-
SECP384R1
public static final PKCS8KeyFile.ECNamedCurveObjectIdentifier SECP384R1
-
SECP521R1
public static final PKCS8KeyFile.ECNamedCurveObjectIdentifier SECP521R1
-
-
Field Detail
-
objectId
private final java.lang.String objectId
-
ecdsaCurve
private final ECDSACurve ecdsaCurve
-
-
Constructor Detail
-
ECNamedCurveObjectIdentifier
private ECNamedCurveObjectIdentifier(java.lang.String objectId, ECDSACurve ecdsaCurve)
-
-
Method Detail
-
values
public static PKCS8KeyFile.ECNamedCurveObjectIdentifier[] 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 (PKCS8KeyFile.ECNamedCurveObjectIdentifier c : PKCS8KeyFile.ECNamedCurveObjectIdentifier.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PKCS8KeyFile.ECNamedCurveObjectIdentifier valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-