Added: incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/classjava_1_1lang_1_1reflect_1_1Method.html URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/classjava_1_1lang_1_1reflect_1_1Method.html?rev=350181&view=auto ============================================================================== --- incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/classjava_1_1lang_1_1reflect_1_1Method.html (added) +++ incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/classjava_1_1lang_1_1reflect_1_1Method.html Wed Nov 30 21:29:27 2005 @@ -0,0 +1,430 @@ + + +Harmony Kernel: java.lang.reflect.Method Class Reference + + + +
Main Page | Class Hierarchy | Class List | Directories | Class Members | Related Pages
+ +

java.lang.reflect.Method Class Reference

Inheritance diagram for java.lang.reflect.Method: +

+ +java.lang.reflect.AccessibleObject + +List of all members.

Detailed Description

+This class must be implemented by the vm vendor. +

+This class models a method. Information about the method can be accessed, and the method can be invoked dynamically. +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

boolean equals (Object object)
 Compares the specified object to this Method and answer if they are equal.
Class getDeclaringClass ()
 Return the java.lang.Class associated with the class that defined this constructor.
Class[] getExceptionTypes ()
 Return an array of the java.lang.Class objects associated with the exceptions declared to be thrown by this method.
int getModifiers ()
 Return the modifiers for the modelled constructor.
String getName ()
 Return the name of the modelled method.
Class[] getParameterTypes ()
 Return an array of the java.lang.Class objects associated with the parameter types of this method.
Class getReturnType ()
 Return the java.lang.Class associated with the return type of this method.
int hashCode ()
 Answers an integer hash code for the receiver.
Object invoke (Object receiver, Object args[]) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
 Return the result of dynamically invoking the modelled method.
String toString ()
 Answers a string containing a concise, human-readable description of the receiver.
+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + +
boolean java.lang.reflect.Method.equals Object  object  ) 
+
+ + + + + +
+   + + +

+Compares the specified object to this Method and answer if they are equal. +

+The object must be an instance of Method with the same defining class and parameter types.

+

Parameters:
+ + +
object the object to compare
+
+
Returns:
true if the specified object is equal to this Method, false otherwise
+
See also:
hashCode
+
+

+ + + + +
+ + + + + + + + +
Class java.lang.reflect.Method.getDeclaringClass  ) 
+
+ + + + + +
+   + + +

+Return the java.lang.Class associated with the class that defined this constructor. +

+

Returns:
the declaring class
+
+

+ + + + +
+ + + + + + + + +
Class [] java.lang.reflect.Method.getExceptionTypes  ) 
+
+ + + + + +
+   + + +

+Return an array of the java.lang.Class objects associated with the exceptions declared to be thrown by this method. +

+If the method was not declared to throw any exceptions, the array returned will be empty.

+

Returns:
the declared exception classes
+
+

+ + + + +
+ + + + + + + + +
int java.lang.reflect.Method.getModifiers  ) 
+
+ + + + + +
+   + + +

+Return the modifiers for the modelled constructor. +

+The Modifier class should be used to decode the result.

+

Returns:
the modifiers
+
See also:
java.lang.reflect.Modifier
+ +

+Reimplemented from java.lang.reflect.AccessibleObject.

+

+ + + + +
+ + + + + + + + +
String java.lang.reflect.Method.getName  ) 
+
+ + + + + +
+   + + +

+Return the name of the modelled method. +

+

Returns:
the name
+
+

+ + + + +
+ + + + + + + + +
Class [] java.lang.reflect.Method.getParameterTypes  ) 
+
+ + + + + +
+   + + +

+Return an array of the java.lang.Class objects associated with the parameter types of this method. +

+If the method was declared with no parameters, the array returned will be empty.

+

Returns:
the parameter types
+
+

+ + + + +
+ + + + + + + + +
Class java.lang.reflect.Method.getReturnType  ) 
+
+ + + + + +
+   + + +

