Class ValidationResult

java.lang.Object
com.elo.flows.api.components.connection.ValidationResult

public class ValidationResult extends Object
Validation class that can be used in an AuthenticationProvider
  • Constructor Details

    • ValidationResult

      public ValidationResult()
  • Method Details

    • isValid

      public boolean isValid()
      Returns whether this validation process was successful
      Returns:
      true if successful, false otherwise
    • setValid

      public ValidationResult setValid(boolean valid)
      Sets if the validation process was successful
      Parameters:
      valid - the value to set
      Returns:
      a this instance
    • getMsg

      public String getMsg()
      An optional message to show e.g. why the validation was not successful
      Returns:
      the optional message
    • setMsg

      public ValidationResult setMsg(String msg)
      Sets a message to show. E.g. the reason the validation was not successful This parameter is optional
      Parameters:
      msg - the message
      Returns:
      a this instance