Framework Professional Edition Package


com.prosyst.util.security
Interface PrivilegedAction


Deprecated. java.security package API should be used in order to execute appropriately doPrivileged blocks. The provided implementation is fake and is left only for backward compatibility.

public interface PrivilegedAction

This class is a wrapper of java.security.PrivilegedAction && java.security.PriviligedExceptionAction.

Its purpose is to hide the dependency on java.security package, so that the user of this class, could be used on JDK 1.1 compatible JVM-s and the others. In the first case, no security mechanism is provided in the JVM, so there is no need to execute doPrivileged blocks at all. In the second case the real java.security.AccessController, java.security.PrivilegedAction and java.security.PrivilegedExceptionAction are used to execute doPrivileged blocks.

Author:
Svetozar Dimov

Method Summary
 java.lang.Object run0()
          Deprecated. Substitute for PrivilegedAction.run() and PrivilegedExceptionAction.run() in java.security package.
 

Method Detail

run0

java.lang.Object run0()
                      throws java.lang.Exception
Deprecated. 
Substitute for PrivilegedAction.run() and PrivilegedExceptionAction.run() in java.security package.

Returns:
Throws:
java.lang.Exception

Framework Professional Edition Package


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