+Return the java.lang.Class associated with the return type of this method. +

+

Returns:
the return type
+
+

+ + + + +
+ + + + + + + + +
int java.lang.reflect.Method.hashCode  ) 
+
+ + + + + +
+   + + +

+Answers an integer hash code for the receiver. +

+Objects which are equal answer the same value for this method. The hash code for a Method is the hash code of the method's name.

+

Returns:
the receiver's hash
+
See also:
equals
+
+

+ + + + +
+ + + + + + + + + + + + + + + + + + +
Object java.lang.reflect.Method.invoke Object  receiver,
Object  args[]
throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
+
+ + + + + +
+   + + +

+Return the result of dynamically invoking the modelled method. +

+This reproduces the effect of receiver.methodName(arg1, arg2, ... , argN) This method performs the following:

    +
  • +If the modelled method is static, the receiver argument is ignored.
  • +
  • +Otherwise, if the receiver is null, a NullPointerException is thrown. If the receiver is not an instance of the declaring class of the method, an IllegalArgumentException is thrown.
  • +
  • +If this Method object is enforcing access control (see AccessibleObject) and the modelled method is not accessible from the current context, an IllegalAccessException is thrown.
  • +
  • +If the number of arguments passed and the number of parameters do not match, an IllegalArgumentException is thrown.
  • +
  • +For each argument passed:
      +
    • +If the corresponding parameter type is a base type, the argument is unwrapped. If the unwrapping fails, an IllegalArgumentException is thrown.
    • +
    • +If the resulting argument cannot be converted to the parameter type via a widening conversion, an IllegalArgumentException is thrown.
    • +
    +
  • +
  • +If the modelled method is static, it is invoked directly. If it is non-static, the modelled method and the receiver are then used to perform a standard dynamic method lookup. The resulting method is then invoked.
  • +
  • +If an exception is thrown during the invocation it is caught and wrapped in an InvocationTargetException. This exception is then thrown.
  • +
  • +If the invocation completes normally, the return value is itself returned. If the method is declared to return a base type, the return value is first wrapped. If the return type is void, null is returned.
  • +
+

+

Parameters:
+ + +
args the arguments to the constructor
+
+
Returns:
the new, initialized, object
+
Exceptions:
+ + + + + +
java.lang.NullPointerException if the receiver is null for a non-static method
java.lang.IllegalAccessException if the modelled method is not accessible
java.lang.IllegalArgumentException if an incorrect number of arguments are passed, the receiver is incompatible with the declaring class, or an argument could not be converted by a widening conversion
java.lang.reflect.InvocationTargetException if an exception was thrown by the invoked constructor
+
+
See also:
java.lang.reflect.AccessibleObject
+
+

+ + + + +
+ + + + + + + + +
String java.lang.reflect.Method.toString  ) 
+
+ + + + + +
+   + + +

+Answers a string containing a concise, human-readable description of the receiver. +

+The format of the string is modifiers (if any) return type declaring class name '.' method name '(' parameter types, separated by ',' ')' If the method throws exceptions, ' throws ' exception types, separated by ',' For example: public native Object java.lang.Method.invoke(Object,Object) throws IllegalAccessException,IllegalArgumentException,InvocationTargetException

+

Returns:
a printable representation for the receiver
+
+


The documentation for this class was generated from the following file: +
+
+ + (c) Copyright 2005 The Apache Software Foundation or its licensors, as applicable. + +
+ + Added: incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/classjava_1_1lang_1_1reflect_1_1Method.png URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/classjava_1_1lang_1_1reflect_1_1Method.png?rev=350181&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/classjava_1_1lang_1_1reflect_1_1Method.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/classjava_1_1security_1_1AccessControlContext-members.html URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/classjava_1_1security_1_1AccessControlContext-members.html?rev=350181&view=auto ============================================================================== --- incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/classjava_1_1security_1_1AccessControlContext-members.html (added) +++ incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/classjava_1_1security_1_1AccessControlContext-members.html Wed Nov 30 21:29:27 2005 @@ -0,0 +1,27 @@ + + +Harmony Kernel: Member List + + + +
Main Page | Class Hierarchy | Class List | Directories | Class Members | Related Pages
+

