eu.xtreemos.xosd.security.vops.xacml.request.attributes
Class SubjectJSDLAttr

java.lang.Object
  extended by eu.xtreemos.xosd.security.vops.xacml.request.attributes.Attributes
      extended by eu.xtreemos.xosd.security.vops.xacml.request.attributes.SubjectJSDLAttr
All Implemented Interfaces:
IAttributes

public class SubjectJSDLAttr
extends Attributes


Field Summary
 
Fields inherited from class eu.xtreemos.xosd.security.vops.xacml.request.attributes.Attributes
attributes
 
Constructor Summary
SubjectJSDLAttr(java.util.Hashtable<java.lang.String,java.lang.Object> jsdlData)
           
 
Method Summary
 void addAttribute(com.sun.xacml.ctx.Attribute attribute)
          Adds an attribute to list of attributes
 void addAttributes(java.util.ArrayList<com.sun.xacml.ctx.Attribute> attributes)
          Adds a list of XACML attributes into master list
 void combineAttributes(IAttributes attributes)
          Combines attributes from interface passed as argument with current attribute list.
 java.util.ArrayList<com.sun.xacml.ctx.Attribute> getAttributes()
           
 void initializeAttributes(java.lang.Object source)
          Initializes attributes from source parameter.
static java.util.ArrayList<com.sun.xacml.ctx.Attribute> obtainAttributes(java.util.Hashtable<java.lang.String,java.lang.Object> jsdlHashTable)
          Extracts from JSDL attributes for request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubjectJSDLAttr

public SubjectJSDLAttr(java.util.Hashtable<java.lang.String,java.lang.Object> jsdlData)
                throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

addAttribute

public void addAttribute(com.sun.xacml.ctx.Attribute attribute)
Description copied from interface: IAttributes
Adds an attribute to list of attributes

Specified by:
addAttribute in interface IAttributes
Overrides:
addAttribute in class Attributes

addAttributes

public void addAttributes(java.util.ArrayList<com.sun.xacml.ctx.Attribute> attributes)
Description copied from interface: IAttributes
Adds a list of XACML attributes into master list.\

Specified by:
addAttributes in interface IAttributes
Overrides:
addAttributes in class Attributes

combineAttributes

public void combineAttributes(IAttributes attributes)
Description copied from interface: IAttributes
Combines attributes from interface passed as argument with current attribute list.

Specified by:
combineAttributes in interface IAttributes
Overrides:
combineAttributes in class Attributes

getAttributes

public java.util.ArrayList<com.sun.xacml.ctx.Attribute> getAttributes()
Specified by:
getAttributes in interface IAttributes
Overrides:
getAttributes in class Attributes
Returns:
All attributes as list of XACML Attributes

initializeAttributes

public void initializeAttributes(java.lang.Object source)
                          throws java.lang.Exception
Initializes attributes from source parameter.

Specified by:
initializeAttributes in interface IAttributes
Overrides:
initializeAttributes in class Attributes
Parameters:
source - should be instance of Hashtable class
Throws:
java.lang.Exception

obtainAttributes

public static java.util.ArrayList<com.sun.xacml.ctx.Attribute> obtainAttributes(java.util.Hashtable<java.lang.String,java.lang.Object> jsdlHashTable)
                                                                         throws java.lang.Exception
Extracts from JSDL attributes for request. Uses XACMLConstants class to get all available attributes.

Parameters:
jsdlHashTable - Input from XMLValidatorAndParser class.
Returns:
Throws:
java.lang.Exception