public class AuthorizedKeysStoreImpl extends Object implements PublicKeyStore
This class implements the OpenSSH style authorized_keys public key store.
| Modifier and Type | Field and Description |
|---|---|
protected String |
authorizedKeysFile
The path relative to the users home directory from which to load authorized keys
|
| Constructor and Description |
|---|
AuthorizedKeysStoreImpl()
Create a default authorized_keys store that reads keys from
.ssh/authorized_keys.
|
AuthorizedKeysStoreImpl(String authorizedKeysFile)
Create an authorized keys stores that reads keys from a custom location.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAuthorizedKey(SshPublicKey key,
Connection con)
Checks the given public key by comparing it against the public keys stored
in the users authorized_keys file.
|
protected String authorizedKeysFile
public AuthorizedKeysStoreImpl()
public AuthorizedKeysStoreImpl(String authorizedKeysFile)
authorizedKeysFile - Stringpublic boolean isAuthorizedKey(SshPublicKey key, Connection con)
isAuthorizedKey in interface PublicKeyStorekey - SshPublicKeysessionid - byte[]authenticationProvider - AuthenticationProviderCopyright © 2025. All rights reserved.