|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jetspeed.security.JSSubject
public class JSSubject
| Constructor Summary | |
|---|---|
JSSubject()
|
|
| Method Summary | |
|---|---|
static void |
clearSubject()
Clear subject reference in current thread. |
static java.lang.Object |
doAs(javax.security.auth.Subject subject1,
java.security.PrivilegedAction action)
Perform work as a particular Subject after setting subject reference in current thread |
static java.lang.Object |
doAs(javax.security.auth.Subject subject1,
java.security.PrivilegedExceptionAction action)
Perform work as a particular Subject after setting subject reference in current thread. |
static java.lang.Object |
doAsPrivileged(javax.security.auth.Subject subject1,
java.security.PrivilegedAction action,
java.security.AccessControlContext acc)
Perform privileged work as a particular Subject after setting subject reference in current thread. |
static java.lang.Object |
doAsPrivileged(javax.security.auth.Subject subject,
java.security.PrivilegedExceptionAction action,
java.security.AccessControlContext acc)
Perform privileged work as a particular Subject after setting subject reference in current thread. |
static javax.security.auth.Subject |
getSubject(java.security.AccessControlContext acc)
Get the Subject associated with the provided
AccessControlContext fromn the current Thread or from the standard SUBJECT mechansim |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JSSubject()
| Method Detail |
|---|
public static javax.security.auth.Subject getSubject(java.security.AccessControlContext acc)
Subject associated with the provided
AccessControlContext fromn the current Thread or from the standard SUBJECT mechansim
acc - the AccessControlContext from which to retrieve
the Subject. Only used if current thread doesn't carry subject
Subject associated with the provided
AccessControlContext, or null
if no Subject is associated
with the provided AccessControlContext.
java.lang.SecurityException - if the caller does not have permission
to get the Subject.
java.lang.NullPointerException - if the provided
AccessControlContext is null.
public static java.lang.Object doAs(javax.security.auth.Subject subject1,
java.security.PrivilegedAction action)
Subject after setting subject reference in current thread
subject - the Subject that the specified
action will run as. This parameter
may be null. action - the code to be run as the specified
Subject.
Object returned by the PrivilegedAction's
run method.
java.lang.NullPointerException - if the PrivilegedAction
is null.
java.lang.SecurityException - if the caller does not have permission
to invoke this method.
public static java.lang.Object doAs(javax.security.auth.Subject subject1,
java.security.PrivilegedExceptionAction action)
throws java.security.PrivilegedActionException
Subject after setting subject reference in current thread.
subject - the Subject that the specified
action will run as. This parameter
may be null. action - the code to be run as the specified
Subject.
Object returned by the
PrivilegedExceptionAction's run method.
java.security.PrivilegedActionException - if the
PrivilegedExceptionAction.run
method throws a checked exception.
java.lang.NullPointerException - if the specified
PrivilegedExceptionAction is
null.
java.lang.SecurityException - if the caller does not have permission
to invoke this method.
public static java.lang.Object doAsPrivileged(javax.security.auth.Subject subject1,
java.security.PrivilegedAction action,
java.security.AccessControlContext acc)
Subject after setting subject reference in current thread.
subject - the Subject that the specified
action will run as. This parameter
may be null. action - the code to be run as the specified
Subject. acc - the AccessControlContext to be tied to the
specified subject and action.
Object returned by the PrivilegedAction's
run method.
java.lang.NullPointerException - if the PrivilegedAction
is null.
java.lang.SecurityException - if the caller does not have permission
to invoke this method.
public static java.lang.Object doAsPrivileged(javax.security.auth.Subject subject,
java.security.PrivilegedExceptionAction action,
java.security.AccessControlContext acc)
throws java.security.PrivilegedActionException
Subject after setting subject reference in current thread.
subject - the Subject that the specified
action will run as. This parameter
may be null. action - the code to be run as the specified
Subject. acc - the AccessControlContext to be tied to the
specified subject and action.
Object returned by the
PrivilegedExceptionAction's run method.
java.security.PrivilegedActionException - if the
PrivilegedExceptionAction.run
method throws a checked exception.
java.lang.NullPointerException - if the specified
PrivilegedExceptionAction is
null.
java.lang.SecurityException - if the caller does not have permission
to invoke this method.public static void clearSubject()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||