|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maverick.sshd.PublicKeyAuthenticationProvider
com.maverick.sshd.auth.AuthorizedKeysPublicKeyAuthenticationProvider
public class AuthorizedKeysPublicKeyAuthenticationProvider
This class implements the OpenSSH style authorized_keys public key store.
| Field Summary | |
|---|---|
protected String |
authorizedKeysFile
The path relative to the users home directory from which to load authorized keys |
| Constructor Summary | |
|---|---|
AuthorizedKeysPublicKeyAuthenticationProvider()
Create a default authorized_keys store that reads keys from .ssh/authorized_keys. |
|
AuthorizedKeysPublicKeyAuthenticationProvider(String authorizedKeysFile)
Create an authorized keys stores that reads keys from a custom location. |
|
| Method Summary | |
|---|---|
boolean |
isAuthorizedKey(com.maverick.ssh.components.SshPublicKey key,
Connection con)
Checks the given public key by comparing it against the public keys stored in the users authorized_keys file. |
| Methods inherited from class com.maverick.sshd.PublicKeyAuthenticationProvider |
|---|
getName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String authorizedKeysFile
| Constructor Detail |
|---|
public AuthorizedKeysPublicKeyAuthenticationProvider()
public AuthorizedKeysPublicKeyAuthenticationProvider(String authorizedKeysFile)
authorizedKeysFile - String| Method Detail |
|---|
public boolean isAuthorizedKey(com.maverick.ssh.components.SshPublicKey key,
Connection con)
isAuthorizedKey in class PublicKeyAuthenticationProviderkey - SshPublicKeysessionid - byte[]authenticationProvider - AuthenticationProvider
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||