Hi again!
Markus Plail <[EMAIL PROTECTED]> writes:
> Since 5.5.10 my JAAS LoginModule doesn't work anymore. I saw that
> JAASRealm was changed in 5.5.10 and I wonder if anyone can tell me
> what I am doing wrong.
Is no one else seeing this problem?
If there is someone, who successfully uses a JAAS LoginModule, could he
please show me his commit() method? I am using db based authentication.
Here is my commit() method:
public boolean commit()
throws LoginException
{
Logger.getRootLogger().info("commit");
if (pendingPrincipals == null) {
return false;
}
commitedPrincipals = new ArrayList();
Set princSet = subject_.getPrincipals();
Iterator princIt = pendingPrincipals.iterator();
while (princIt.hasNext()) {
Principal currentPrinc = (Principal)princIt.next();
princSet.add(currentPrinc);
commitedPrincipals.add(currentPrinc);
}
commitSucceeded = true;
return true;
}
regards
Markus
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]