Class MyDataUtil


  • public class MyDataUtil
    extends Object
    This class provides helpful tools.
    • Method Detail

      • checkedBlockingGet

        public static de.fraunhofer.iese.mydata.policy.event.Event checkedBlockingGet​(rx.Observable<de.fraunhofer.iese.mydata.policy.event.Event> eventObservable)
                                                                               throws de.fraunhofer.iese.mydata.policy.exception.InhibitException,
                                                                                      de.fraunhofer.iese.mydata.policy.exception.EvaluationUndecidableException,
                                                                                      IOException
        This helper method supports you in retrieving the enforced Event from a reactive PEP with checked exceptions.
           
             final Event enforcedEvent = MyDataUtil.checkedBlockingGet(myPep.enforceUser(u));
           
         
        Parameters:
        eventObservable - the Observable we are interested in
        Returns:
        the enforced Event
        Throws:
        de.fraunhofer.iese.mydata.policy.exception.EvaluationUndecidableException - if PDP can't decide.
        de.fraunhofer.iese.mydata.policy.exception.InhibitException - if event is not allowed
        IOException - if connection to PDP is not established