public class UserSSHKeyStore extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_KEY_NAME |
Constructor and Description |
---|
UserSSHKeyStore(String user,
Path rootPath) |
Modifier and Type | Method and Description |
---|---|
void |
addUserKey(SSHPublicKey key) |
Optional<SSHPublicKey> |
getKeyById(String keyId) |
String |
getUser() |
Collection<SSHPublicKey> |
getUserKeys() |
void |
removeUserKey(SSHPublicKey oldKey) |
public static final String DEFAULT_KEY_NAME
public String getUser()
public Collection<SSHPublicKey> getUserKeys()
public void addUserKey(SSHPublicKey key)
public void removeUserKey(SSHPublicKey oldKey)
public Optional<SSHPublicKey> getKeyById(String keyId)
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.