Class NovaKeypair
- java.lang.Object
-
- org.openstack4j.openstack.compute.domain.NovaKeypair
-
- All Implemented Interfaces:
Serializable,Keypair,ModelEntity
public class NovaKeypair extends Object implements Keypair
An OpenStack Keypair is an SSH Key- Author:
- Jeremy Unruh
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNovaKeypair.Keypairs
-
Constructor Summary
Constructors Constructor Description NovaKeypair()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NovaKeypaircreate(String name, String publicKey)Used internally by the domain side of the API to create a new Keypair on an OpenStack serverDategetCreatedAt()time createdBooleangetDeleted()DategetDeletedAt()time deletedStringgetFingerprint()IntegergetId()StringgetName()The name associated with the keypairStringgetPrivateKey()The private key associated with this keypair.StringgetPublicKey()The public SSH keyDategetUpdatedAt()time updatedStringgetUserId()StringtoString()
-
-
-
Method Detail
-
create
public static NovaKeypair create(String name, String publicKey)
Used internally by the domain side of the API to create a new Keypair on an OpenStack server- Parameters:
name- the name of the keypairpublicKey- the public key or null to have OS generated one- Returns:
- NovaKeypair
-
getName
public String getName()
The name associated with the keypair
-
getPublicKey
public String getPublicKey()
The public SSH key- Specified by:
getPublicKeyin interfaceKeypair- Returns:
- the public key
-
getPrivateKey
public String getPrivateKey()
The private key associated with this keypair. Only populated on create when a public key is not specified and is auto-generated by the server- Specified by:
getPrivateKeyin interfaceKeypair- Returns:
- the private key
-
getFingerprint
public String getFingerprint()
- Specified by:
getFingerprintin interfaceKeypair- Returns:
- the server fingerprint
-
getUserId
public String getUserId()
-
getDeleted
public Boolean getDeleted()
- Specified by:
getDeletedin interfaceKeypair- Returns:
- is deleted
-
getCreatedAt
public Date getCreatedAt()
time created- Specified by:
getCreatedAtin interfaceKeypair
-
getUpdatedAt
public Date getUpdatedAt()
time updated- Specified by:
getUpdatedAtin interfaceKeypair
-
getDeletedAt
public Date getDeletedAt()
time deleted- Specified by:
getDeletedAtin interfaceKeypair
-
-