// we need to check.
if (authnManager != null) {
if (LOGGER.isLoggable(Level.FINE)) {
LOGGER.fine("AUTHENTICATE: " + identity);
}
AuthenticationResponse response = authnManager.authenticate(identity);
if (LOGGER.isLoggable(Level.FINE)) {
LOGGER.fine("AUTHENTICATION "
+ (response.isValid() ? "SUCCEEDED" : "FAILED") + ": "
+ identity + ": " + response);
}