com.mindbright.jca.security
Class KeyPair

java.lang.Object
  extended by com.mindbright.jca.security.KeyPair

public final class KeyPair
extends java.lang.Object

Handles a public/private pair of keys

See Also:
KeyPairGenerator, SSH2KeyPairFile

Constructor Summary
KeyPair(PublicKey publicKey, PrivateKey privateKey)
           
 
Method Summary
 PrivateKey getPrivate()
           
 PublicKey getPublic()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyPair

public KeyPair(PublicKey publicKey,
               PrivateKey privateKey)
Method Detail

getPublic

public PublicKey getPublic()

getPrivate

public PrivateKey getPrivate()