>From a java client, how can a JBOSS protected resource usage authentication
can be done? Should this not be done at the JBOSS server ?
-----Original Message-----
From: Claude [SMTP:[EMAIL PROTECTED]]
Sent: Wednesday, September 19, 2001 5:23 PM
To: [EMAIL PROTECTED]
Subject: Authentication on the client side
Hi,
I use JBoss 2.4.0 and a stand-alone Java client.
On the client, I'm try to authenticate, using the LoginContext
mecanism.
My Java source code is:
MyCallbackHandler handler = new MyCallbackHandler("user1",
"password1");
LoginContext lc = new LoginContext("client-login", handler);
lc.login();
When the program tries to create the LoginContext object (lc), I get
the exception:
java.lang.SecurityException: Unable to locate a login configuration
The problem is: I have no idea of how to specify this login
configuration.
I've tried to put it in a file called auth.conf, but it doesn't seem
to be read by the client. And I have no idea how to make my client read it.
Can anyone help?
Or is there a better way to specify this login configuration?
Thanks
Claude
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in
the body
of the message "signoff EJB-INTEREST". For general help, send email
to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".