@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KeyPairInfo extends Object implements Serializable, Cloneable
Describes a key pair.
Constructor and Description |
---|
KeyPairInfo() |
Modifier and Type | Method and Description |
---|---|
KeyPairInfo |
clone() |
boolean |
equals(Object obj) |
Date |
getCreateTime()
If you used Amazon EC2 to create the key pair, this is the date and time when the key was created, in ISO 8601 date-time format, in the UTC time
zone.
|
String |
getKeyFingerprint()
If you used CreateKeyPair to create the key pair:
|
String |
getKeyName()
The name of the key pair.
|
String |
getKeyPairId()
The ID of the key pair.
|
String |
getKeyType()
The type of key pair.
|
String |
getPublicKey()
The public key material.
|
List<Tag> |
getTags()
Any tags applied to the key pair.
|
int |
hashCode() |
void |
setCreateTime(Date createTime)
If you used Amazon EC2 to create the key pair, this is the date and time when the key was created, in ISO 8601 date-time format, in the UTC time
zone.
|
void |
setKeyFingerprint(String keyFingerprint)
If you used CreateKeyPair to create the key pair:
|
void |
setKeyName(String keyName)
The name of the key pair.
|
void |
setKeyPairId(String keyPairId)
The ID of the key pair.
|
void |
setKeyType(String keyType)
The type of key pair.
|
void |
setPublicKey(String publicKey)
The public key material.
|
void |
setTags(Collection<Tag> tags)
Any tags applied to the key pair.
|
String |
toString()
Returns a string representation of this object.
|
KeyPairInfo |
withCreateTime(Date createTime)
If you used Amazon EC2 to create the key pair, this is the date and time when the key was created, in ISO 8601 date-time format, in the UTC time
zone.
|
KeyPairInfo |
withKeyFingerprint(String keyFingerprint)
If you used CreateKeyPair to create the key pair:
|
KeyPairInfo |
withKeyName(String keyName)
The name of the key pair.
|
KeyPairInfo |
withKeyPairId(String keyPairId)
The ID of the key pair.
|
KeyPairInfo |
withKeyType(KeyType keyType)
The type of key pair.
|
KeyPairInfo |
withKeyType(String keyType)
The type of key pair.
|
KeyPairInfo |
withPublicKey(String publicKey)
The public key material.
|
KeyPairInfo |
withTags(Collection<Tag> tags)
Any tags applied to the key pair.
|
KeyPairInfo |
withTags(Tag... tags)
Any tags applied to the key pair.
|
public void setKeyPairId(String keyPairId)
The ID of the key pair.
keyPairId
- The ID of the key pair.public String getKeyPairId()
The ID of the key pair.
public KeyPairInfo withKeyPairId(String keyPairId)
The ID of the key pair.
keyPairId
- The ID of the key pair.public void setKeyFingerprint(String keyFingerprint)
If you used CreateKeyPair to create the key pair:
For RSA key pairs, the key fingerprint is the SHA-1 digest of the DER encoded private key.
For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.
If you used ImportKeyPair to provide Amazon Web Services the public key:
For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as specified in section 4 of RFC4716.
For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.
keyFingerprint
- If you used CreateKeyPair to create the key pair:
For RSA key pairs, the key fingerprint is the SHA-1 digest of the DER encoded private key.
For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.
If you used ImportKeyPair to provide Amazon Web Services the public key:
For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as specified in section 4 of RFC4716.
For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.
public String getKeyFingerprint()
If you used CreateKeyPair to create the key pair:
For RSA key pairs, the key fingerprint is the SHA-1 digest of the DER encoded private key.
For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.
If you used ImportKeyPair to provide Amazon Web Services the public key:
For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as specified in section 4 of RFC4716.
For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.
For RSA key pairs, the key fingerprint is the SHA-1 digest of the DER encoded private key.
For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.
If you used ImportKeyPair to provide Amazon Web Services the public key:
For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as specified in section 4 of RFC4716.
For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.
public KeyPairInfo withKeyFingerprint(String keyFingerprint)
If you used CreateKeyPair to create the key pair:
For RSA key pairs, the key fingerprint is the SHA-1 digest of the DER encoded private key.
For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.
If you used ImportKeyPair to provide Amazon Web Services the public key:
For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as specified in section 4 of RFC4716.
For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.
keyFingerprint
- If you used CreateKeyPair to create the key pair:
For RSA key pairs, the key fingerprint is the SHA-1 digest of the DER encoded private key.
For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.
If you used ImportKeyPair to provide Amazon Web Services the public key:
For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as specified in section 4 of RFC4716.
For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.
public void setKeyName(String keyName)
The name of the key pair.
keyName
- The name of the key pair.public String getKeyName()
The name of the key pair.
public KeyPairInfo withKeyName(String keyName)
The name of the key pair.
keyName
- The name of the key pair.public void setKeyType(String keyType)
The type of key pair.
keyType
- The type of key pair.KeyType
public String getKeyType()
The type of key pair.
KeyType
public KeyPairInfo withKeyType(String keyType)
The type of key pair.
keyType
- The type of key pair.KeyType
public KeyPairInfo withKeyType(KeyType keyType)
The type of key pair.
keyType
- The type of key pair.KeyType
public List<Tag> getTags()
Any tags applied to the key pair.
public void setTags(Collection<Tag> tags)
Any tags applied to the key pair.
tags
- Any tags applied to the key pair.public KeyPairInfo withTags(Tag... tags)
Any tags applied to the key pair.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Any tags applied to the key pair.public KeyPairInfo withTags(Collection<Tag> tags)
Any tags applied to the key pair.
tags
- Any tags applied to the key pair.public void setPublicKey(String publicKey)
The public key material.
publicKey
- The public key material.public String getPublicKey()
The public key material.
public KeyPairInfo withPublicKey(String publicKey)
The public key material.
publicKey
- The public key material.public void setCreateTime(Date createTime)
If you used Amazon EC2 to create the key pair, this is the date and time when the key was created, in ISO 8601 date-time format, in the UTC time zone.
If you imported an existing key pair to Amazon EC2, this is the date and time the key was imported, in ISO 8601 date-time format, in the UTC time zone.
createTime
- If you used Amazon EC2 to create the key pair, this is the date and time when the key was created, in ISO 8601 date-time format, in the UTC
time zone.
If you imported an existing key pair to Amazon EC2, this is the date and time the key was imported, in ISO 8601 date-time format, in the UTC time zone.
public Date getCreateTime()
If you used Amazon EC2 to create the key pair, this is the date and time when the key was created, in ISO 8601 date-time format, in the UTC time zone.
If you imported an existing key pair to Amazon EC2, this is the date and time the key was imported, in ISO 8601 date-time format, in the UTC time zone.
If you imported an existing key pair to Amazon EC2, this is the date and time the key was imported, in ISO 8601 date-time format, in the UTC time zone.
public KeyPairInfo withCreateTime(Date createTime)
If you used Amazon EC2 to create the key pair, this is the date and time when the key was created, in ISO 8601 date-time format, in the UTC time zone.
If you imported an existing key pair to Amazon EC2, this is the date and time the key was imported, in ISO 8601 date-time format, in the UTC time zone.
createTime
- If you used Amazon EC2 to create the key pair, this is the date and time when the key was created, in ISO 8601 date-time format, in the UTC
time zone.
If you imported an existing key pair to Amazon EC2, this is the date and time the key was imported, in ISO 8601 date-time format, in the UTC time zone.
public String toString()
toString
in class Object
Object.toString()
public KeyPairInfo clone()