java.security.AccessControlContext Member List

This is the complete list of members for java.security.AccessControlContext, including all inherited members.

+ + + + + + + + + + + +
AccessControlContext(ProtectionDomain[] context)java.security.AccessControlContext
AccessControlContext(ProtectionDomain[] context, boolean ignored) (defined in java.security.AccessControlContext)java.security.AccessControlContext [package]
AccessControlContext(AccessControlContext acc, DomainCombiner combiner)java.security.AccessControlContext
checkPermission(Permission perm)java.security.AccessControlContext
createAccessControlContext (defined in java.security.AccessControlContext)java.security.AccessControlContext [private, static]
domainCombiner (defined in java.security.AccessControlContext)java.security.AccessControlContext [package]
domainsArray (defined in java.security.AccessControlContext)java.security.AccessControlContext [package]
equals(Object o)java.security.AccessControlContext
getDomainCombiner (defined in java.security.AccessControlContext)java.security.AccessControlContext [private, static]
getDomainCombiner()java.security.AccessControlContext
hashCode()java.security.AccessControlContext


+
+ + (c) Copyright 2005 The Apache Software Foundation or its licensors, as applicable. + +
+ + Added: incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/classjava_1_1security_1_1AccessControlContext.html URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/classjava_1_1security_1_1AccessControlContext.html?rev=350181&view=auto ============================================================================== --- incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/classjava_1_1security_1_1AccessControlContext.html (added) +++ incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/classjava_1_1security_1_1AccessControlContext.html Wed Nov 30 21:29:27 2005 @@ -0,0 +1,325 @@ + + +Harmony Kernel: java.security.AccessControlContext Class Reference + + + +
Main Page | Class Hierarchy | Class List | Directories | Class Members | Related Pages
+ +

java.security.AccessControlContext Class Reference

List of all members.

Detailed Description

+The vm vendor may choose to implement this class. +

+The reference implementation must be used if the reference implementation of AccessController is used.

+An AccessControlContext encapsulates the information which is needed by class AccessController to detect if a Permission would be granted at a particular point in a programs execution. +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

 AccessControlContext (ProtectionDomain[] context)
 Constructs a new instance of this class given an array of protection domains.
 AccessControlContext (AccessControlContext acc, DomainCombiner combiner)
 Constructs a new instance of this class given a context and a DomainCombiner.
void checkPermission (Permission perm) throws AccessControlException
 Checks if the permission perm is allowed in this context.
boolean equals (Object o)
 Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.
int hashCode ()
 Answers an integer hash code for the receiver.
DomainCombiner getDomainCombiner ()
 Answers the DomainCombiner for the receiver.

Package Functions

AccessControlContext (ProtectionDomain[] context, boolean ignored)

Package Attributes

+DomainCombiner domainCombiner
+ProtectionDomain[] domainsArray

Static Private Attributes

static final SecurityPermission createAccessControlContext
static final SecurityPermission getDomainCombiner
+


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + + +
java.security.AccessControlContext.AccessControlContext ProtectionDomain[]  context  ) 
+
+ + + + + +
+   + + +

+Constructs a new instance of this class given an array of protection domains. +

+

+

+ + + + +
+ + + + + + + + + + + + + + + + + + +
java.security.AccessControlContext.AccessControlContext AccessControlContext  acc,
DomainCombiner  combiner
+
+ + + + + +
+   + + +

+Constructs a new instance of this class given a context and a DomainCombiner. +

+

+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + +
void java.security.AccessControlContext.checkPermission Permission  perm  )  throws AccessControlException
+
+ + + + + +
+   + + +

