@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 SSHKeyStore
public void removeUserKey(String userName, SSHPublicKey key)
removeUserKey
in interface SSHKeyStore
public void updateUserKey(String userName, SSHPublicKey key)
updateUserKey
in interface SSHKeyStore
public Collection<SSHPublicKey> getUserKeys(String userName)
getUserKeys
in interface SSHKeyStore
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.