Class StaticPasswordAuthenticator

    • Constructor Detail

      • StaticPasswordAuthenticator

        public StaticPasswordAuthenticator​(boolean acceptance)
    • Method Detail

      • isAccepted

        public final boolean isAccepted()
      • authenticate

        public final boolean authenticate​(String username,
                                          String password,
                                          ServerSession session)
        Description copied from interface: PasswordAuthenticator
        Check the validity of a password.
        Specified by:
        authenticate in interface PasswordAuthenticator
        Parameters:
        username - The username credential
        password - The provided password
        session - The ServerSession attempting the authentication
        Returns:
        true indicating if authentication succeeded