java.lang.Object
java.security.spec.ECPublicKeySpec
java.security.spec.SM2PublicKeySpec
- All Implemented Interfaces:
KeySpec
A SM2 public key with the specified value.
-
Constructor Summary
ConstructorsConstructorDescriptionSM2PublicKeySpec(byte[] encodedPubPoint) Create a newSM2PublicKeySpecwith an encoded public point.SM2PublicKeySpec(ECPoint pubPoint) Create a newSM2PublicKeySpecwith a public point. -
Method Summary
Methods declared in class java.security.spec.ECPublicKeySpec
getParams, getW
-
Constructor Details
-
SM2PublicKeySpec
Create a newSM2PublicKeySpecwith a public point.- Parameters:
pubPoint- the public point.
-
SM2PublicKeySpec
public SM2PublicKeySpec(byte[] encodedPubPoint) Create a newSM2PublicKeySpecwith an encoded public point.- Parameters:
encodedPubPoint- the public point encoded in the format0x04||x||y.xandyare the point coordinates.
-