users@glassfish.java.net

Q: transport client attributes via orb or ...

From: Dipl.-Ing. Torsten Liermann <lier_at_liermann-it.de>
Date: Mon, 17 Oct 2011 16:28:30 +0200

Hi,

How can I add additional attributes while authenticating a user (rmi client) to a glassfish 3.1.1 server?
We use the login method of "com.sun.appserv.security.ProgrammaticLogin" and set the following attributes:
username, password, realm and errors.

Is there a way to set attitional properties on the client side which can then be extracted on the server side, e.g.
"Object additionalProperty = sessionContext.getMessageContext().getProperty("additionalProperty");"?

Thanks for a hint
Torsten