SM2密钥对 @author SeanDragon
| 10 | * @author SeanDragon |
| 11 | */ |
| 12 | public 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected