Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,13 @@ private SaslParticipant(SaslClient saslClient) {
}

byte[] createFirstMessage() throws SaslException {
return SaslMechanismFactory.isDefaultMechanism(MECHANISM_ARRAY[0]) ? EMPTY_BYTE_ARRAY
: evaluateChallengeOrResponse(EMPTY_BYTE_ARRAY);
if (saslClient != null) {
return saslClient.hasInitialResponse()
? saslClient.evaluateChallenge(EMPTY_BYTE_ARRAY)
: EMPTY_BYTE_ARRAY;
}
throw new IllegalStateException(
"createFirstMessage must only be called for clients");
}

/**
Expand Down
Loading