Package org.bouncycastle.jcajce.util
Class ECKeyUtil
- java.lang.Object
-
- org.bouncycastle.jcajce.util.ECKeyUtil
-
public class ECKeyUtil extends java.lang.Object
Utility class for EC Keys.
-
-
Constructor Summary
Constructors Constructor Description ECKeyUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.security.interfaces.ECPublicKey
createKeyWithCompression(java.security.interfaces.ECPublicKey ecPublicKey)
Convert an ECPublicKey into an ECPublicKey which always encodes with point compression.
-
-
-
Method Detail
-
createKeyWithCompression
public static java.security.interfaces.ECPublicKey createKeyWithCompression(java.security.interfaces.ECPublicKey ecPublicKey)
Convert an ECPublicKey into an ECPublicKey which always encodes with point compression.- Parameters:
ecPublicKey
- the originating public key.- Returns:
- a wrapped version of ecPublicKey which uses point compression.
-
-