Class AuthenticationResult
- java.lang.Object
-
- de.codecamp.vaadin.security.spring.authentication.AuthenticationResult
-
- All Implemented Interfaces:
Serializable
public class AuthenticationResult extends Object implements Serializable
Contains the result of an authentication attempt.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthenticationResultfailure(Exception exception)Optional<Exception>getException()The exception associated with the authentication failure, if available.booleanisFailure()booleanisSuccess()static AuthenticationResultsuccess()
-
-
-
Method Detail
-
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 ofAuthenticationException.- Returns:
- exception associated with the authentication failure
-
success
public static AuthenticationResult success()
-
failure
public static AuthenticationResult failure(Exception exception)
-
-