public static class SupportedEllipticCurves.NamedCurve extends NamedGroup implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected static int |
ARBITRARY_EXPLICIT_CHAR2
TLS ID for indicating support for arbitrary characteristic-2 curves
(the curve parameters must be encoded explicitly in ECParameters).
|
protected static int |
ARBITRARY_EXPLICIT_PRIME
TLS ID for indicating support for arbitrary prime curves
(the curve parameters must be encoded explicitly in ECParameters).
|
Constructor and Description |
---|
NamedCurve(java.lang.String name,
java.lang.String oid,
int id)
Creates a curve with the given name, oid string and id.
|
NamedCurve(java.lang.String name,
java.lang.String oid,
int id,
boolean register)
Creates a curve with the given name, oid string and id.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Gets a clone of this NamedCurve object.
|
int |
getID()
Gets the TLS id of this curve.
|
java.lang.String |
getName()
Gets the name of the curve.
|
java.lang.String |
getOID()
Gets the oid string of the curve.
|
java.lang.String |
toString()
Gets a String representation of this NamedCurve.
|
equals, hashCode
protected static final int ARBITRARY_EXPLICIT_PRIME
protected static final int ARBITRARY_EXPLICIT_CHAR2
public NamedCurve(java.lang.String name, java.lang.String oid, int id)
name
- the name of the curveoid
- the oid string of the curveid
- the TLS id of the curvejava.lang.IllegalArgumentException
- if the given TLS id is out-of-range
(not between 1 and 216-1);
or name
is null
public NamedCurve(java.lang.String name, java.lang.String oid, int id, boolean register)
name
- the name of the curveoid
- the oid string of the curveid
- the TLS id of the curveregister
- whether to register the NamedCurve in the supported curves repositoryjava.lang.IllegalArgumentException
- if the given TLS id is out-of-range
(not between 1 and 216-1);
or name
is null
public java.lang.String getName()
getName
in class NamedGroup
public java.lang.String getOID()
null
if the oid not known)public int getID()
getID
in class NamedGroup
public java.lang.Object clone()
clone
in class NamedGroup
public java.lang.String toString()
toString
in class NamedGroup