public static enum EcParameterSpecWithName.SpecifiedECDomainVersion extends java.lang.Enum<EcParameterSpecWithName.SpecifiedECDomainVersion>
This enumeration represent the values supported by the
SpecifiedECDomainVersion ASN.1 structure from ANSI
X9.63-2005:
SpecifiedECDomainVersion ::= INTEGER {
ecdpVer1(1),
ecdpVer2(2),
ecdpVer3(3),
...-- More values may added
}
| Enum Constant and Description |
|---|
ecdpVer1
Indicates that the elliptic curve may or may not be verifiably random
according to whether
curve.seed is present, and the base
point G is not verifiably random. |
ecdpVer2
Indicates that the elliptic curve and base point
G are
both verifiably random (in this case, curve.seed shall
be present). |
ecdpVer3
Indicates that the elliptic curve is not verifiably random but that
the base point
G is verifiably random (in this case,
curve.seed shall be present). |
| Modifier and Type | Method and Description |
|---|---|
int |
getVersion()
Returns the EC domain parameter version.
|
static EcParameterSpecWithName.SpecifiedECDomainVersion |
valueOf(int version)
Converts an EC domain parameter version from integer representation
to
SpecifiedECDomainVersion representation. |
static EcParameterSpecWithName.SpecifiedECDomainVersion |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EcParameterSpecWithName.SpecifiedECDomainVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EcParameterSpecWithName.SpecifiedECDomainVersion ecdpVer1
curve.seed is present, and the base
point G is not verifiably random.public static final EcParameterSpecWithName.SpecifiedECDomainVersion ecdpVer2
G are
both verifiably random (in this case, curve.seed shall
be present).public static final EcParameterSpecWithName.SpecifiedECDomainVersion ecdpVer3
G is verifiably random (in this case,
curve.seed shall be present).public static EcParameterSpecWithName.SpecifiedECDomainVersion[] values()
for (EcParameterSpecWithName.SpecifiedECDomainVersion c : EcParameterSpecWithName.SpecifiedECDomainVersion.values()) System.out.println(c);
public static EcParameterSpecWithName.SpecifiedECDomainVersion valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static EcParameterSpecWithName.SpecifiedECDomainVersion valueOf(int version) throws java.lang.IllegalArgumentException
SpecifiedECDomainVersion representation.version - the EC domain parameter version (integer representation)SpecifiedECDomainVersion representation)java.lang.IllegalArgumentException - if the EC domain parameter version is unsupportedpublic int getVersion()