Class AuthorizedKeysAuthenticator

java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.common.util.io.ModifiableFileWatcher
org.apache.sshd.server.config.keys.AuthorizedKeysAuthenticator
All Implemented Interfaces:
PublickeyAuthenticator
Direct Known Subclasses:
DefaultAuthorizedKeysAuthenticator

public class AuthorizedKeysAuthenticator extends org.apache.sshd.common.util.io.ModifiableFileWatcher implements PublickeyAuthenticator
Uses the authorized keys file to implement PublickeyAuthenticator while automatically re-loading the keys if the file has changed when a new authentication request is received. Note: by default, the only validation of the username is that it is not null/empty - see isValidUsername(String, ServerSession)
Author:
Apache MINA SSHD Project
  • Field Details

    • STD_AUTHORIZED_KEYS_FILENAME

      public static final String STD_AUTHORIZED_KEYS_FILENAME
      Standard OpenSSH authorized keys file name
      See Also:
  • Constructor Details

    • AuthorizedKeysAuthenticator

      public AuthorizedKeysAuthenticator(Path file)
    • AuthorizedKeysAuthenticator

      public AuthorizedKeysAuthenticator(Path file, LinkOption... options)
  • Method Details