org.jclouds.ec2.domain
Class KeyPair

java.lang.Object
  extended by org.jclouds.ec2.domain.KeyPair
All Implemented Interfaces:
Comparable<KeyPair>

public class KeyPair
extends Object
implements Comparable<KeyPair>

Author:
Adrian Cole
See Also:

Nested Class Summary
static class KeyPair.Builder
           
 
Constructor Summary
KeyPair(String region, String keyName, String sha1OfPrivateKey, String keyMaterial, String fingerprint)
           
 
Method Summary
static KeyPair.Builder builder()
           
 int compareTo(KeyPair o)
          
 boolean equals(Object obj)
           
 String getFingerprint()
          fingerprint per the following spec
 String getKeyFingerprint()
          Deprecated. 
 String getKeyMaterial()
          An unencrypted PEM encoded RSA private key.
 String getKeyName()
          The key pair name provided in the original request.
 String getRegion()
          Key pairs (to connect to instances) are Region-specific.
 String getSha1OfPrivateKey()
          A SHA-1 digest of the DER encoded private key.
 int hashCode()
           
 KeyPair.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyPair

public KeyPair(String region,
               String keyName,
               String sha1OfPrivateKey,
               @Nullable
               String keyMaterial,
               @Nullable
               String fingerprint)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

builder

public static KeyPair.Builder builder()

getRegion

public String getRegion()
Key pairs (to connect to instances) are Region-specific.


compareTo

public int compareTo(KeyPair o)

Specified by:
compareTo in interface Comparable<KeyPair>

getKeyFingerprint

@Deprecated
public String getKeyFingerprint()
Deprecated. 

See Also:
getSha1OfPrivateKey()

getSha1OfPrivateKey

public String getSha1OfPrivateKey()
A SHA-1 digest of the DER encoded private key.

See Also:
SshKeys.sha1(java.security.spec.RSAPrivateCrtKeySpec)

getFingerprint

public String getFingerprint()
fingerprint per the following spec

See Also:
SshKeys.fingerprint(java.math.BigInteger, java.math.BigInteger)

getKeyMaterial

public String getKeyMaterial()
An unencrypted PEM encoded RSA private key.


getKeyName

public String getKeyName()
The key pair name provided in the original request.


hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toBuilder

public KeyPair.Builder toBuilder()


Copyright © 2009-2011 jclouds. All Rights Reserved.