MCPcopy Create free account
hub / github.com/SeanDragon/protools / SM2KeyPair

Class SM2KeyPair

security/src/main/java/pro/tools/security/sm/SM2KeyPair.java:12–30  ·  view source on GitHub ↗

SM2密钥对 @author SeanDragon

Source from the content-addressed store, hash-verified

10 * @author SeanDragon
11 */
12public class SM2KeyPair {
13
14 private final ECPoint publicKey;
15 private final BigInteger privateKey;
16
17 SM2KeyPair(ECPoint publicKey, BigInteger privateKey) {
18 this.publicKey = publicKey;
19 this.privateKey = privateKey;
20 }
21
22 public ECPoint getPublicKey() {
23 return publicKey;
24 }
25
26 public BigInteger getPrivateKey() {
27 return privateKey;
28 }
29
30}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected