java.lang.Object
de.codecamp.vaadin.security.spring.authentication.AuthenticationResult
All Implemented Interfaces:
Serializable

public final class AuthenticationResult extends Object implements Serializable
Contains the result of an authentication attempt.
See Also:
  • Method Details

    • isSuccess

      public boolean isSuccess()
    • isFailure

      public boolean isFailure()
    • getException

      public Optional<Exception> getException()
      The exception associated with the authentication failure, if available. Typically this is a subclass of AuthenticationException.
      Returns:
      exception associated with the authentication failure
    • success

      public static AuthenticationResult success()
    • failure

      public static AuthenticationResult failure(Exception exception)