if (LOG.isDebugEnabled()) {
LOG.debug("Auth mechanism: " + auth.getMechanism() + " value: " + auth.getValue());
}
String value = createChallengeValue(auth);
if (value != null) {
Challenge challenge = new Challenge();
challenge.setValue(value);
transport.marshall(challenge);
} else {
transport.marshall(new Success());
}
}