Framework Professional Edition Package


com.prosyst.mbs.framework.permissionadmin
Interface PrivilegedThreadsManager


public interface PrivilegedThreadsManager

This service is used to avoid security checkings on the current thread.


Method Summary
 java.lang.Thread markCurrent()
          Marks the current thread as privileged.
 java.lang.Thread unmark(java.lang.Thread thread)
          Unmarks the specified thread.
 

Method Detail

markCurrent

java.lang.Thread markCurrent()
Marks the current thread as privileged. While it is marked, all security checkings for this thread in the SecurityManager will be dissabled. If the current thread has already been marked as privileged somewhere up the call stack, the method returns null. Otherwise, returns the current thread. In the latter case, after finishing the job that you want to be done without security checkings, call unmark(Thread) supplying the result of the mark method.


unmark

java.lang.Thread unmark(java.lang.Thread thread)
Unmarks the specified thread. It will no longer be privileged.


Framework Professional Edition Package


Copyright © 1999-2007 ProSyst Software GmbH. All Rights Reserved