[jboss-dev-forums] [JBoss AS 7 Development] - Re: ClientLoginModule support

Tarek Hammoud do-not-reply at jboss.com
Fri Jul 27 17:03:01 EDT 2012


Tarek Hammoud [https://community.jboss.org/people/thammoud] created the discussion

"Re: ClientLoginModule support"

To view the discussion, visit: https://community.jboss.org/message/750783#750783

--------------------------------------------------------------
Thanks Wolf,

When I add:

jndiProps.put(Context.SECURITY_PRINCIPAL, "foo");
jndiProps.put(Context.SECURITY_CREDENTIALS, "bar");

the code works properly. However, I do not want to specify the credentials in the hash table and want the context factory to use the credentials as set by my:

LoginContext lc = new LoginContext("client-login", new UsernamePasswordHandler(userName, password.toCharArray()));
lc.login();

>From the link you provided, I do not see any references to JAAS. I still see username/password hardcodes as properties.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/750783#750783]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120727/0736bdb4/attachment.html 


More information about the jboss-dev-forums mailing list