+Checks if the permission perm is allowed in this context. +

+All ProtectionDomains must grant the permission for it to be granted.

+

Parameters:
+ + +
perm java.security.Permission the permission to check
+
+
Exceptions:
+ + +
java.security.AccessControlException thrown when perm is not granted.
+
+
+

+ + + + +
+ + + + + + + + + +
boolean java.security.AccessControlContext.equals Object  o  ) 
+
+ + + + + +
+   + + +

+Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison. +

+In this case, they must both be AccessControlContexts and contain the same protection domains.

+

Parameters:
+ + +
o the object to compare with this object
+
+
Returns:
true if the object is the same as this object false if it is different from this object
+
See also:
hashCode
+
+

+ + + + +
+ + + + + + + + +
int java.security.AccessControlContext.hashCode  ) 
+
+ + + + + +
+   + + +

+Answers an integer hash code for the receiver. +

+Any two objects which answer true when passed to equals must answer the same value for this method.

+

Returns:
the receiver's hash
+
See also:
equals
+
+

+ + + + +
+ + + + + + + + +
DomainCombiner java.security.AccessControlContext.getDomainCombiner  ) 
+
+ + + + + +
+   + + +

+Answers the DomainCombiner for the receiver. +

+

+


Member Data Documentation

+

+ + + + +
+ + + + +
final SecurityPermission java.security.AccessControlContext.createAccessControlContext [static, private]
+
+ + + + + +
+   + + +

+Initial value:

 new SecurityPermission(
+            "createAccessControlContext")
+
+

+ + + + +
+ + + + +
final SecurityPermission java.security.AccessControlContext.getDomainCombiner [static, private]
+
+ + + + + +
+   + + +

+Initial value:

 new SecurityPermission(
+            "getDomainCombiner")
+
+


The documentation for this class was generated from the following file: +
+
+ + (c) Copyright 2005 The Apache Software Foundation or its licensors, as applicable. + +
+ + Added: incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/classjava_1_1security_1_1AccessController-members.html URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/classjava_1_1security_1_1AccessController-members.html?rev=350181&view=auto ============================================================================== --- incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/classjava_1_1security_1_1AccessController-members.html (added) +++ incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/classjava_1_1security_1_1AccessController-members.html Wed Nov 30 21:29:27 2005 @@ -0,0 +1,28 @@ + + +Harmony Kernel: Member List + + + +
Main Page | Class Hierarchy | Class List | Directories | Class Members | Related Pages
+

java.security.AccessController Member List

This is the complete list of members for java.security.AccessController, including all inherited members.

+ + + + + + + + + + + + +
[static initializer] (defined in java.security.AccessController)java.security.AccessController [package, static]
AccessController()java.security.AccessController [private]
checkPermission(Permission perm)java.security.AccessController [static]
doPrivileged(PrivilegedAction action)java.security.AccessController [static]
doPrivileged(PrivilegedAction action, AccessControlContext context)java.security.AccessController [static]
doPrivileged(PrivilegedExceptionAction action)java.security.AccessController [static]
doPrivileged(PrivilegedExceptionAction action, AccessControlContext context)java.security.AccessController [static]
getContext()java.security.AccessController [static]
getProtectionDomains(int depth)java.security.AccessController [private, static]
initializeInternal() (defined in java.security.AccessController)java.security.AccessController [private, static]
keepalive(AccessControlContext context)java.security.AccessController [private, static]
toArrayOfProtectionDomains(Object[] domains, AccessControlContext acc) (defined in java.security.AccessController)java.security.AccessController [private, static]


+
+ + (c) Copyright 2005 The Apache Software Foundation or its licensors, as applicable. + +
+ + Added: incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/classjava_1_1security_1_1AccessController.html URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/classjava_1_1security_1_1AccessController.html?rev=350181&view=auto ============================================================================== --- incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/classjava_1_1security_1_1AccessController.html (added) +++ incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/classjava_1_1security_1_1AccessController.html Wed Nov 30 21:29:27 2005 @@ -0,0 +1,401 @@ + + +Harmony Kernel: java.security.AccessController Class Reference + + + +
Main Page | Class Hierarchy | Class List | Directories | Class Members | Related Pages
+ +

