Interface AuthenticationResponse

  • All Superinterfaces:
    java.io.Serializable
    All Known Implementing Classes:
    AuthenticationFailed, UserDetails

    public interface AuthenticationResponse
    extends java.io.Serializable
    Since:
    1.0
    Author:
    Sergio del Amo
    • Method Detail

      • isAuthenticated

        default boolean isAuthenticated()
        Defaults to false.
        Returns:
        true or false depending on whether the user is authenticated
      • getMessage

        java.util.Optional<java.lang.String> getMessage()
        Returns:
        A message if the response chose to include one