public class KeyPair extends Object implements Serializable
Describes a key pair.
| Constructor and Description |
|---|
KeyPair() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getPrivateKey()
The private key.
|
String |
getPublicKey()
The public key.
|
int |
hashCode() |
void |
setPrivateKey(String privateKey)
The private key.
|
void |
setPublicKey(String publicKey)
The public key.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
KeyPair |
withPrivateKey(String privateKey)
The private key.
|
KeyPair |
withPublicKey(String publicKey)
The public key.
|
public String getPublicKey()
The public key.
Constraints:
Length: 1 -
The public key.
public void setPublicKey(String publicKey)
The public key.
Constraints:
Length: 1 -
publicKey - The public key.
public KeyPair withPublicKey(String publicKey)
The public key.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
publicKey - The public key.
public String getPrivateKey()
The private key.
Constraints:
Length: 1 -
The private key.
public void setPrivateKey(String privateKey)
The private key.
Constraints:
Length: 1 -
privateKey - The private key.
public KeyPair withPrivateKey(String privateKey)
The private key.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
privateKey - The private key.
public String toString()
toString in class ObjectObject.toString()Copyright © 2017. All rights reserved.