Interface PasswordAuthenticator

    • Method Detail

      • handleClientPasswordChangeRequest

        default boolean handleClientPasswordChangeRequest​(ServerSession session,
                                                          String username,
                                                          String oldPassword,
                                                          String newPassword)
        Invoked when the client sends a SSH_MSG_USERAUTH_REQUEST indicating a password change. This can happen if the authenticate method threw PasswordChangeRequiredException thus telling the client that it needs to provide a new password. Throws UnsupportedOperationException by default.
        Parameters:
        session - The ServerSession attempting the authentication
        username - The username credential
        oldPassword - The old password
        newPassword - The new password
        Returns:
        true if password change accepted