bees.core.security
Class KeyPair
java.lang.Object
|
+--bees.core.security.KeyPair
- public final class KeyPair
- extends java.lang.Object
This class is a simple holder for a key pair (a public key and a private
key). It does not enforce any security, and, when initialized, should be
treated like a PrivateKey.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
KeyPair
public KeyPair(PrivateKey prvKey,
PublicKey pubKey)
- Construct a KeyPair with the given values.
- Parameters:
prvKey
- The private key.pubKey
- The public key.
getPrivate
public PrivateKey getPrivate()
- Returns:
- The private key.
getPublic
public PublicKey getPublic()
- Returns:
- The public key.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- See Also:
Object.toString()
This documentation is Copyright (C) 2002 The University of Utah. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for Bees v0.5.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/