java.security
public final class KeyPair extends Object implements Serializable
Constructor Summary | |
---|---|
KeyPair(PublicKey publicKey, PrivateKey privateKey)
Initializes the KeyPair with a pubilc and private key. |
Method Summary | |
---|---|
PrivateKey | getPrivate()
Returns the private key stored in the KeyPair |
PublicKey | getPublic()
Returns the public key stored in the KeyPair |
Parameters: publicKey Public Key to store privateKey Private Key to store
Returns: The private key
Returns: The public key