|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface KeyPairApi
Provides access to the SSH key pair management features.
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface java.io.Closeable |
|---|
close |
| Method Detail |
|---|
List<SshKey> list()
@Nullable 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||