org.jclouds.joyent.cloudapi.v6_5.domain
Class Key

java.lang.Object
  extended by org.jclouds.joyent.cloudapi.v6_5.domain.Key
All Implemented Interfaces:
Comparable<Key>

public class Key
extends Object
implements Comparable<Key>

Keys are the means by which you operate on your SSH/signing keys. Currently CloudAPI supports uploads of public keys in the OpenSSH format.

Author:
Adrian Cole
See Also:
docs

Nested Class Summary
static class Key.Builder
           
 
Field Summary
protected  Date created
           
protected  String key
           
protected  String name
           
 
Constructor Summary
Key(String name, String key, Date created)
           
 
Method Summary
static Key.Builder builder()
           
 int compareTo(Key that)
           
 boolean equals(Object object)
           
 String get()
          OpenSSH formatted public key
 Date getCreated()
          Date the key was created
 String getName()
          Name for this key
 int hashCode()
           
 Key.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected final String name

key

protected final String key

created

protected final transient Date created
Constructor Detail

Key

@ConstructorProperties(value={"name","key","created"})
public Key(String name,
                                      String key,
                                      Date created)
Method Detail

builder

public static Key.Builder builder()

toBuilder

public Key.Builder toBuilder()

getName

public String getName()
Name for this key


get

public String get()
OpenSSH formatted public key


getCreated

public Date getCreated()
Date the key was created


equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(Key that)
Specified by:
compareTo in interface Comparable<Key>


Copyright © 2009-2012 jclouds. All Rights Reserved.