org.umu.macow.pep
Class PEPFacade

java.lang.Object
  extended by org.umu.macow.pep.PEPFacade
Direct Known Subclasses:
FilePEPFacade

public class PEPFacade
extends java.lang.Object

This class provides the communication among PEP implementations and other entities involved in MACOW including PIP and PDP. User: jmalcaraz@um.es - University Of Murcia


Constructor Summary
PEPFacade()
           
 
Method Summary
 void publishKnowledge(com.hp.hpl.jena.rdf.model.Model state)
          This method will publish the model provided on the Event Manager communication system.
 java.lang.String requestAccess(java.lang.String accessAttempt)
          This method will process an access attempt by means of a PDP communication and then will return if it is an authorized attempt or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PEPFacade

public PEPFacade()
Method Detail

publishKnowledge

public void publishKnowledge(com.hp.hpl.jena.rdf.model.Model state)
                      throws java.rmi.RemoteException
This method will publish the model provided on the Event Manager communication system.

Parameters:
state - This is the knowledge to be published
Throws:
java.rmi.RemoteException - In case any error occur during communications

requestAccess

public java.lang.String requestAccess(java.lang.String accessAttempt)
                               throws java.rmi.RemoteException
This method will process an access attempt by means of a PDP communication and then will return if it is an authorized attempt or not.

Parameters:
accessAttempt - A CIM representation on RDF of an access attempt.
Returns:
"true" it is an authorized access and "false" otherwise
Throws:
java.rmi.RemoteException - In case any error occur during communications