|
Nested Class Summary | ||
static interface |
AuthenticationUtil.RunAsWork<Result> |
Field Summary | ||
static String |
SYSTEM_USER_NAME |
Constructor Summary | ||
AuthenticationUtil() |
Method Summary | ||
void |
afterPropertiesSet() | |
static void |
clearCurrentSecurityContext() Remove the current security information |
|
static String |
getAdminRoleName() | |
static String |
getAdminUserName() Get the name of the default admin user (the admin user created during bootstrap) |
|
static net.sf.acegisecurity.Authentication |
getFullAuthentication() WARN: Advanced usage only. Get the authentication for that was set by an real authentication. |
|
static String |
getFullyAuthenticatedUser() Get the fully authenticated user. |
|
static String |
getGuestRoleName() Get the name of the guest role |
|
static String |
getGuestUserName() Get the name of the Guest User |
|
static net.sf.acegisecurity.Authentication |
getRunAsAuthentication() Get the current authentication for application of permissions. |
|
static String |
getRunAsUser() Get the user that is currently in effect for purposes of authentication. |
|
static String |
getSystemUserName() Get the name of the system user |
|
getUserTenant(String userName) | ||
static boolean |
isMtEnabled() | |
static boolean |
isRunAsUserTheSystemUser() | |
static void |
logAuthenticatedUsers() Logs the current authenticated users |
|
static void |
logNDC(String userNameIn) | |
static void |
popAuthentication() Pop the authentication context from a threadlocal stack. |
|
static void |
pushAuthentication() Push the current authentication context onto a threadlocal stack. |
|
static <R> R |
runAs(AuthenticationUtil.RunAsWork<R> runAsWork, String uid) Execute a unit of work as a given user. |
|
static <R> R |
runAsSystem(AuthenticationUtil.RunAsWork<R> runAsWork) | |
static net.sf.acegisecurity.Authentication |
setAdminUserAsFullyAuthenticatedUser() Authenticate as the Admin user. |
|
void |
setDefaultAdminUserName(String defaultAdminUserName) | |
void |
setDefaultGuestUserName(String defaultGuestUserName) | |
static net.sf.acegisecurity.Authentication |
setFullAuthentication(net.sf.acegisecurity.Authentication authentication) Re-authenticate using a previously-created authentication. |
|
static net.sf.acegisecurity.Authentication |
setFullyAuthenticatedUser(String userName) Authenticate as the given user. |
|
static void |
setMtEnabled(boolean mtEnabled) | |
static net.sf.acegisecurity.Authentication |
setRunAsUser(String userName) WARN: Advanced usage only. Switch to the given user for all authenticated operations. |
|
static net.sf.acegisecurity.Authentication |
setRunAsUserSystem() WARN: Advanced usage only. Set the system user as the currently running user for authentication purposes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
|