org.wso2.balana.ctx
Class MissingAttributeDetail

java.lang.Object
  extended by org.wso2.balana.ctx.MissingAttributeDetail

public class MissingAttributeDetail
extends Object

This represents the MissingAttributeDetailType in context schema. this contains the information about attributes required for policy evaluation that were missing from the request context.


Constructor Summary
MissingAttributeDetail(URI id, URI type, URI category, int xacmlVersion)
          Creates a new MissingAttributeDetail
MissingAttributeDetail(URI id, URI type, URI category, List<AttributeValue> attributeValues, int xacmlVersion)
          Creates a new MissingAttributeDetail
MissingAttributeDetail(URI id, URI type, URI category, String issuer, List<AttributeValue> attributeValues, int xacmlVersion)
          Creates a new MissingAttributeDetail
 
Method Summary
 String getEncoded()
          Returns the encoded String from MissingAttributeDetail
static MissingAttributeDetail getInstance(Node root, PolicyMetaData metaData)
          Creates an instance of an MissingAttributeDetail based on the root DOM node of the XML data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MissingAttributeDetail

public MissingAttributeDetail(URI id,
                              URI type,
                              URI category,
                              String issuer,
                              List<AttributeValue> attributeValues,
                              int xacmlVersion)
Creates a new MissingAttributeDetail

Parameters:
id - the id of the attribute
type - the type of the attribute
category - category of the attributes elements whether it is subject, action and etc
issuer - the attribute's issuer or null if there is none
attributeValues - actual List of AttributeValue
xacmlVersion - xacml version

MissingAttributeDetail

public MissingAttributeDetail(URI id,
                              URI type,
                              URI category,
                              List<AttributeValue> attributeValues,
                              int xacmlVersion)
Creates a new MissingAttributeDetail

Parameters:
id - the id of the attribute
type - the type of the attribute
category - category of the attributes elements whether it is subject, action and etc
attributeValues - actual List of AttributeValue
xacmlVersion - xacml version

MissingAttributeDetail

public MissingAttributeDetail(URI id,
                              URI type,
                              URI category,
                              int xacmlVersion)
Creates a new MissingAttributeDetail

Parameters:
id - the id of the attribute
type - the type of the attribute
category - category of the attributes elements whether it is subject, action and etc
xacmlVersion - xacml version
Method Detail

getInstance

public static MissingAttributeDetail getInstance(Node root,
                                                 PolicyMetaData metaData)
                                          throws ParsingException
Creates an instance of an MissingAttributeDetail based on the root DOM node of the XML data.

Parameters:
root - the DOM root of the AttributeType XML type
metaData - policy meta data
Returns:
a MissingAttributeDetail object
Throws:
ParsingException - throws ParsingException if the data is invalid

getEncoded

public String getEncoded()
                  throws ParsingException
Returns the encoded String from MissingAttributeDetail

Returns:
String
Throws:
ParsingException - if there are any issues, when parsing object in to Sting


Copyright © 2015 WSO2. All rights reserved.