All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class IS.hi.logir.cryptonite.KeyPair

java.lang.Object
   |
   +----IS.hi.logir.cryptonite.KeyPair

public class KeyPair
extends Object
This class is a simple holder for a pair of public/private keys. Some encryption algorithms only use a single key, in which case the public and private fields of a KeyPair may reference the same object.

Author:
Logi Ragnarsson (logir@hi.is)
See Also:
Key, KeyRing

Variable Index

 o pri
 o pub

Constructor Index

 o KeyPair(Key, Key)
Create a new KeyPair holder.

Method Index

 o getPrivate()
Return the private key from the pair.
 o getPublic()
Return the public key from the pair.

Variables

 o pub
 Key pub
 o pri
 Key pri

Constructors

 o KeyPair
 public KeyPair(Key pub,
                Key pri)
Create a new KeyPair holder.

Methods

 o getPublic
 public Key getPublic()
Return the public key from the pair.

 o getPrivate
 public Key getPrivate()
Return the private key from the pair.


All Packages  Class Hierarchy  This Package  Previous  Next  Index