Package org.jclouds.ec2.domain
Class KeyPair
- java.lang.Object
-
- org.jclouds.ec2.domain.KeyPair
-
- All Implemented Interfaces:
Comparable<KeyPair>
public class KeyPair extends Object implements Comparable<KeyPair>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKeyPair.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static KeyPair.Builderbuilder()intcompareTo(KeyPair o)booleanequals(Object obj)StringgetFingerprint()fingerprint per the following specStringgetKeyMaterial()An unencrypted PEM encoded RSA private key.StringgetKeyName()The key pair name provided in the original request.StringgetRegion()Deprecated.StringgetSha1OfPrivateKey()A SHA-1 digest of the DER encoded private key.inthashCode()KeyPair.BuildertoBuilder()StringtoString()
-
-
-
Method Detail
-
builder
public static KeyPair.Builder builder()
-
getRegion
@Deprecated public String getRegion()
Deprecated.To be removed in jclouds 1.6Warning
Especially on EC2 clones that may not support regions, this value is fragile. Consider alternate means to determine context.
-
compareTo
public int compareTo(KeyPair o)
- Specified by:
compareToin interfaceComparable<KeyPair>
-
getSha1OfPrivateKey
public String getSha1OfPrivateKey()
A SHA-1 digest of the DER encoded private key.
-
getKeyMaterial
public String getKeyMaterial()
An unencrypted PEM encoded RSA private key.
-
getKeyName
public String getKeyName()
The key pair name provided in the original request.
-
toBuilder
public KeyPair.Builder toBuilder()
-
-