Class UserAuthFactoriesFactory


  • public class UserAuthFactoriesFactory
    extends Object

    A factory for user authentication factories to set on SshServer.setUserAuthFactories(java.util.List) based on a comma-separated list of authentication methods.

    Currently, the following methods are supported:

    • password Password authentication against a given JAAS domain.
    • publickey Public key authentication against an OpenSSH authorized_keys file.
    • Constructor Detail

      • UserAuthFactoriesFactory

        public UserAuthFactoriesFactory()
    • Method Detail

      • setAuthMethods

        public void setAuthMethods​(String[] methods)
      • getFactories

        public List<org.apache.sshd.server.auth.UserAuthFactory> getFactories()
      • isPublickeyEnabled

        public boolean isPublickeyEnabled()
      • isPasswordEnabled

        public boolean isPasswordEnabled()
      • isKeyboardInteractive

        public boolean isKeyboardInteractive()