@Dependent @Default public class DefaultSSHKeyStore extends Object implements SSHKeyStore
| Modifier and Type | Field and Description |
|---|---|
static String |
SSH_KEYS_FOLDER |
static String |
SSH_KEYS_PATH_PARAM |
static String |
USER_DIR |
| Constructor and Description |
|---|
DefaultSSHKeyStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
addUserKey(String userName,
SSHPublicKey key) |
Collection<SSHPublicKey> |
getUserKeys(String userName) |
UserSSHKeyStore |
getUserKeyStore(String userName) |
void |
init() |
void |
removeUserKey(String userName,
SSHPublicKey key) |
void |
updateUserKey(String userName,
SSHPublicKey key) |
public static final String USER_DIR
public static final String SSH_KEYS_PATH_PARAM
public static final String SSH_KEYS_FOLDER
@PostConstruct public void init()
public UserSSHKeyStore getUserKeyStore(String userName)
public void addUserKey(String userName, SSHPublicKey key)
addUserKey in interface SSHKeyStorepublic void removeUserKey(String userName, SSHPublicKey key)
removeUserKey in interface SSHKeyStorepublic void updateUserKey(String userName, SSHPublicKey key)
updateUserKey in interface SSHKeyStorepublic Collection<SSHPublicKey> getUserKeys(String userName)
getUserKeys in interface SSHKeyStoreCopyright © 2012–2019 JBoss by Red Hat. All rights reserved.