public final class KeyPair
- Object
- KeyPair
A matched pair of
PublicKey / PrivateKey. Typically produced by
KeyGenerator.generateRsaKeyPair(int).Constructors
public KeyPair(PublicKey publicKey, PrivateKey privateKey) | Bundles an already-paired public/private key. |
Methods
public PublicKey getPublicKey() | Returns the public part of this pair. |
public PrivateKey getPrivateKey() | Returns the private part of this pair. |
Inherited methods
Constructor details
KeyPair
public KeyPair(PublicKey publicKey, PrivateKey privateKey)Bundles an already-paired public/private key.
Method details
getPublicKey
public PublicKey getPublicKey()Returns the public part of this pair.
getPrivateKey
public PrivateKey getPrivateKey()Returns the private part of this pair.