protected Subject authenticate(SecurityAuthenticator authenticator, LoggingLevel deniedLoggingLevel, HttpPrincipal principal) {
try {
return authenticator.login(principal);
} catch (LoginException e) {
CamelLogger logger = new CamelLogger(LOG, deniedLoggingLevel);
logger.log("Cannot login " + principal.getName() + " due " + e.getMessage(), e);
}
return null;
}
@Override