public interface AuthenticationContext
Modifier and Type | Method and Description |
---|---|
void |
clearCurrentSecurityContext()
Remove the current security information
|
net.sf.acegisecurity.Authentication |
getCurrentAuthentication() |
java.lang.String |
getCurrentUserName()
Get the current user name.
|
java.lang.String |
getGuestUserName()
Get the name of the Guest User.
|
java.lang.String |
getGuestUserName(java.lang.String tenantDomain)
Get the name of the guest user
|
java.lang.String |
getSystemUserName()
Get the name of the system user.
|
java.lang.String |
getSystemUserName(java.lang.String tenantDomain)
Get the name of the system user
|
java.lang.String |
getUserDomain(java.lang.String userName)
Extracts the tenant domain name from a user name
|
boolean |
isCurrentUserTheSystemUser()
Is the current user the system user?
|
boolean |
isGuestUserName(java.lang.String userName)
True if this is a guest user ?
|
boolean |
isSystemUserName(java.lang.String userName)
True if this is the System user ?
|
net.sf.acegisecurity.Authentication |
setCurrentAuthentication(net.sf.acegisecurity.Authentication authentication)
Explicitly set the current suthentication.
|
net.sf.acegisecurity.Authentication |
setSystemUserAsCurrentUser()
Set the system user as the current user.
|
net.sf.acegisecurity.Authentication |
setSystemUserAsCurrentUser(java.lang.String tenantDomain)
Set the system user as the current user.
|
net.sf.acegisecurity.Authentication |
setUserDetails(net.sf.acegisecurity.UserDetails ud)
Explicitly set the given validated user details to be authenticated.
|
void clearCurrentSecurityContext()
net.sf.acegisecurity.Authentication setCurrentAuthentication(net.sf.acegisecurity.Authentication authentication)
cleared
.authentication
- the current authentication (may be null).net.sf.acegisecurity.Authentication setUserDetails(net.sf.acegisecurity.UserDetails ud)
ud
- the User Detailsnet.sf.acegisecurity.Authentication getCurrentAuthentication() throws org.alfresco.repo.security.authentication.AuthenticationException
AuthenticationException
net.sf.acegisecurity.Authentication setSystemUserAsCurrentUser()
net.sf.acegisecurity.Authentication setSystemUserAsCurrentUser(java.lang.String tenantDomain)
java.lang.String getSystemUserName()
java.lang.String getSystemUserName(java.lang.String tenantDomain)
boolean isSystemUserName(java.lang.String userName)
boolean isCurrentUserTheSystemUser()
java.lang.String getGuestUserName()
java.lang.String getGuestUserName(java.lang.String tenantDomain)
boolean isGuestUserName(java.lang.String userName)
java.lang.String getCurrentUserName() throws org.alfresco.repo.security.authentication.AuthenticationException
AuthenticationException
java.lang.String getUserDomain(java.lang.String userName)
userName
- a user nameCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.