throws CredentialsDeniedException, IdentityException, SQLException {
boolean bAuthenticated = false;
user.getAuthenticationStatus().reset();
// authenticate
Credentials credentials = user.getCredentials();
if (credentials != null) {
if (credentials instanceof UsernamePasswordCredentials) {
UsernamePasswordCredentials upCreds = (UsernamePasswordCredentials)credentials;
bAuthenticated = (getUsername().length() > 0) &&
(getPassword().length() > 0) &&