issrg.utils.handler
Class HandlerUtil

java.lang.Object
  extended by issrg.utils.handler.HandlerUtil

public class HandlerUtil
extends java.lang.Object

this class defines a set of methods of handling extended XACML request context

Author:
ls97

Constructor Summary
HandlerUtil(org.w3c.dom.Document docIn, PermisRBAC pbaIn)
           
 
Method Summary
 org.w3c.dom.Element getAllValid(org.w3c.dom.Element context, boolean inputOnly)
          this is used to create XACML request context, which includes all of the valid attributes.
 org.w3c.dom.Element getAllValidFromCVS(org.w3c.dom.Element context, boolean inputOnly)
          this method returns XACML request context, which contains all of the valid attributes, which are either from the pushed credentails or external attributes.
 org.w3c.dom.Element getValidOnly(org.w3c.dom.Element context)
          this is used to extract all of the valid attributes from the input XACML request context, which may include invalid attributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandlerUtil

public HandlerUtil(org.w3c.dom.Document docIn,
                   PermisRBAC pbaIn)
Method Detail

getValidOnly

public org.w3c.dom.Element getValidOnly(org.w3c.dom.Element context)
this is used to extract all of the valid attributes from the input XACML request context, which may include invalid attributes.

Parameters:
context, - the input context.
Returns:
XACML request context, all of the attributes there are valid.

getAllValid

public org.w3c.dom.Element getAllValid(org.w3c.dom.Element context,
                                       boolean inputOnly)
this is used to create XACML request context, which includes all of the valid attributes. Some attributes are already in the input context, the others are from the pushed credentials or pulled from the configured CVS.

Parameters:
context, - the input context.
InputOnly - indicates whether or not to get external attributes. If it is true, then only push mode is used.
Returns:
the returned XACML request context.

getAllValidFromCVS

public org.w3c.dom.Element getAllValidFromCVS(org.w3c.dom.Element context,
                                              boolean inputOnly)
this method returns XACML request context, which contains all of the valid attributes, which are either from the pushed credentails or external attributes.

Parameters:
context, - the input XACML request context.
InputOnly - indicates whether or not to get external attributes. If it is true, then only push mode is used.
Returns:
the XACML request context.