Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

To Authors - Threading

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What security considerations should I make in regards to multi-threaded objects?
 
Author
Posts: 159
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In Java Multi-threading, the Java's thread security is enforced by the SecurityManager class...this means that the security policies of the threaded program can be established when an instance of the class is instantiated. You may choose to set all the security policies (permissions) in a Security Policy file and enforce them with the runtime using a command-line option or programmatically. (i.e -Djava.security.policy=my.policy).

Particularly, For verifying access protection we can use the two Java SecurityManager methods ...checkAccess(Thread t) and checkAccess(ThreadGroup tg)..these methods throw an SecurityException if there is a violation of security policy occurred.

Read our Chapter 3 - Java 2 Platform Security for more info.

Does this help.

/Ramesh
[ January 12, 2006: Message edited by: Ramesh Nagappan ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic