org.umu.macow.pep.test
Class FilePEPFacade

java.lang.Object
  extended by org.umu.macow.pep.PEPFacade
      extended by org.umu.macow.pep.test.FilePEPFacade

public class FilePEPFacade
extends PEPFacade

This is an emulation of a PEP implementation done by means of the usage of files in order to simulate element states and access attempts. User: jmalcaraz@um.es - University Of Murcia


Constructor Summary
FilePEPFacade()
           
 
Method Summary
 void publishKnowledge()
          Ask for a PEP state from file and use PEPFacade to notify it
 java.lang.String requestAccess()
          Ask for the decision of an access attempt provided by file and return the result statement.
 
Methods inherited from class org.umu.macow.pep.PEPFacade
publishKnowledge, requestAccess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilePEPFacade

public FilePEPFacade()
Method Detail

publishKnowledge

public void publishKnowledge()
                      throws java.rmi.RemoteException
Ask for a PEP state from file and use PEPFacade to notify it

Throws:
java.rmi.RemoteException - In case any error occur

requestAccess

public java.lang.String requestAccess()
Ask for the decision of an access attempt provided by file and return the result statement.

Returns:
"true" if the simulated access attempt is authorised by PDP and "false" otherwise