• Post Reply Bookmark Topic Watch Topic
  • New Topic

Question on ProtectionDomain and DomainCombiner  RSS feed

 
Robert Paris
Ranch Hand
Posts: 585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When my classloader creates and adds a protectiondomain (which is my own class that extends ProtectionDomain) for a codesource, I want to register it for a callback (so my policy can call it). Does anyone know if the VM spec says that the AccessController has to keep a reference to the ProtectionDomain passed in, or can it simply make a copy and release the original? Or even worse, if I pass it an object of MyProtectionDomain class, does it have to keep that object or can it legally (within spec) call getPermissions() and getCodeSource() and create its own ProtectionDomain?
With DomainCombiner, my question is twofold:
1. How do I specify that it should use my DomainCombiner?
2. Can I require it to use that domaincombiner or can the AccessController implementation (of the VM vendor) choose not to use it?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!