}
try {
getLoginContext().login();
setStatus(AuthenticationStatus.SUCCESS);
setUser(new SimpleUser(credentials.getUsername())); //SEAMSECURITY-98
} catch (LoginException e) {
setStatus(AuthenticationStatus.FAILURE);
log.error("JAAS authentication failed", e);
}
}