gov.lanl.RAD.Impl
Class DecisionCombinatorImpl

java.lang.Object
  |
  +--org.omg.PortableServer.Servant
        |
        +--org.omg.DfResourceAccessDecision.DecisionCombinatorPOA
              |
              +--gov.lanl.RAD.AbstractDecisionCombinator
                    |
                    +--gov.lanl.RAD.Impl.DecisionCombinatorImpl
All Implemented Interfaces:
org.omg.DfResourceAccessDecision.DecisionCombinatorOperations, org.omg.CORBA.portable.InvokeHandler

public class DecisionCombinatorImpl
extends AbstractDecisionCombinator

This implementation of DecisionCombinator requires all the PolicyEvaluators to allow access or deny access

 

Field Summary
 
Fields inherited from class gov.lanl.RAD.AbstractDecisionCombinator
name, orb, props
 
Constructor Summary
DecisionCombinatorImpl()
          creates a named DecisionCombinator implementation
DecisionCombinatorImpl(java.lang.String name, int AccessFlag)
          creates a named DecisionCombinator implementation
 
Method Summary
 boolean combine_decisions(org.omg.DfResourceAccessDecision.ResourceName resource_name, java.lang.String operation, org.omg.Security.SecAttribute[] attribute_list, org.omg.DfResourceAccessDecision.NamedPolicyEvaluator[] policy_evaluator_list)
          Returns false (denies access) unless all the Policy Evaluators allow access
 void setProperties(java.lang.String file)
          set the properties for configuring the server
 
Methods inherited from class gov.lanl.RAD.AbstractDecisionCombinator
setName, setOrb
 
Methods inherited from class org.omg.DfResourceAccessDecision.DecisionCombinatorPOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecisionCombinatorImpl

public DecisionCombinatorImpl()
creates a named DecisionCombinator implementation


DecisionCombinatorImpl

public DecisionCombinatorImpl(java.lang.String name,
                              int AccessFlag)
creates a named DecisionCombinator implementation

Parameters:
name - specifies the name of the object.
AccessFlag - selects DecisionResult to be returned DecisionResult: ACCESS_DECISION_ALLOWED = 0 ACCESS_DECISION_NOT_ALLOWED = 1 ACCESS_DECISION_UNKNOWN = 2
Method Detail

setProperties

public void setProperties(java.lang.String file)
set the properties for configuring the server

Overrides:
setProperties in class AbstractDecisionCombinator
Parameters:
file -

combine_decisions

public boolean combine_decisions(org.omg.DfResourceAccessDecision.ResourceName resource_name,
                                 java.lang.String operation,
                                 org.omg.Security.SecAttribute[] attribute_list,
                                 org.omg.DfResourceAccessDecision.NamedPolicyEvaluator[] policy_evaluator_list)
                          throws org.omg.DfResourceAccessDecision.RadComponentError
Returns false (denies access) unless all the Policy Evaluators allow access

org.omg.DfResourceAccessDecision.RadComponentError
Parameters:
resource_name - specifies the resource for which access permission is requested
operation - specifies the purpose(READ/ADD/EDIT) for which the resource is requested
attribute_list - specifies the Requester's Security Attributes
policy_evaluator_list - specifies the list of PolicyEvaluators that should be consulted in order to decide whether to grant access
Returns:
returns whether access is allowed or not