public class SM2KeyPair extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
String |
jsonPrivateKey |
String |
jsonPublicKey |
| 构造器和说明 |
|---|
SM2KeyPair() |
| 限定符和类型 | 方法和说明 |
|---|---|
static SM2KeyPair |
create() |
static SM2KeyPair |
create(BigInteger privateKey)
通过私钥恢复
|
static SM2KeyPair |
create(byte[] seed) |
String |
getJSONPrivateKey() |
String |
getJSONPublicKey() |
BigInteger |
getPrivateKey() |
org.bouncycastle.math.ec.ECPoint |
getPublicKey() |
void |
setPrivateKey(BigInteger privateKey) |
void |
setPublicKey(org.bouncycastle.math.ec.ECPoint publicKey) |
public BigInteger getPrivateKey()
public org.bouncycastle.math.ec.ECPoint getPublicKey()
public void setPrivateKey(BigInteger privateKey)
public void setPublicKey(org.bouncycastle.math.ec.ECPoint publicKey)
public String getJSONPublicKey()
public String getJSONPrivateKey()
public static SM2KeyPair create(byte[] seed)
public static SM2KeyPair create()
public static SM2KeyPair create(BigInteger privateKey)
privateKey - 私钥Copyright © 2022. All rights reserved.