Package org.mozilla.jss.pkcs11
Enum Class PK11KeyPairGenerator.ECCurve_Code
java.lang.Object
java.lang.Enum<PK11KeyPairGenerator.ECCurve_Code>
org.mozilla.jss.pkcs11.PK11KeyPairGenerator.ECCurve_Code
- All Implemented Interfaces:
Serializable
,Comparable<PK11KeyPairGenerator.ECCurve_Code>
,Constable
- Enclosing class:
PK11KeyPairGenerator
private static enum PK11KeyPairGenerator.ECCurve_Code
extends Enum<PK11KeyPairGenerator.ECCurve_Code>
The ECCurve_Code enum defines a code for each EC
curve based on the position of the curve in the enum.
The code is used as EC key strength in initialize().
The code can be obtained using getCurveCodeByName().
Note that the code might change if a curve is added,
removed, or repositioned. It's recommended to use
the curve name instead of the code.
-
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
code()
oid()
valueOf
(int code) Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.static PK11KeyPairGenerator.ECCurve_Code[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
secp521r1
-
nistp521
-
secp384r1
-
nistp384
-
secp256r1
-
nistp256
-
secp256k1
-
secp224r1
-
nistp224
-
secp224k1
-
secp192r1
-
nistp192
-
secp192k1
-
secp160r2
-
secp160r1
-
secp160k1
-
secp128r2
-
secp128r1
-
secp112r2
-
secp112r1
-
sect571r1
-
nistb571
-
sect571k1
-
nistk571
-
sect409r1
-
nistb409
-
sect409k1
-
nistk409
-
sect283r1
-
nistb283
-
sect283k1
-
nistk283
-
sect239k1
-
sect233r1
-
nistb233
-
sect233k1
-
nistk233
-
sect193r2
-
sect193r1
-
nistb163
-
sect163r2
-
sect163r1
-
sect163k1
-
nistk163
-
sect131r2
-
sect131r1
-
sect113r2
-
sect113r1
-
prime239v3
-
prime239v2
-
prime239v1
-
prime192v3
-
prime192v2
-
prime192v1
-
c2pnb163v1
-
c2pnb163v2
-
c2pnb163v3
-
c2pnb176v1
-
c2tnb191v1
-
c2tnb191v2
-
c2tnb191v3
-
c2pnb208w1
-
c2tnb239v1
-
c2tnb239v2
-
c2tnb239v3
-
c2pnb272w1
-
c2pnb304w1
-
c2tnb359v1
-
c2pnb368w1
-
c2tnb431r1
-
-
Field Details
-
code
private final int code -
oid
-
-
Constructor Details
-
ECCurve_Code
-
-
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
-
code
public int code() -
oid
-
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:
code
- 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
-