Re: Best Practices for Handling Client Authentication

Bob Scheifler <[email protected]>
Newsgroups gmane.comp.java.sun.javaspaces
Message-ID <[email protected]>
>>1) I can call this method once to wrap all subsequent code
>
> #1 doesn't work well because the Swing library  doesn't maintain your security
> context, so you end up using subject.doAs()  everywhere.

You can wrap your Swing Listeners and Runnables, in the same way that
you would wrap your proxies in #2.  The starter kit's browser does this,
if you want an example (see Browser.Handler and the Browser.wrap methods).

- Bob

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff JAVASPACES-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

To view past JAVASPACES-USERS postings, please see:
http://archives.java.sun.com/archives/javaspaces-users.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.