Framework Professional Edition Package


com.prosyst.util.security
Class AccessController

java.lang.Object
  extended by com.prosyst.util.security.AccessController

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 class AccessController
extends java.lang.Object

This class is a wrapper of java.security.AccessController.

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 is used to execute doPrivileged blocks.

Author:
Svetozar Dimov

Constructor Summary
AccessController()
          Deprecated.  
 
Method Summary
static void checkPermission(java.lang.Object perm)
          Deprecated.  
static java.lang.Object doPrivileged(PrivilegedAction action, java.lang.Object context, boolean exception)
          Deprecated.  
static java.lang.Object getContext()
          Deprecated.  
static boolean supportsSecurity()
          Deprecated. Returns true if and only if the hosting JVM supports security.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessController

public AccessController()
Deprecated. 
Method Detail

supportsSecurity

public static boolean supportsSecurity()
Deprecated. 
Returns true if and only if the hosting JVM supports security.

Returns:

checkPermission

public static void checkPermission(java.lang.Object perm)
Deprecated. 

Substitute for AccessController.checkPermission(Permission p) in java.security package.

Parameters:
perm -

doPrivileged

public static java.lang.Object doPrivileged(PrivilegedAction action,
                                            java.lang.Object context,
                                            boolean exception)
                                     throws java.lang.Exception
Deprecated. 

Substitute for
  • AccessController.doPrivileged(PrivilegedAction action)
  • AccessController.doPrivileged(PrivilegedExceptionAction action)
  • AccessController.doPrivileged(PrivilegedAction action, AccessControlContext context)
  • AccessController.doPrivileged(PrivilegedExceptionAction action, AccessControlContext context)
  • in java.security package.

    Parameters:
    action -
    context -
    exception -
    Returns:
    Throws:
    java.lang.Exception

    getContext

    public static java.lang.Object getContext()
    Deprecated. 

    Substitute for AccessController.getContext() in java.security package.

    Returns:

    Framework Professional Edition Package


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