public class AuthenticationFailed extends java.lang.Object implements AuthenticationResponse
Constructor and Description |
---|
AuthenticationFailed()
Necessary for JSON Serialization.
|
AuthenticationFailed(AuthenticationFailureReason authenticationFailure) |
AuthenticationFailed(java.lang.String message) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
createMessage(AuthenticationFailureReason authenticationFailure)
Generates a Title Case string for give authentication Failure.
|
boolean |
equals(java.lang.Object o) |
java.util.Optional<Authentication> |
getAuthentication() |
java.util.Optional<java.lang.String> |
getMessage()
message getter.
|
AuthenticationFailureReason |
getReason() |
int |
hashCode() |
public AuthenticationFailed()
public AuthenticationFailed(AuthenticationFailureReason authenticationFailure)
authenticationFailure
- The failure reasonpublic AuthenticationFailed(java.lang.String message)
message
- The authentication failure descriptionprotected java.lang.String createMessage(AuthenticationFailureReason authenticationFailure)
authenticationFailure
- the authentication failurepublic java.util.Optional<Authentication> getAuthentication()
getAuthentication
in interface AuthenticationResponse
public java.util.Optional<java.lang.String> getMessage()
getMessage
in interface AuthenticationResponse
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AuthenticationFailureReason getReason()