java.security.AccessController Class Reference

List of all members.

Detailed Description

+This class must be implemented by the vm vendor, or the reference implementation can be used if the documented native is implemented. +

+Checks access to system resources. Supports marking of code as priveleged. Makes context snapshots to allow checking from other contexts. +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Static Public Member Functions

static void checkPermission (Permission perm) throws AccessControlException
 Checks whether the running program is allowed to access the resource being guarded by the given Permission argument.
static AccessControlContext getContext ()
 Answers the access controller context of the current thread, including the inherited ones.
static Object doPrivileged (PrivilegedAction action)
 Performs the privileged action specified by action.
static Object doPrivileged (PrivilegedAction action, AccessControlContext context)
 Performs the privileged action specified by action.
static Object doPrivileged (PrivilegedExceptionAction action) throws PrivilegedActionException
 Performs the privileged action specified by action.
static Object doPrivileged (PrivilegedExceptionAction action, AccessControlContext context) throws PrivilegedActionException
 Performs the privileged action specified by action.

Static Package Functions

[static initializer]

Private Member Functions

 AccessController ()
 Prevents this class from being instantiated.

Static Private Member Functions

+static native void initializeInternal ()
static native Object[] getProtectionDomains (int depth)
 This native must be implemented to use the reference implementation of this class.
static void keepalive (AccessControlContext context)
 Used to keep the context live during doPrivileged().
+static ProtectionDomain[] toArrayOfProtectionDomains (Object[] domains, AccessControlContext acc)
+


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + +
java.security.AccessController.AccessController  )  [private]
+
+ + + + + +
+   + + +

+Prevents this class from being instantiated. +

+

+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + +
static native Object [] java.security.AccessController.getProtectionDomains int  depth  )  [static, private]
+
+ + + + + +
+   + + +

+This native must be implemented to use the reference implementation of this class. +

+It is used by checkPermission() and getContext(), which call this native with depth = 1.

+Returns an array of ProtectionDomain from the classes on the stack, from the specified depth up to the first privileged frame, or the end of the stack if there is not a privileged frame. The array may be larger than required, but must be null terminated. As bootstrap classes have all permissions, bootstrap class frames SHOULD be skipped. Bootstrap class frames MUST be skipped if the ProtectionDomain of bootstrap classes is null. Duplicate ProtectionDomains SHOULD be removed.

+The first element of the result is the AccessControlContext, which may be null, either from the privileged frame, or from the current Thread if there is not a privileged frame.

+A privileged frame is any frame running one of the following methods:

+

    +
  • +java/security/AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
  • +
  • +java/security/AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
  • +
  • +java/security/AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;
  • +
  • +java/security/AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;
  • +
+

+

Parameters:
+ + +
depth The stack depth at which to start. Depth 0 is the current frame (the caller of this native).
+
+
Returns:
an Object[] where the first element is AccessControlContext, and the other elements are ProtectionsDomain.
+
+

+ + + + +
+ + + + + + + + + +
static void java.security.AccessController.checkPermission Permission  perm  )  throws AccessControlException [static]
+
+ + + + + +
+   + + +

+Checks whether the running program is allowed to access the resource being guarded by the given Permission argument. +

+

Parameters:
+ + +
perm the permission to check
+
+
Exceptions:
+ + +
AccessControlException if access is not allowed.
+
+
+

+ + + + +
+ + + + + + + + + +
static void java.security.AccessController.keepalive AccessControlContext  context  )  [static, private]
+
+ + + + + +
+   + + +

+Used to keep the context live during doPrivileged(). +

+

