Interface Authenticator

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void aborted​(String reason)
      Task to be performed when the authentication process is aborted by the user.
      void connected​(User user)
      Task to be performed when a user has been fetched and ready to use.
      void failed​(String message)
      Task to be performed when the authentication process has been unsuccessful.
      void finished()
      Optional additional task to be performed after the authentication process has finished.
    • Method Detail

      • connected

        void connected​(User user)
        Task to be performed when a user has been fetched and ready to use.
        Parameters:
        user - An authenticated user.
      • failed

        void failed​(String message)
        Task to be performed when the authentication process has been unsuccessful.
        Parameters:
        message - Reason for failure
      • aborted

        void aborted​(String reason)
        Task to be performed when the authentication process is aborted by the user.
        Parameters:
        reason - A String with the reason for cancellation.
      • finished

        void finished()
        Optional additional task to be performed after the authentication process has finished. Usually these tasks are executed at the end and irrespective of the status of the authentication process.