"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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...