Module java.base

Class SM2PublicKeySpec

java.lang.Object
java.security.spec.ECPublicKeySpec
java.security.spec.SM2PublicKeySpec
All Implemented Interfaces:
KeySpec

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

    • 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