Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ECKeyUtil

        public ECKeyUtil()
    • 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.