|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.security.KeyPair
public final class KeyPair
KeyPair serves as a simple container for public and private keys. If properly initialized, this class should be treated like the private key since it contains it and take approriate security measures.
| Constructor Summary | |
|---|---|
KeyPair(PublicKey publicKey,
PrivateKey privateKey)
Initializes the KeyPair with a pubilc and private key. |
|
| Method Summary | |
|---|---|
PrivateKey |
getPrivate()
Returns the private key stored in the KeyPair |
PublicKey |
getPublic()
Returns the public key stored in the KeyPair |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeyPair(PublicKey publicKey,
PrivateKey privateKey)
publicKey - Public Key to storeprivateKey - Private Key to store| Method Detail |
|---|
public PublicKey getPublic()
public PrivateKey getPrivate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||