[jboss-user] [Security & JAAS/JBoss] - Re: JAAS problem with LoginModule
alxt
do-not-reply at jboss.com
Fri Feb 6 00:31:58 EST 2009
"Wolfgang Knauf" wrote : please provide full code of your login module (e.g. the base class).
| [/quot]
| public class RolesLoginModule implements LoginModule {
| | private static final Log log = LogFactory.getLog(RolesLoginModule.class);
| | private Subject subject;
| | private CallbackHandler callbackHandler;
| | private Map<String, ?> sharedState;
| | private Map<String, ?> options;
| |
| | public void initialize(Subject subject, CallbackHandler callbackHandler,
| | Map<String, ?> sharedState, Map<String, ?> options)
| | {
| | this.subject = subject;
| | this.callbackHandler = callbackHandler;
| | this.sharedState = sharedState;
| | this.options = options;
| | }
| |
| | public boolean login() throws LoginException {
| | log.error("sharedState.size() = " + sharedState.size()); //0
| | log.error("subject.getPrincipals().size()=" + subject.getPrincipals().size()); //0
| | log.error("options.size() = " + options.size()); //1
| | return true;
| | }
| | public boolean logout() throws LoginException { return true; }
| | public boolean abort() throws LoginException { return true; }
| | public boolean commit() throws LoginException { return true; }
| | }
| |
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4207580#4207580
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4207580
More information about the jboss-user
mailing list