iaik.security.ssl
Class SupportedPointFormats.ECPointFormat

java.lang.Object
  extended by iaik.security.ssl.SupportedPointFormats.ECPointFormat
All Implemented Interfaces:
java.lang.Cloneable
Enclosing class:
SupportedPointFormats

public static final class SupportedPointFormats.ECPointFormat
extends java.lang.Object
implements java.lang.Cloneable

TLS ECC PointFormat.


Field Summary
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 Summary
SupportedPointFormats.ECPointFormat(java.lang.String name, int id)
          Creates a point format the given name and id.
SupportedPointFormats.ECPointFormat(java.lang.String name, int id, boolean register)
          Creates a point format with the given name and id.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNCOMPRESSED

public static final byte UNCOMPRESSED
ECC Point Format UNCOMPRESSED.

See Also:
Constant Field Values

COMPRESSED_PRIME

public static final byte COMPRESSED_PRIME
ECC Point Format COMPRESSED PRIME (ANSI X9.62) for prime point formats.

See Also:
Constant Field Values

COMPRESSED_CHAR2

public static final byte COMPRESSED_CHAR2
ECC Point Format COMPRESSED CHAR2 (ANSI X9.62) for characteristic-2 point formats.

See Also:
Constant Field Values
Constructor Detail

SupportedPointFormats.ECPointFormat

public SupportedPointFormats.ECPointFormat(java.lang.String name,
                                           int id)
Creates a point format the given name and id.

Parameters:
name - the name of the point format
id - the TLS id of the point format
Throws:
java.lang.IllegalArgumentException - if the given TLS id is out-of-range (not between 0 and 255; or name is null

SupportedPointFormats.ECPointFormat

public SupportedPointFormats.ECPointFormat(java.lang.String name,
                                           int id,
                                           boolean register)
Creates a point format with the given name and id.

Parameters:
name - the name of the point format
id - the TLS id of the point format
register - whether to register the PointFormat in the supported point formats repository
Throws:
java.lang.IllegalArgumentException - if the given TLS id is out-of-range (not between 0 and 255); or name is null
Method Detail

getName

public java.lang.String getName()
Gets the name of the point format.

Returns:
the name of the point format (or "UNKNOWN" if the name is not known)

getID

public int getID()
Gets the TLS id of this point format.

Returns:
the TLS id of this point format

hashCode

public int hashCode()
Gets a hash code of this PointFormat object.

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code of this PointFormat object.

equals

public boolean equals(java.lang.Object obj)
Checks if this PointFormat is equal to the given object.

Overrides:
equals in class java.lang.Object
Returns:
true if this PointFormat is equal to the given object (same point format id), false if it is not equal to it

clone

public java.lang.Object clone()
Gets a clone of this PointFormat object.

Overrides:
clone in class java.lang.Object
Returns:
a clone of this PointFormat object

toString

public java.lang.String toString()
Gets a String representation of this PointFormat.

Overrides:
toString in class java.lang.Object

This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note).

iSaSiLk 6.0, (c) 2002 IAIK, (c) 2003 - 2015 SIC