Class DomainAuthResult
java.lang.Object
org.jivesoftware.openfire.session.DomainAuthResult
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 Summary
Modifier and TypeMethodDescriptionstatic DomainAuthResultCreates a result representing a failed domain authentication.Returns an ordered, human-readable log of the steps taken during the authentication attempt.booleanstatic DomainAuthResultCreates a result representing a successful domain authentication.
-
Method Details
-
isSuccess
public boolean isSuccess()- Returns:
trueif domain authentication succeeded,falseotherwise.
-
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
Creates a result representing a successful domain authentication.- Parameters:
diagnosticLog- log lines accumulated during the attempt.- Returns:
- a success result.
-
failure
Creates a result representing a failed domain authentication.- Parameters:
diagnosticLog- log lines accumulated during the attempt.- Returns:
- a failure result.
-