Top Description Methods
org.bouncycastle.jce.interfaces

public Interface ECPointEncoder

Known Direct Implementers
org.bouncycastle.jce.provider.JCEECPrivateKey, org.bouncycastle.jce.provider.JCEECPublicKey, org.bouncycastle.jcajce.provider.asymmetric.dstu.BCDSTU4145PrivateKey, org.bouncycastle.jcajce.provider.asymmetric.dstu.BCDSTU4145PublicKey, org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey, org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey, org.bouncycastle.jcajce.provider.asymmetric.ecgost.BCECGOST3410PrivateKey, org.bouncycastle.jcajce.provider.asymmetric.ecgost.BCECGOST3410PublicKey, org.bouncycastle.jcajce.provider.asymmetric.ecgost12.BCECGOST3410_2012PrivateKey, org.bouncycastle.jcajce.provider.asymmetric.ecgost12.BCECGOST3410_2012PublicKey

All BC elliptic curve keys implement this interface. You need to cast the key to get access to it.

By default BC keys produce encodings without point compression, to turn this on call setPointFormat() with "COMPRESSED".

Method Summary

Modifier and TypeMethod and Description
public void
setPointFormat(String
the style to use.
style
)

Set the formatting for encoding of points.

Method Detail

setPointFormatback to summary
public void setPointFormat(String style)

Set the formatting for encoding of points. If the String "UNCOMPRESSED" is passed in point compression will not be used. If the String "COMPRESSED" is passed point compression will be used. The default is "UNCOMPRESSED".

Parameters
style:String

the style to use.