Ok, I have:
Authentication authen = context.getAuthentication();
Object principal = *null*;
*if* (authen != *null*)
{
principal = authen.getPrincipal();
log.debug("Principal is: " + principal.getClass().getName());
}
*if* (principal != *null*)
{
loggedInUser = (User) principal;
userid = loggedInUser.getUsername();
and it's definitely the org.appfuse.model.User
getUsername gets me the username, and getPassword gets me the encrypted
password.
It's obviously not the Base64 encryption - how do I decrypt the password?
I need it for further transactions...