Module java.base

Class SM2PublicKeySpec

  • All Implemented Interfaces:
    KeySpec

    public final class SM2PublicKeySpec
    extends ECPublicKeySpec
    The SM2 public key specification.
    • Constructor Detail

      • SM2PublicKeySpec

        public SM2PublicKeySpec​(ECPoint w)
        Creates a new SM2 public key specification with the specified
        Parameters:
        w - the EC point
      • SM2PublicKeySpec

        public SM2PublicKeySpec​(byte[] encodedPubPoint)
        Creates a new SM2 public key specification with the specified
        Parameters:
        encodedPubPoint - the encoded public key