The KeyPair Class
The
KeyPair class is a simple holder for a key
pair (a public key and a private key). It has two public methods,
one for returning the private key, and the other for returning the
public key: PrivateKey getPrivate()
PublicKey getPublic()