|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bitcoin.x6763.crypto.ecdsa.KeyPair
public class KeyPair
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 private key.
Constructor Summary | |
---|---|
KeyPair(PublicKey publicKey,
PrivateKey privateKey)
Constructs a key pair from the given public key and private key |
Method Summary | |
---|---|
PrivateKey |
getPrivate()
Returns the private key component of this key pair |
PublicKey |
getPublic()
Returns the public key component of this key pair |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyPair(PublicKey publicKey, PrivateKey privateKey)
publicKey
- the public keyprivateKey
- the private keyMethod Detail |
---|
public PublicKey getPublic()
public PrivateKey getPrivate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |