All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.alfresco.mock.test.MockAuthenticationService Maven / Gradle / Ivy

Go to download

This is a jar project based on mock classes to test fastly the alfresco applications

The newest version!
package org.alfresco.mock.test;

import java.io.Serializable;
import java.util.Set;

import org.alfresco.repo.security.authentication.AuthenticationException;
import org.alfresco.service.cmr.security.MutableAuthenticationService;

public class MockAuthenticationService implements MutableAuthenticationService, Serializable {

	@Override
	public boolean getAuthenticationEnabled(String userName) throws AuthenticationException {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void authenticate(String userName, char[] password) throws AuthenticationException {
		// TODO Auto-generated method stub

	}

	@Override
	public void authenticateAsGuest() throws AuthenticationException {
		// TODO Auto-generated method stub

	}

	@Override
	public boolean guestUserAuthenticationAllowed() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean authenticationExists(String userName) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public String getCurrentUserName() throws AuthenticationException {
		return "tester";
	}

	@Override
	public void invalidateUserSession(String userName) throws AuthenticationException {
		// TODO Auto-generated method stub

	}

	@Override
	public void invalidateTicket(String ticket) throws AuthenticationException {
		// TODO Auto-generated method stub

	}

	@Override
	public void validate(String ticket) throws AuthenticationException {
		// TODO Auto-generated method stub

	}

	@Override
	public String getCurrentTicket() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getNewTicket() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void clearCurrentSecurityContext() {
		// TODO Auto-generated method stub

	}

	@Override
	public boolean isCurrentUserTheSystemUser() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public Set getDomains() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Set getDomainsThatAllowUserCreation() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Set getDomainsThatAllowUserDeletion() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Set getDomiansThatAllowUserPasswordChanges() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Set getDefaultAdministratorUserNames() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Set getDefaultGuestUserNames() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean isAuthenticationMutable(String userName) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean isAuthenticationCreationAllowed() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void createAuthentication(String userName, char[] password) throws AuthenticationException {
		// TODO Auto-generated method stub

	}

	@Override
	public void updateAuthentication(String userName, char[] oldPassword, char[] newPassword)
			throws AuthenticationException {
		// TODO Auto-generated method stub

	}

	@Override
	public void setAuthentication(String userName, char[] newPassword) throws AuthenticationException {
		// TODO Auto-generated method stub

	}

	@Override
	public void deleteAuthentication(String userName) throws AuthenticationException {
		// TODO Auto-generated method stub

	}

	@Override
	public void setAuthenticationEnabled(String userName, boolean enabled) throws AuthenticationException {
		// TODO Auto-generated method stub

	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy