Package com.amazonaws.services.iot.model
Class KeyPair
java.lang.Object
com.amazonaws.services.iot.model.KeyPair
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a key pair.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The private key.The public key.int
hashCode()
void
setPrivateKey
(String privateKey) The private key.void
setPublicKey
(String publicKey) The public key.toString()
Returns a string representation of this object; useful for testing and debugging.withPrivateKey
(String privateKey) The private key.withPublicKey
(String publicKey) The public key.
-
Constructor Details
-
KeyPair
public KeyPair()
-
-
Method Details
-
setPublicKey
The public key.
- Parameters:
publicKey
- The public key.
-
getPublicKey
The public key.
- Returns:
- The public key.
-
withPublicKey
The public key.
- Parameters:
publicKey
- The public key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPrivateKey
The private key.
- Parameters:
privateKey
- The private key.
-
getPrivateKey
The private key.
- Returns:
- The private key.
-
withPrivateKey
The private key.
- Parameters:
privateKey
- The private key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-