org.jclouds.joyent.cloudapi.v6_5.domain
Class Key
java.lang.Object
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
name
protected final String name
key
protected final String key
created
protected final transient Date created
Key
@ConstructorProperties(value={"name","key","created"})
public Key(String name,
String key,
Date created)
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.