public static final class SupportedPointFormats.ECPointFormat
extends java.lang.Object
implements java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
static byte |
COMPRESSED_CHAR2
ECC Point Format COMPRESSED CHAR2 (ANSI X9.62) for characteristic-2 point formats.
|
static byte |
COMPRESSED_PRIME
ECC Point Format COMPRESSED PRIME (ANSI X9.62) for prime point formats.
|
static byte |
UNCOMPRESSED
ECC Point Format UNCOMPRESSED.
|
| Constructor and Description |
|---|
ECPointFormat(java.lang.String name,
int id)
Creates a point format the given name and id.
|
ECPointFormat(java.lang.String name,
int id,
boolean register)
Creates a point format with the given name and id.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Gets a clone of this PointFormat object.
|
boolean |
equals(java.lang.Object obj)
Checks if this PointFormat is equal to the given object.
|
int |
getID()
Gets the TLS id of this point format.
|
java.lang.String |
getName()
Gets the name of the point format.
|
int |
hashCode()
Gets a hash code of this PointFormat object.
|
java.lang.String |
toString()
Gets a String representation of this PointFormat.
|
public static final byte UNCOMPRESSED
public static final byte COMPRESSED_PRIME
public static final byte COMPRESSED_CHAR2
public ECPointFormat(java.lang.String name,
int id)
name - the name of the point formatid - the TLS id of the point formatjava.lang.IllegalArgumentException - if the given TLS id is out-of-range
(not between 0 and 255;
or name is nullpublic ECPointFormat(java.lang.String name,
int id,
boolean register)
name - the name of the point formatid - the TLS id of the point formatregister - whether to register the PointFormat in the supported point formats repositoryjava.lang.IllegalArgumentException - if the given TLS id is out-of-range
(not between 0 and 255);
or name is nullpublic java.lang.String getName()
public int getID()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objecttrue if this PointFormat is equal to the
given object (same point format id), false if
it is not equal to itpublic java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object