Scott,
Due to this code in ClientLoginModule:
| public boolean login() throws LoginException
| {
| .....................
| if (useFirstPass == true)
| {
| try
| {
| Object name = sharedState.get("javax.security.auth.login.name");
| if ((name instanceof Principal) == false)
| {
| String username = name != null ? name.toString() : "";
| >>>>HERE!!!! loginPrincipal = new SimplePrincipal(username);
| } else
|
|
| public boolean commit() throws LoginException
| {
| // Set the login principal and credential and subject
| >>AND HERE!!!! SecurityAssociationActions.setPrincipalInfo(loginPrincipal,
loginCredential, subject);
|
| // Add the login principal to the subject if is not there
| Set principals = subject.getPrincipals();
| if (principals.contains(loginPrincipal) == false)
| principals.add(loginPrincipal);
| return true;
| }
|
it is imposible to use custom Principal Class.
Please, fix it or explain how we can use our own custom principal class with
"ClientLoginModule logic"?
Thank you!!!
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842099#3842099
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842099
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user