Class AuthenticationFailed

    • Constructor Detail

      • AuthenticationFailed

        public AuthenticationFailed()
        Necessary for JSON Serialization.
      • AuthenticationFailed

        public AuthenticationFailed​(AuthenticationFailureReason authenticationFailure)
        Parameters:
        authenticationFailure - The failure reason
      • AuthenticationFailed

        public AuthenticationFailed​(java.lang.String message)
        Parameters:
        message - The authentication failure description
    • Method Detail

      • createMessage

        protected java.lang.String createMessage​(AuthenticationFailureReason authenticationFailure)
        Generates a Title Case string for give authentication Failure.
        Parameters:
        authenticationFailure - the authentication failure
        Returns:
        the Title Case String
      • getMessage

        public java.util.Optional<java.lang.String> getMessage()
        message getter.
        Specified by:
        getMessage in interface AuthenticationResponse
        Returns:
        Failure message
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object