~/.ssh/authorized_keys file of the user currently running the server, re-loading it if
necessary. It also (optionally) enforces the same permissions regime as OpenSSH does for the file
permissions. By default also compares the current username with the authenticated one.
| Modifier and Type | Field and Description |
|---|---|
| public static final DefaultAuthorizedKeysAuthenticator | INSTANCE
The default instance that enforces the same permissions regime as |
| private final boolean | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | DefaultAuthorizedKeysAuthenticator(boolean
If strict)true then makes sure that the containing folder has 0700 access and the file 0600Note for Windows it does not check these permissions
|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final String | |
| public final boolean | |
| protected boolean | isValidUsername(String username, ServerSession session)
Overrides org.
|
| protected Collection | reloadAuthorizedKeys(Path path, String username, ServerSession session)
Overrides org.
|
| protected Path | Returns: The original pathThe path, Collection<PosixFilePermission> Path to be validatedThe current perms, Collection<PosixFilePermission> PosixFilePermissionsThe permissions not allowed to exist excluded)
|
| INSTANCE | back to summary |
|---|---|
| public static final DefaultAuthorizedKeysAuthenticator INSTANCE The default instance that enforces the same permissions regime as | |
| strict | back to summary |
|---|---|
| private final boolean strict | |
| user | back to summary |
|---|---|
| private final String user | |
| DefaultAuthorizedKeysAuthenticator | back to summary |
|---|---|
public DefaultAuthorizedKeysAuthenticator(boolean strict)
| |
| DefaultAuthorizedKeysAuthenticator | back to summary |
|---|---|
| public DefaultAuthorizedKeysAuthenticator(String user, boolean strict) | |
| DefaultAuthorizedKeysAuthenticator | back to summary |
|---|---|
| public DefaultAuthorizedKeysAuthenticator(Path path, boolean strict, LinkOption... options) | |
| DefaultAuthorizedKeysAuthenticator | back to summary |
|---|---|
| public DefaultAuthorizedKeysAuthenticator(String user, Path path, boolean strict, LinkOption... options) | |
| getUsername | back to summary |
|---|---|
| public final String getUsername() Implements org.
| |
| isStrict | back to summary |
|---|---|
| public final boolean isStrict() | |
| isValidUsername | back to summary |
|---|---|
| protected boolean isValidUsername(String username, ServerSession session) Overrides org.
| |
| reloadAuthorizedKeys | back to summary |
|---|---|
| protected Collection Overrides org.
| |
| validateFilePath | back to summary |
|---|---|
protected Path validateFilePath(Path path, Collection<PosixFilePermission> perms, Collection<PosixFilePermission> excluded) throws IOException
| |