All Packages Class Hierarchy This Package Previous Next Index
Class is.hi.logir.cryptonite.KeyPair
java.lang.Object
|
+----is.hi.logir.cryptonite.Cryptonite
|
+----is.hi.logir.cryptonite.KeyPair
- public class KeyPair
- extends Cryptonite
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.
Either the public or private fields may be null if the key is unknown..
- Author:
- Logi Ragnarsson (logir@hi.is)
- See Also:
- Key, KeyRing
-
KeyPair(Key, Key)
- Create a new KeyPair holder.
-
getPrivate()
- Return the private key from the pair.
-
getPublic()
- Return the public key from the pair.
-
toString()
-
KeyPair
public KeyPair(Key pub,
Key pri)
- Create a new KeyPair holder.
getPublic
public Key getPublic()
- Return the public key from the pair.
getPrivate
public Key getPrivate()
- Return the private key from the pair.
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index