public interface KeyPairApi extends Closeable
| Modifier and Type | Method and Description |
|---|---|
SshKey |
create(String name,
String publicKey)
Creates a new SSH key pair.
|
void |
delete(int id)
Deletes an existing SSH key pair.
|
SshKey |
edit(int id,
String newPublicKey)
Changes the SSH key for the given key pair.
|
SshKey |
get(int id)
Gets the details of an existing SSH key pair.
|
List<SshKey> |
list()
Lists all existing SSH key pairs.
|
List<SshKey> list()
SshKey get(int id)
id - The id of the SSH key pair.null if no key
exists with the given id.SshKey create(String name, String publicKey)
name - The name of the key pair.publicKey - The public key.SshKey edit(int id, String newPublicKey)
id - The id of the key pair.newPublicKey - The new public key.void delete(int id)
id - The id of the key pair.Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.