|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.security.authentication.AuthenticationContextImpl
public class AuthenticationContextImpl
| Constructor Summary | |
|---|---|
AuthenticationContextImpl()
|
|
| Method Summary | |
|---|---|
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. |
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
|
net.sf.acegisecurity.Authentication |
setUserDetails(net.sf.acegisecurity.UserDetails ud)
Explicitly set the given validated user details to be authenticated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthenticationContextImpl()
| Method Detail |
|---|
public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
public net.sf.acegisecurity.Authentication setUserDetails(net.sf.acegisecurity.UserDetails ud)
setUserDetails in interface AuthenticationContextud - the User Details
public net.sf.acegisecurity.Authentication setSystemUserAsCurrentUser()
AuthenticationContext
setSystemUserAsCurrentUser in interface AuthenticationContextpublic net.sf.acegisecurity.Authentication setSystemUserAsCurrentUser(java.lang.String tenantDomain)
AuthenticationContext
setSystemUserAsCurrentUser in interface AuthenticationContextpublic java.lang.String getSystemUserName()
AuthenticationContext
getSystemUserName in interface AuthenticationContextpublic java.lang.String getSystemUserName(java.lang.String tenantDomain)
AuthenticationContext
getSystemUserName in interface AuthenticationContextpublic boolean isSystemUserName(java.lang.String userName)
AuthenticationContext
isSystemUserName in interface AuthenticationContextpublic boolean isCurrentUserTheSystemUser()
AuthenticationContext
isCurrentUserTheSystemUser in interface AuthenticationContextpublic java.lang.String getGuestUserName(java.lang.String tenantDomain)
AuthenticationContext
getGuestUserName in interface AuthenticationContextpublic java.lang.String getGuestUserName()
AuthenticationContext
getGuestUserName in interface AuthenticationContextpublic boolean isGuestUserName(java.lang.String userName)
AuthenticationContext
isGuestUserName in interface AuthenticationContextpublic net.sf.acegisecurity.Authentication setCurrentAuthentication(net.sf.acegisecurity.Authentication authentication)
AuthenticationContextcleared.
setCurrentAuthentication in interface AuthenticationContextauthentication - the current authentication (may be null).
public net.sf.acegisecurity.Authentication getCurrentAuthentication()
throws org.alfresco.repo.security.authentication.AuthenticationException
getCurrentAuthentication in interface AuthenticationContextAuthenticationException
public java.lang.String getCurrentUserName()
throws org.alfresco.repo.security.authentication.AuthenticationException
AuthenticationContext
getCurrentUserName in interface AuthenticationContextAuthenticationExceptionpublic void clearCurrentSecurityContext()
AuthenticationContext
clearCurrentSecurityContext in interface AuthenticationContextpublic java.lang.String getUserDomain(java.lang.String userName)
AuthenticationContext
getUserDomain in interface AuthenticationContextuserName - a user name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||