eu.xtreemos.xosd.vops.xacml.policy
Class PolicyTargetResource

java.lang.Object
  extended by eu.xtreemos.xosd.vops.xacml.policy.PolicyTargetResource

public class PolicyTargetResource
extends java.lang.Object

Created for testing purposes (RAL meeting in december), access control can be performed on individual resources and more general, should be used to control access to a group of resources/services sharing certain characteristics . Target has to be well defined.

Author:
ales.cernivec@xlab.si

Field Summary
private  java.util.ArrayList<com.sun.xacml.TargetMatch> alResourceMatch
           
private  com.sun.xacml.attr.AttributeDesignator resourceDesignator
           
private  com.sun.xacml.attr.StringAttribute resourceValue
           
 
Constructor Summary
PolicyTargetResource()
           
PolicyTargetResource(java.lang.String resourceMatchId, java.net.URI designatorType, java.net.URI designatorId, java.lang.String value)
          Creates PolicyTargetResource.
 
Method Summary
 void AddResourceMatch(java.lang.String resourceMatchId, java.net.URI designatorType, java.net.URI designatorId, java.lang.String value)
          Adds resource's attribute into description of the resource into policy.
 java.util.ArrayList<com.sun.xacml.TargetMatch> getResource()
           
 void parse(eu.xtreemos.xosd.factory.utils.parsers.XMLSearchEngine xse, java.util.Hashtable<java.lang.String,java.lang.Object> inData)
          Parses resource target of policy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

alResourceMatch

private java.util.ArrayList<com.sun.xacml.TargetMatch> alResourceMatch

resourceDesignator

private com.sun.xacml.attr.AttributeDesignator resourceDesignator

resourceValue

private com.sun.xacml.attr.StringAttribute resourceValue
Constructor Detail

PolicyTargetResource

public PolicyTargetResource()

PolicyTargetResource

public PolicyTargetResource(java.lang.String resourceMatchId,
                            java.net.URI designatorType,
                            java.net.URI designatorId,
                            java.lang.String value)
                     throws java.lang.Exception
Creates PolicyTargetResource.

Parameters:
resourceMatchId - e.g. "urn:oasis:names:tc:xacml:1.0:function:anyURI-equal"
designatorType - e.g. "http://www.w3.org/2001/XMLSchema#anyURI"
designatorId - e.g. "urn:oasis:names:tc:xacml:1.0:resource:resource-id"
value - string presenting resource
Throws:
java.lang.Exception
Method Detail

AddResourceMatch

public void AddResourceMatch(java.lang.String resourceMatchId,
                             java.net.URI designatorType,
                             java.net.URI designatorId,
                             java.lang.String value)
Adds resource's attribute into description of the resource into policy.

Parameters:
resourceMatchId -
designatorType -
designatorId -
value -

getResource

public java.util.ArrayList<com.sun.xacml.TargetMatch> getResource()

parse

public void parse(eu.xtreemos.xosd.factory.utils.parsers.XMLSearchEngine xse,
                  java.util.Hashtable<java.lang.String,java.lang.Object> inData)
           throws java.lang.Exception
Parses resource target of policy.

Parameters:
xse - search engine.
inData - Hashtable of data.
Throws:
java.lang.Exception