package eu.dnetlib.enabling.aas.secprof;

import eu.dnetlib.enabling.aas.rmi.TypedString;

/**
 * Proxy for retrieving profiles.
 * @author mhorst
 *
 */
public interface IProfilesRetrieverProxy {

	/**
	 * Searches for security profile for given principal.
	 * @param principal
	 * @return security profile
	 */
	public SecurityProfile findSecurityProfile(TypedString principal, ProfileIdentifierLocation loc);
	
	/**
	 * Removes principal map entry for resourceId given as parameter.  
	 * @param resourceId
	 * @return deleted principal
	 */
	public TypedString removeCachedPrincipal(String resourceId);

}
