public class HstSubject extends Object
Modifier and Type | Method and Description |
---|---|
static void |
clearSubject()
Clear subject reference in current thread.
|
static <T> T |
doAs(Subject subjectInput,
PrivilegedAction<T> action)
Perform work as a particular
Subject after setting subject reference in current thread |
static <T> T |
doAs(Subject subjectInput,
PrivilegedExceptionAction<T> action)
Perform work as a particular
Subject after setting subject reference in current thread. |
static <T> T |
doAsPrivileged(Subject subjectInput,
PrivilegedAction<T> action,
AccessControlContext acc)
Perform privileged work as a particular
Subject after setting subject reference in current thread. |
static <T> T |
doAsPrivileged(Subject subjectInput,
PrivilegedExceptionAction<T> action,
AccessControlContext acc)
Perform privileged work as a particular
Subject after setting subject reference in current thread. |
static Subject |
getSubject(AccessControlContext acc)
Get the
Subject associated with the provided
AccessControlContext fromn the current Thread or from the standard SUBJECT mechansim |
public static Subject getSubject(AccessControlContext acc)
Subject
associated with the provided
AccessControlContext
fromn the current Thread or from the standard SUBJECT mechansimpublic static <T> T doAs(Subject subjectInput, PrivilegedAction<T> action)
Subject
after setting subject reference in current threadpublic static <T> T doAs(Subject subjectInput, PrivilegedExceptionAction<T> action) throws PrivilegedActionException
Subject
after setting subject reference in current thread.PrivilegedActionException
public static <T> T doAsPrivileged(Subject subjectInput, PrivilegedAction<T> action, AccessControlContext acc)
Subject
after setting subject reference in current thread.public static <T> T doAsPrivileged(Subject subjectInput, PrivilegedExceptionAction<T> action, AccessControlContext acc) throws PrivilegedActionException
Subject
after setting subject reference in current thread.PrivilegedActionException
public static void clearSubject()
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.