See also:
doPrivileged(PrivilegedAction, AccessControlContext)
+
+

+ + + + +
+ + + + + + + + +
static AccessControlContext java.security.AccessController.getContext  )  [static]
+
+ + + + + +
+   + + +

+Answers the access controller context of the current thread, including the inherited ones. +

+It basically retrieves all the protection domains from the calling stack and creates an AccessControlContext with them.

+

See also:
AccessControlContext
+
+

+ + + + +
+ + + + + + + + + +
static Object java.security.AccessController.doPrivileged PrivilegedAction  action  )  [static]
+
+ + + + + +
+   + + +

+Performs the privileged action specified by action. +

+When permission checks are made, if the permission has been granted by all frames below and including the one representing the call to this method, then the permission is granted. In otherwords, the check stops here.

+Any unchecked exception generated by this method will propagate up the chain.

+

See also:
doPrivileged(PrivilegedAction)
+
+

+ + + + +
+ + + + + + + + + + + + + + + + + + +
static Object java.security.AccessController.doPrivileged PrivilegedAction  action,
AccessControlContext  context
[static]
+
+ + + + + +
+   + + +

+Performs the privileged action specified by action. +

+When permission checks are made, if the permission has been granted by all frames below and including the one representing the call to this method, then the permission is granted iff it is granted by the AccessControlContext context. In otherwords, no more checking of the current stack is performed. Instead, the passed in context is checked.

+Any unchecked exception generated by this method will propagate up the chain.

+

See also:
doPrivileged(PrivilegedAction)
+
+

+ + + + +
+ + + + + + + + + +
static Object java.security.AccessController.doPrivileged PrivilegedExceptionAction  action  )  throws PrivilegedActionException [static]
+
+ + + + + +
+   + + +

+Performs the privileged action specified by action. +

+When permission checks are made, if the permission has been granted by all frames below and including the one representing the call to this method, then the permission is granted. In otherwords, the check stops here.

+Any unchecked exception generated by this method will propagate up the chain. However, checked exceptions will be caught an re-thrown as PrivilegedActionExceptions

+

See also:
doPrivileged(PrivilegedAction)
+
+

+ + + + +
+ + + + + + + + + + + + + + + + + + +
static Object java.security.AccessController.doPrivileged PrivilegedExceptionAction  action,
AccessControlContext  context
throws PrivilegedActionException [static]
+
+ + + + + +
+   + + +

+Performs the privileged action specified by action. +

+When permission checks are made, if the permission has been granted by all frames below and including the one representing the call to this method, then the permission is granted iff it is granted by the AccessControlContext context. In otherwords, no more checking of the current stack is performed. Instead, the passed in context is checked.

+Any unchecked exception generated by this method will propagate up the chain. However, checked exceptions will be caught an re-thrown as PrivilegedActionExceptions

+

See also:
doPrivileged(PrivilegedAction)
+
+


The documentation for this class was generated from the following file: +
+
+ + (c) Copyright 2005 The Apache Software Foundation or its licensors, as applicable. + +
+ + Added: incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/deprecated.html URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/deprecated.html?rev=350181&view=auto ============================================================================== --- incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/deprecated.html (added) +++ incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/deprecated.html Wed Nov 30 21:29:27 2005 @@ -0,0 +1,114 @@ + + +Harmony Kernel: Deprecated List + + + +
Main Page | Class Hierarchy | Class List | Directories | Class Members | Related Pages
+

Deprecated List

+
Member java::lang::ClassLoader.defineClass (byte[] classRep, int offset, int length)
+
Use defineClass(String, byte[], int, int)
+
+

+

+
Member java::lang::Runtime.runFinalizersOnExit (boolean run)
+
This method is unsafe.
+
+

+

+
Member java::lang::Runtime.getLocalizedInputStream (InputStream stream)
+
Use InputStreamReader
+
+

+

+
Member java::lang::Runtime.getLocalizedOutputStream (OutputStream stream)
+
Use OutputStreamWriter
+
+

