|
IAIK ECC version 2.18 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object iaik.security.ecc.util.PointFormatter
This class is used to format EC points. This means it is responsible for the ASN.1 encoding and decoding of a point's X and Y coordinate.
Field Summary | |
protected PointCoDec |
codec_
The Point Encoder and Decoder. |
protected int |
compressionMethods_
By default don't compress EC points. |
protected static PointFormatter |
instance_
The singleton instance. |
Constructor Summary | |
protected |
PointFormatter()
Use the static getInstance factory method. |
Method Summary | |
int |
getDefaultCompressionMethods()
Returns the default compression methods used. |
static PointFormatter |
getInstance()
Returns an point formatter instance |
PointCoDec |
getPointCodec()
Gets the codec to format the ec points. |
void |
setDefaultCompressionMethod(int compressionMethod)
Sets the default compression method. |
void |
setPointCoDec(PointCoDec pointCodec)
Sets the codec to be used to encode and decode ec points. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static PointFormatter instance_
protected PointCoDec codec_
protected int compressionMethods_
Constructor Detail |
protected PointFormatter()
Method Detail |
public static PointFormatter getInstance()
public int getDefaultCompressionMethods()
public PointCoDec getPointCodec()
public void setDefaultCompressionMethod(int compressionMethod)
compressionMethod
- PointCoDec.COMPRESSED
,
PointCoDec.UNCOMPRESSED
public void setPointCoDec(PointCoDec pointCodec)
pointCodec
-
|
IAIK ECC version 2.18 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |