public class KeyPair extends Object
Constructor and Description |
---|
KeyPair(PublicKey publicKey,
PrivateKey privateKey) |
Modifier and Type | Method and Description |
---|---|
PrivateKey |
getPrivate() |
PublicKey |
getPublic() |
public KeyPair(PublicKey publicKey, PrivateKey privateKey)
publicKey
- non-null, same EncType as privateKeyprivateKey
- non-null, same EncType as publicKeypublic PublicKey getPublic()
public PrivateKey getPrivate()