java.security
Class KeyPair
java.lang.Object
|
+--java.security.KeyPair
All Implemented Interfaces:
Serializable
KeyPair serves as a simple container for public and private keys.
If properly initialized, this class should be treated like the
private key since it contains it and take approriate security
measures.
Author:KeyPair
public KeyPair(java.security.PublicKey publicKey, java.security.PrivateKey privateKey)
Initializes the KeyPair with a pubilc and private key.
Parameters:
getPrivate
public PrivateKey getPrivate()
Returns the private key stored in the KeyPair
Returns:
getPublic
public PublicKey getPublic()
Returns the public key stored in the KeyPair
Returns: