| Constructor and Description |
|---|
KeyPair(PublicKey publicKey,
PrivateKey privateKey)
Constructor that takes a public and a private key.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object otherObject)
Compares all member variables of this object with the other object.
|
PrivateKey |
getPrivateKey()
Get the private key part of this key-pair.
|
PublicKey |
getPublicKey()
Get the public key part of this key-pair.
|
int |
hashCode()
The overriding of this method should ensure that the objects of this
class work correctly in a hashtable.
|
void |
setPrivateKey(PrivateKey privateKey)
Set the private key part of this key-pair.
|
void |
setPublicKey(PublicKey publicKey)
Set the public key part of this key-pair.
|
String |
toString()
Returns a string representation of the current object.
|
public KeyPair(PublicKey publicKey, PrivateKey privateKey)
publicKey - The public key of the key-pair.privateKey - The private key of the key-pair.public PublicKey getPublicKey()
public void setPublicKey(PublicKey publicKey)
publicKey - The public key part of this key-pair.public PrivateKey getPrivateKey()
public void setPrivateKey(PrivateKey privateKey)
privateKey - he private key part of this key-pair.public String toString()
public boolean equals(Object otherObject)
Copyright © 2020. All rights reserved.