Package org.alfresco.mock.test
Class MockAuthenticationService
- java.lang.Object
-
- org.alfresco.mock.test.MockAuthenticationService
-
- All Implemented Interfaces:
Serializable,org.alfresco.service.cmr.security.AuthenticationService,org.alfresco.service.cmr.security.MutableAuthenticationService
public class MockAuthenticationService extends Object implements org.alfresco.service.cmr.security.MutableAuthenticationService, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MockAuthenticationService()
-
Method Summary
-
-
-
Method Detail
-
getAuthenticationEnabled
public boolean getAuthenticationEnabled(String userName) throws org.alfresco.repo.security.authentication.AuthenticationException
- Specified by:
getAuthenticationEnabledin interfaceorg.alfresco.service.cmr.security.AuthenticationService- Throws:
org.alfresco.repo.security.authentication.AuthenticationException
-
authenticate
public void authenticate(String userName, char[] password) throws org.alfresco.repo.security.authentication.AuthenticationException
- Specified by:
authenticatein interfaceorg.alfresco.service.cmr.security.AuthenticationService- Throws:
org.alfresco.repo.security.authentication.AuthenticationException
-
authenticateAsGuest
public void authenticateAsGuest() throws org.alfresco.repo.security.authentication.AuthenticationException- Specified by:
authenticateAsGuestin interfaceorg.alfresco.service.cmr.security.AuthenticationService- Throws:
org.alfresco.repo.security.authentication.AuthenticationException
-
guestUserAuthenticationAllowed
public boolean guestUserAuthenticationAllowed()
- Specified by:
guestUserAuthenticationAllowedin interfaceorg.alfresco.service.cmr.security.AuthenticationService
-
authenticationExists
public boolean authenticationExists(String userName)
- Specified by:
authenticationExistsin interfaceorg.alfresco.service.cmr.security.AuthenticationService
-
getCurrentUserName
public String getCurrentUserName() throws org.alfresco.repo.security.authentication.AuthenticationException
- Specified by:
getCurrentUserNamein interfaceorg.alfresco.service.cmr.security.AuthenticationService- Throws:
org.alfresco.repo.security.authentication.AuthenticationException
-
invalidateUserSession
public void invalidateUserSession(String userName) throws org.alfresco.repo.security.authentication.AuthenticationException
- Specified by:
invalidateUserSessionin interfaceorg.alfresco.service.cmr.security.AuthenticationService- Throws:
org.alfresco.repo.security.authentication.AuthenticationException
-
invalidateTicket
public void invalidateTicket(String ticket) throws org.alfresco.repo.security.authentication.AuthenticationException
- Specified by:
invalidateTicketin interfaceorg.alfresco.service.cmr.security.AuthenticationService- Throws:
org.alfresco.repo.security.authentication.AuthenticationException
-
validate
public void validate(String ticket) throws org.alfresco.repo.security.authentication.AuthenticationException
- Specified by:
validatein interfaceorg.alfresco.service.cmr.security.AuthenticationService- Throws:
org.alfresco.repo.security.authentication.AuthenticationException
-
getCurrentTicket
public String getCurrentTicket()
- Specified by:
getCurrentTicketin interfaceorg.alfresco.service.cmr.security.AuthenticationService
-
getNewTicket
public String getNewTicket()
- Specified by:
getNewTicketin interfaceorg.alfresco.service.cmr.security.AuthenticationService
-
clearCurrentSecurityContext
public void clearCurrentSecurityContext()
- Specified by:
clearCurrentSecurityContextin interfaceorg.alfresco.service.cmr.security.AuthenticationService
-
isCurrentUserTheSystemUser
public boolean isCurrentUserTheSystemUser()
- Specified by:
isCurrentUserTheSystemUserin interfaceorg.alfresco.service.cmr.security.AuthenticationService
-
getDomains
public Set<String> getDomains()
- Specified by:
getDomainsin interfaceorg.alfresco.service.cmr.security.AuthenticationService
-
getDomainsThatAllowUserCreation
public Set<String> getDomainsThatAllowUserCreation()
- Specified by:
getDomainsThatAllowUserCreationin interfaceorg.alfresco.service.cmr.security.AuthenticationService
-
getDomainsThatAllowUserDeletion
public Set<String> getDomainsThatAllowUserDeletion()
- Specified by:
getDomainsThatAllowUserDeletionin interfaceorg.alfresco.service.cmr.security.AuthenticationService
-
getDomiansThatAllowUserPasswordChanges
public Set<String> getDomiansThatAllowUserPasswordChanges()
- Specified by:
getDomiansThatAllowUserPasswordChangesin interfaceorg.alfresco.service.cmr.security.AuthenticationService
-
getDefaultAdministratorUserNames
public Set<String> getDefaultAdministratorUserNames()
- Specified by:
getDefaultAdministratorUserNamesin interfaceorg.alfresco.service.cmr.security.AuthenticationService
-
getDefaultGuestUserNames
public Set<String> getDefaultGuestUserNames()
- Specified by:
getDefaultGuestUserNamesin interfaceorg.alfresco.service.cmr.security.AuthenticationService
-
isAuthenticationMutable
public boolean isAuthenticationMutable(String userName)
- Specified by:
isAuthenticationMutablein interfaceorg.alfresco.service.cmr.security.MutableAuthenticationService
-
isAuthenticationCreationAllowed
public boolean isAuthenticationCreationAllowed()
- Specified by:
isAuthenticationCreationAllowedin interfaceorg.alfresco.service.cmr.security.MutableAuthenticationService
-
createAuthentication
public void createAuthentication(String userName, char[] password) throws org.alfresco.repo.security.authentication.AuthenticationException
- Specified by:
createAuthenticationin interfaceorg.alfresco.service.cmr.security.MutableAuthenticationService- Throws:
org.alfresco.repo.security.authentication.AuthenticationException
-
updateAuthentication
public void updateAuthentication(String userName, char[] oldPassword, char[] newPassword) throws org.alfresco.repo.security.authentication.AuthenticationException
- Specified by:
updateAuthenticationin interfaceorg.alfresco.service.cmr.security.MutableAuthenticationService- Throws:
org.alfresco.repo.security.authentication.AuthenticationException
-
setAuthentication
public void setAuthentication(String userName, char[] newPassword) throws org.alfresco.repo.security.authentication.AuthenticationException
- Specified by:
setAuthenticationin interfaceorg.alfresco.service.cmr.security.MutableAuthenticationService- Throws:
org.alfresco.repo.security.authentication.AuthenticationException
-
deleteAuthentication
public void deleteAuthentication(String userName) throws org.alfresco.repo.security.authentication.AuthenticationException
- Specified by:
deleteAuthenticationin interfaceorg.alfresco.service.cmr.security.MutableAuthenticationService- Throws:
org.alfresco.repo.security.authentication.AuthenticationException
-
setAuthenticationEnabled
public void setAuthenticationEnabled(String userName, boolean enabled) throws org.alfresco.repo.security.authentication.AuthenticationException
- Specified by:
setAuthenticationEnabledin interfaceorg.alfresco.service.cmr.security.MutableAuthenticationService- Throws:
org.alfresco.repo.security.authentication.AuthenticationException
-
-