org.openpermis.basic
Class ExpirablePolicyDecisionPoint

java.lang.Object
  extended by org.openpermis.basic.ExpirablePolicyDecisionPoint
All Implemented Interfaces:
PolicyDecisionPoint

public class ExpirablePolicyDecisionPoint
extends Object
implements PolicyDecisionPoint

A PolicyDecisionPoint that may expire.

Since:
0.3.0

Constructor Summary
ExpirablePolicyDecisionPoint(PolicyDecisionPoint pdp, TimePeriod validity)
          Create an expirable policy decision point.
 
Method Summary
 AccessDecision getAccessDecision(Subject subject, URI resourceUri, String actionName, List<?> arguments, TimeStamp timeStamp)
          Decides whether a subject may be given access to a target and what obligations need to be fulfilled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpirablePolicyDecisionPoint

public ExpirablePolicyDecisionPoint(PolicyDecisionPoint pdp,
                                    TimePeriod validity)
Create an expirable policy decision point.

Parameters:
pdp - a PolicyDecisionPoint.
validity - an expirable TimePeriod.
Since:
0.3.0
Method Detail

getAccessDecision

public AccessDecision getAccessDecision(Subject subject,
                                        URI resourceUri,
                                        String actionName,
                                        List<?> arguments,
                                        TimeStamp timeStamp)
                                 throws PolicyDecisionException
Description copied from interface: PolicyDecisionPoint
Decides whether a subject may be given access to a target and what obligations need to be fulfilled.

Specified by:
getAccessDecision in interface PolicyDecisionPoint
Parameters:
subject - a Subject to identify the user requesting access and to provide the roles assigned to her.
resourceUri - a URI to identify the resource that the subject wants to access.
actionName - the name of the action that the subject wants to perform on the resource.
arguments - an optional list of arguments for the action that the subject wants to perform on the resource.
timeStamp - the time at which the action is executed.
Returns:
an AccessDecision containing the PDP's decision and the obligations associated with the decision.
Throws:
PolicyDecisionException - if the PDP fails to make an access decision.
Since:
0.3.0


PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:14:49
Copyright (c) 2002-2007 Ergon Informatik AG