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 |
getKeyFingerprint()
The SHA-1 digest of the DER encoded private key.
|
java.lang.String |
getKeyMaterial()
An unencrypted PEM encoded RSA private key.
|
java.lang.String |
getKeyName()
The name of the key pair.
|
int |
hashCode() |
void |
setKeyFingerprint(java.lang.String keyFingerprint)
The SHA-1 digest of the DER encoded private key.
|
void |
setKeyMaterial(java.lang.String keyMaterial)
An unencrypted PEM encoded RSA private key.
|
void |
setKeyName(java.lang.String keyName)
The name of the key pair.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
KeyPair |
withKeyFingerprint(java.lang.String keyFingerprint)
The SHA-1 digest of the DER encoded private key.
|
KeyPair |
withKeyMaterial(java.lang.String keyMaterial)
An unencrypted PEM encoded RSA private key.
|
KeyPair |
withKeyName(java.lang.String keyName)
The name of the key pair.
|
public java.lang.String getKeyName()
public void setKeyName(java.lang.String keyName)
keyName
- The name of the key pair.public KeyPair withKeyName(java.lang.String keyName)
Returns a reference to this object so that method calls can be chained together.
keyName
- The name of the key pair.public java.lang.String getKeyFingerprint()
public void setKeyFingerprint(java.lang.String keyFingerprint)
keyFingerprint
- The SHA-1 digest of the DER encoded private key.public KeyPair withKeyFingerprint(java.lang.String keyFingerprint)
Returns a reference to this object so that method calls can be chained together.
keyFingerprint
- The SHA-1 digest of the DER encoded private key.public java.lang.String getKeyMaterial()
public void setKeyMaterial(java.lang.String keyMaterial)
keyMaterial
- An unencrypted PEM encoded RSA private key.public KeyPair withKeyMaterial(java.lang.String keyMaterial)
Returns a reference to this object so that method calls can be chained together.
keyMaterial
- An unencrypted PEM encoded RSA 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.