Re: Updating subject while service is deployed
Bob Scheifler <[email protected]>
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
> Looking into the source code of Subject I don't > dare to modify the set of principals due to concurrency issues. If I add > a principal and at the same time some of the code in the Jini ERI stack > iterates over the set op principals a ConcurrentModificationException is > not that far away. The sets returned by Subject are synchronized collections, and JERI code synchronizes on the set while iterating, so that CME is avoided. > However I think there is another place where I > could replace the subject. I already have my own implementation of > SecurityContextSource so I'm in control of the SecurityContext that > returns the access control context and I could calculate a new acc when > I need a 'modified' Subject and attach that to the SecurityContext. That seems like it could work for the parts of the system that traffic in SecurityContexts, but not for anything that just traffics in access control contexts. - Bob -------------------------------------------------------------------------- Getting Started: http://www.jini.org/wiki/Category:Getting_Started Community Web Site: http://jini.org jini-users Archive: http://archives.java.sun.com/archives/jini-users.html Unsubscribing: email "signoff JINI-USERS" to [email protected]