Class DomainAuthResult

java.lang.Object
org.jivesoftware.openfire.session.DomainAuthResult

public class DomainAuthResult extends Object
The result of a LocalOutgoingServerSession.authenticateDomain(DomainPair) invocation, carrying the success/failure outcome together with a human-readable diagnostic log that was accumulated during the attempt.
  • Method Details

    • isSuccess

      public boolean isSuccess()
      Returns:
      true if domain authentication succeeded, false otherwise.
    • getDiagnosticLog

      @Nonnull public List<String> getDiagnosticLog()
      Returns an ordered, human-readable log of the steps taken during the authentication attempt. Each entry corresponds to one log statement emitted during the attempt, prefixed with its level (e.g. "DEBUG: …", "WARN: …").
      Returns:
      an unmodifiable, ordered list of diagnostic log lines; never null.
    • success

      @Nonnull public static DomainAuthResult success(@Nonnull List<String> diagnosticLog)
      Creates a result representing a successful domain authentication.
      Parameters:
      diagnosticLog - log lines accumulated during the attempt.
      Returns:
      a success result.
    • failure

      @Nonnull public static DomainAuthResult failure(@Nonnull List<String> diagnosticLog)
      Creates a result representing a failed domain authentication.
      Parameters:
      diagnosticLog - log lines accumulated during the attempt.
      Returns:
      a failure result.