Class CredentialValidationResult

    • Constructor Detail

      • CredentialValidationResult

        protected CredentialValidationResult()
        Success only constructor.
      • CredentialValidationResult

        public CredentialValidationResult​(@Nonnull @Nonempty
                                          String sErrorMsg)
        Constructor with an error message
        Parameters:
        sErrorMsg - The error message. May neither be null nor empty.
    • Method Detail

      • getErrorMessage

        @Nonnull
        @Nonempty
        public final String getErrorMessage()
      • isSuccess

        public boolean isSuccess()
        Specified by:
        isSuccess in interface com.helger.commons.state.ISuccessIndicator
      • isFailure

        public boolean isFailure()
        Specified by:
        isFailure in interface com.helger.commons.state.ISuccessIndicator
      • getDisplayText

        @Nullable
        public String getDisplayText​(@Nonnull
                                     Locale aDisplayLocale)
        Specified by:
        getDisplayText in interface com.helger.commons.text.display.IHasDisplayText