|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PrivilegedAction<T>
A computation to be performed with privileges enabled. The computation is
performed by invoking AccessController.doPrivileged
on the
PrivilegedAction
object. This interface is used only for
computations that do not throw checked exceptions; computations that
throw checked exceptions must use PrivilegedExceptionAction
instead.
AccessController
,
AccessController.doPrivileged(PrivilegedAction)
,
PrivilegedExceptionAction
Method Summary | |
---|---|
T |
run()
Performs the computation. |
Method Detail |
---|
T run()
AccessController.doPrivileged
after enabling privileges.
PrivilegedAction
should document what (if anything) this value represents.AccessController.doPrivileged(PrivilegedAction)
,
AccessController.doPrivileged(PrivilegedAction,
AccessControlContext)
|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.