Interface SSHKeyEditorService
-
public interface SSHKeyEditorServiceRemote service for the Key service
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddKey(String name, String keyContent)Adds a new SSh Key into theSSHKeyStorefor the current user.voiddeleteKey(PortableSSHPublicKey key)Deletes the givenPortableSSHPublicKeyfor the current userCollection<PortableSSHPublicKey>getUserKeys()Retrieves all thePortableSSHPublicKeyfor the current user.
-
-
-
Method Detail
-
getUserKeys
Collection<PortableSSHPublicKey> getUserKeys()
Retrieves all thePortableSSHPublicKeyfor the current user.- Returns:
- A Collection containing the current user's keys
-
deleteKey
void deleteKey(PortableSSHPublicKey key)
Deletes the givenPortableSSHPublicKeyfor the current user- Parameters:
key- ThePortableSSHPublicKeyto add
-
addKey
void addKey(String name, String keyContent)
Adds a new SSh Key into theSSHKeyStorefor the current user.- Parameters:
name- The name of the keykeyContent- ThePublicKeyas String format.
-
-