+

+
Member java::lang::String.String (byte[] data, int high)
+
Use String(byte[]) or String(byte[], String) instead
+
+

+

+
Member java::lang::String.String (byte[] data, int high, int start, int length)
+
Use String(byte[], int, int) instead
+
+

+

+
Member java::lang::String.getBytes (int start, int end, byte[] data, int index)
+
Use getBytes() or getBytes(String)
+
+

+

+
Member java::lang::System.getenv (String var)
+
Use System.getProperty()
+
+

+

+
Member java::lang::System.runFinalizersOnExit (boolean flag)
+
This method is unsafe.
+
+

+

+
Member java::lang::Thread.countStackFrames ()
+
The results of this call were never well defined.
+
+

+

+
Member java::lang::Thread.resume ()
+
Used with deprecated method Thread.suspend().
+
+

+

+
Member java::lang::Thread.stop ()
+
+
+

+

+
Member java::lang::Thread.stop (Throwable throwable)
+
+
+

+

+
Member java::lang::Thread.suspend ()
+
May cause deadlocks.
+
+

+

+
Member java::lang::ThreadGroup.allowThreadSuspension (boolean b)
+
Required deprecated method suspend().
+
+

+

+
Member java::lang::ThreadGroup.resume ()
+
Requires deprecated method Thread.resume().
+
+

+

+
Member java::lang::ThreadGroup.stop ()
+
Requires deprecated method Thread.stop().
+
+

+

+
Member java::lang::ThreadGroup.stopHelper ()
+
Requires deprecated method Thread.suspend().
+
+

+

+
Member java::lang::ThreadGroup.suspend ()
+
Requires deprecated method Thread.suspend().
+
+

+

+
Member java::lang::ThreadGroup.suspendHelper ()
+
Requires deprecated method Thread.suspend().
+
+
+
+ + (c) Copyright 2005 The Apache Software Foundation or its licensors, as applicable. + +
+ + Added: incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/dir_000000.html URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/dir_000000.html?rev=350181&view=auto ============================================================================== --- incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/dir_000000.html (added) +++ incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/dir_000000.html Wed Nov 30 21:29:27 2005 @@ -0,0 +1,25 @@ + + +Harmony Kernel: java-src/ Directory Reference + + + +
Main Page | Class Hierarchy | Class List | Directories | Class Members | Related Pages
+ +

java-src Directory Reference

+

+ + + + + +

Directories

directory  kernel
+


+
+ + (c) Copyright 2005 The Apache Software Foundation or its licensors, as applicable. + +
+ + Added: incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/dir_000001.html URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/dir_000001.html?rev=350181&view=auto ============================================================================== --- incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/dir_000001.html (added) +++ incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/dir_000001.html Wed Nov 30 21:29:27 2005 @@ -0,0 +1,25 @@ + + +Harmony Kernel: java-src/kernel/ Directory Reference + + + +
Main Page | Class Hierarchy | Class List | Directories | Class Members | Related Pages
+ +

kernel Directory Reference

+

+ + + + + +

Directories

directory  src
+


+
+ + (c) Copyright 2005 The Apache Software Foundation or its licensors, as applicable. + +
+ + Added: incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/dir_000002.html URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/dir_000002.html?rev=350181&view=auto ============================================================================== --- incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/dir_000002.html (added) +++ incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/doc/kernel_doc/html/dir_000002.html Wed Nov 30 21:29:27 2005 @@ -0,0 +1,27 @@ + + +Harmony Kernel: java-src/kernel/src/ Directory Reference + + + +
Main Page | Class Hierarchy | Class List | Directories | Class Members | Related Pages
+ +

src Directory Reference

+

+ + + + + + + +

Directories

directory  com
directory  java
+


+
+ + (c) Copyright 2005 The Apache Software Foundation or its licensors, as applicable. + +
+ +