java.lang.Object
java.security.spec.ECPrivateKeySpec
java.security.spec.SM2PrivateKeySpec
- All Implemented Interfaces:
KeySpec
A SM2 private key with the specified value.
-
Constructor Summary
ConstructorsConstructorDescriptionSM2PrivateKeySpec
(byte[] sKey) Create a newSM2PrivateKeySpec
with a key in byte array.Create a newSM2PrivateKeySpec
with a key value. -
Method Summary
Methods declared in class java.security.spec.ECPrivateKeySpec
getParams, getS
-
Constructor Details
-
SM2PrivateKeySpec
Create a newSM2PrivateKeySpec
with a key value.- Parameters:
s
- the private key value.
-
SM2PrivateKeySpec
public SM2PrivateKeySpec(byte[] sKey) Create a newSM2PrivateKeySpec
with a key in byte array.- Parameters:
sKey
- the private key value represented by a byte array.
-