public class KeyPair
extends java.lang.Object
implements java.io.Serializable
Describes a key pair.
Constructor and Description |
---|
KeyPair() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPrivateKey()
The private key.
|
java.lang.String |
getPublicKey()
The public key.
|
int |
hashCode() |
void |
setPrivateKey(java.lang.String privateKey)
The private key.
|
void |
setPublicKey(java.lang.String publicKey)
The public key.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
KeyPair |
withPrivateKey(java.lang.String privateKey)
The private key.
|
KeyPair |
withPublicKey(java.lang.String publicKey)
The public key.
|
public java.lang.String getPublicKey()
The public key.
Constraints:
Length: 1 -
The public key.
public void setPublicKey(java.lang.String publicKey)
The public key.
Constraints:
Length: 1 -
publicKey
- The public key.
public KeyPair withPublicKey(java.lang.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 java.lang.String getPrivateKey()
The private key.
Constraints:
Length: 1 -
The private key.
public void setPrivateKey(java.lang.String privateKey)
The private key.
Constraints:
Length: 1 -
privateKey
- The private key.
public KeyPair withPrivateKey(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.