Package | Description |
---|---|
org.wso2.balana |
This is the root package, which contains the PDP class where most
people will want to start.
|
org.wso2.balana.attr |
Contains many of the classes related to attributes and attribute
retrieval.
|
org.wso2.balana.attr.proxy |
This package defines proxy classes for all of the standard
datatypes.
|
org.wso2.balana.attr.xacml3 | |
org.wso2.balana.combine |
All of the combining algorithm support is in this package.
|
org.wso2.balana.cond |
Support for Conditions is in this package.
|
org.wso2.balana.ctx |
All of the classes that support the context schema are in this
package.
|
org.wso2.balana.ctx.xacml2 | |
org.wso2.balana.ctx.xacml3 | |
org.wso2.balana.xacml2 | |
org.wso2.balana.xacml3 |
Modifier and Type | Method and Description |
---|---|
static PolicySet |
PolicySet.getInstance(Node root)
Creates an instance of a
PolicySet object based on a DOM node. |
static Policy |
Policy.getInstance(Node root)
Creates an instance of a
Policy object based on a DOM node. |
static TargetMatch |
TargetMatch.getInstance(Node root,
int matchType,
PolicyMetaData metaData)
Creates a
TargetMatch by parsing a node, using the input prefix to determine
whether this is a SubjectMatch, ResourceMatch, or ActionMatch. |
static PolicySet |
PolicySet.getInstance(Node root,
PolicyFinder finder)
Creates an instance of a
PolicySet object based on a DOM node. |
static PolicyReference |
PolicyReference.getInstance(Node root,
PolicyFinder finder)
Deprecated.
As of 2.0 you should avoid using this method and should instead use the version
that takes a
PolicyMetaData instance. This method will only work for
XACML 1.x policies. |
static PolicyReference |
PolicyReference.getInstance(Node root,
PolicyFinder finder,
PolicyMetaData metaData)
Creates an instance of a
PolicyReference object based on a DOM node. |
static TargetMatch |
TargetMatch.getInstance(Node root,
PolicyMetaData metaData) |
static Rule |
Rule.getInstance(Node root,
PolicyMetaData metaData,
VariableManager manager)
Returns a new instance of the
Rule class based on a DOM node. |
static Rule |
Rule.getInstance(Node root,
String xpathVersion)
Deprecated.
As of 2.0 you should avoid using this method and should instead use the version
that takes a
PolicyMetaData instance. This method will only work for
XACML 1.x policies. |
static TargetMatch |
TargetMatch.getInstance(Node root,
String prefix,
String xpathVersion)
Deprecated.
As of 2.0 you should avoid using this method and should instead use the version
that takes a
PolicyMetaData instance. This method will only work for
XACML 1.x policies. |
AbstractObligation |
ObligationFactory.getObligation(Node node,
PolicyMetaData metaData) |
AbstractTarget |
TargetFactory.getTarget(Node node,
PolicyMetaData metaData)
Returns AbstractTarget based one the XACML version
|
Constructor and Description |
---|
AbstractPolicy(Node root,
String policyPrefix,
String combiningName)
Constructor used by child classes to initialize the shared data from a DOM root node.
|
ConfigurationStore()
Default constructor.
|
ConfigurationStore(File configFile)
Constructor that explicitly specifies the configuration file to load.
|
Modifier and Type | Method and Description |
---|---|
AttributeValue |
BaseAttributeFactory.createValue(Node root)
Creates a value based on the given DOM root node.
|
abstract AttributeValue |
AttributeFactory.createValue(Node root)
Creates a value based on the given DOM root node.
|
AttributeValue |
BaseAttributeFactory.createValue(Node root,
String type)
Creates a value based on the given DOM root node and data type.
|
abstract AttributeValue |
AttributeFactory.createValue(Node root,
String type)
Creates a value based on the given DOM root node and data type.
|
AttributeValue |
BaseAttributeFactory.createValue(Node root,
URI dataType)
Creates a value based on the given DOM root node and data type.
|
abstract AttributeValue |
AttributeFactory.createValue(Node root,
URI dataType)
Creates a value based on the given DOM root node and data type.
|
AttributeValue |
AttributeFactory.createValue(URI dataType,
String value)
Creates a value based on the given data type and text-encoded value.
|
AttributeValue |
BaseAttributeFactory.createValue(URI dataType,
String value,
String[] params)
Creates a value based on the given data type and text-encoded value.
|
abstract AttributeValue |
AttributeFactory.createValue(URI dataType,
String value,
String[] params)
Creates a value based on the given data type and text-encoded value.
|
AbstractDesignator |
AttributeDesignatorFactory.getAbstractDesignator(Node root,
PolicyMetaData metaData) |
AbstractAttributeSelector |
AttributeSelectorFactory.getAbstractSelector(Node root,
PolicyMetaData metaData) |
static DNSNameAttribute |
DNSNameAttribute.getInstance(Node root)
Returns a new
DNSNameAttribute that represents the name at a particular DOM
node. |
static YearMonthDurationAttribute |
YearMonthDurationAttribute.getInstance(Node root)
Returns a new
YearMonthDurationAttribute that represents the
xf:yearMonthDuration at a particular DOM node. |
static IPAddressAttribute |
IPAddressAttribute.getInstance(Node root)
Returns a new
IPAddressAttribute that represents the name at a particular DOM
node. |
static HexBinaryAttribute |
HexBinaryAttribute.getInstance(Node root)
Returns a new
HexBinaryAttribute that represents the xsi:hexBinary at a
particular DOM node. |
static DateTimeAttribute |
DateTimeAttribute.getInstance(Node root)
Returns a new
DateTimeAttribute that represents the xs:dateTime at a particular
DOM node. |
static Base64BinaryAttribute |
Base64BinaryAttribute.getInstance(Node root)
Returns a new
Base64BinaryAttribute that represents the xsi:base64Binary at a
particular DOM node. |
static BooleanAttribute |
BooleanAttribute.getInstance(Node root)
Returns a
BooleanAttribute that represents the xs:boolean at a particular DOM
node. |
static TimeAttribute |
TimeAttribute.getInstance(Node root)
Returns a new
TimeAttribute that represents the xs:time at a particular DOM
node. |
static AttributeDesignator |
AttributeDesignator.getInstance(Node root)
Creates a new
AttributeDesignator based on the DOM root of the XML data. |
static DayTimeDurationAttribute |
DayTimeDurationAttribute.getInstance(Node root)
Returns a new
DayTimeDurationAttribute that represents the xf:dayTimeDuration at
a particular DOM node. |
static AttributeSelector |
AttributeSelector.getInstance(Node root,
PolicyMetaData metaData)
Creates a new
AttributeSelector based on the DOM root of the XML type. |
static AttributeSelector |
AttributeSelector.getInstance(Node root,
String xpathVersion)
Deprecated.
As of 2.0 you should avoid using this method and should instead use the version
that takes a
PolicyMetaData instance. This method will only work for
XACML 1.x policies. |
static DNSNameAttribute |
DNSNameAttribute.getInstance(String value)
Returns a new
DNSNameAttribute that represents the name indicated by the
String provided. |
static YearMonthDurationAttribute |
YearMonthDurationAttribute.getInstance(String value)
Returns a new
YearMonthDurationAttribute that represents the
xf:yearMonthDuration value indicated by the string provided. |
static IPAddressAttribute |
IPAddressAttribute.getInstance(String value)
Returns a new
IPAddressAttribute that represents the name indicated by the
String provided. |
static HexBinaryAttribute |
HexBinaryAttribute.getInstance(String value)
Returns a new
HexBinaryAttribute that represents the xsi:hexBinary value
indicated by the string provided. |
static DateTimeAttribute |
DateTimeAttribute.getInstance(String value)
Returns a new
DateTimeAttribute that represents the xs:dateTime value indicated
by the string provided. |
static Base64BinaryAttribute |
Base64BinaryAttribute.getInstance(String value)
Returns a new
Base64BinaryAttribute that represents the xsi:base64Binary value
indicated by the string provided. |
static BooleanAttribute |
BooleanAttribute.getInstance(String value)
Returns a
BooleanAttribute that represents the xs:boolean value indicated by the
string provided. |
static TimeAttribute |
TimeAttribute.getInstance(String value)
Returns a new
TimeAttribute that represents the xs:time value indicated by the
string provided. |
static DayTimeDurationAttribute |
DayTimeDurationAttribute.getInstance(String value)
Returns a new
DayTimeDurationAttribute that represents the xf:dayTimeDuration
value indicated by the string provided. |
Constructor and Description |
---|
DNSNameAttribute(String hostname)
Creates the new
DNSNameAttribute with only the required hostname component. |
DNSNameAttribute(String hostname,
PortRange range)
Creates the new
DNSNameAttribute with the optional port range component. |
Modifier and Type | Method and Description |
---|---|
AttributeValue |
IPAddressAttributeProxy.getInstance(Node root) |
AttributeValue |
DNSNameAttributeProxy.getInstance(Node root) |
AttributeValue |
IPAddressAttributeProxy.getInstance(String value) |
AttributeValue |
DNSNameAttributeProxy.getInstance(String value) |
Modifier and Type | Method and Description |
---|---|
static AttributeDesignator |
AttributeDesignator.getInstance(Node root)
Creates a new
AttributeDesignator based on the DOM root of the XML data. |
static AttributeSelector |
AttributeSelector.getInstance(Node root,
PolicyMetaData metaData)
Creates a new
AttributeSelector based on the DOM root of the XML type. |
Modifier and Type | Method and Description |
---|---|
static CombinerParameter |
CombinerParameter.getInstance(Node root)
Returns a new instance of the
CombinerParameter class based on a DOM node. |
Modifier and Type | Method and Description |
---|---|
abstract Function |
FunctionFactory.createAbstractFunction(String identity,
Node root)
Tries to get an instance of the specified abstract function.
|
Function |
BaseFunctionFactory.createAbstractFunction(String identity,
Node root)
Tries to get an instance of the specified abstract function.
|
abstract Function |
FunctionFactory.createAbstractFunction(String identity,
Node root,
String xpathVersion)
Tries to get an instance of the specified abstract function.
|
Function |
BaseFunctionFactory.createAbstractFunction(String identity,
Node root,
String xpathVersion)
Tries to get an instance of the specified abstract function.
|
abstract Function |
FunctionFactory.createAbstractFunction(URI identity,
Node root)
Tries to get an instance of the specified abstract function.
|
Function |
BaseFunctionFactory.createAbstractFunction(URI identity,
Node root)
Tries to get an instance of the specified abstract function.
|
abstract Function |
FunctionFactory.createAbstractFunction(URI identity,
Node root,
String xpathVersion)
Tries to get an instance of the specified abstract function.
|
Function |
BaseFunctionFactory.createAbstractFunction(URI identity,
Node root,
String xpathVersion)
Tries to get an instance of the specified abstract function.
|
static Apply |
Apply.getConditionInstance(Node root,
String xpathVersion)
Deprecated.
As of 2.0 you should avoid using this method, since it does not provide a
Condition instance and does not handle XACML 2.0 policies correctly.
If you need a similar method you can use the new version that accepts a
VariableManager . This will return an Apply instance for
XACML 1.x policies. |
static Apply |
Apply.getConditionInstance(Node root,
String xpathVersion,
VariableManager manager)
Returns an instance of an
Apply based on the given DOM root node. |
static Function |
ExpressionHandler.getFunction(Node root,
PolicyMetaData metaData,
FunctionFactory factory)
Helper method that tries to get a function instance
|
static Apply |
Apply.getInstance(Node root,
PolicyMetaData metaData,
VariableManager manager)
Returns an instance of
Apply based on the given DOM root. |
static VariableDefinition |
VariableDefinition.getInstance(Node root,
PolicyMetaData metaData,
VariableManager manager)
Returns a new instance of the
VariableDefinition class based on a DOM node. |
static Condition |
Condition.getInstance(Node root,
PolicyMetaData metaData,
VariableManager manager)
Returns an instance of
Condition based on the given DOM root. |
static VariableReference |
VariableReference.getInstance(Node root,
PolicyMetaData metaData,
VariableManager manager)
Returns a new instance of the
VariableReference class based on a DOM node. |
static Apply |
Apply.getInstance(Node root,
String xpathVersion)
Deprecated.
As of 2.0 you should avoid using this method, since it does not handle XACML 2.0
policies correctly. If you need a similar method you can use the new version that
accepts a
VariableManager . This will return an Apply
instance for XACML 1.x policies. |
static Expression |
ExpressionHandler.parseExpression(Node root,
PolicyMetaData metaData,
VariableManager manager)
Parses an expression, recursively handling any sub-elements.
|
Modifier and Type | Method and Description |
---|---|
String |
MissingAttributeDetail.getEncoded()
Returns the encoded String from MissingAttributeDetail
|
EvaluationCtx |
EvaluationCtxFactory.getEvaluationCtx(AbstractRequestCtx requestCtx,
PDPConfig pdpConfig) |
static Status |
Status.getInstance(Node root)
Creates a new instance of
Status based on the given DOM root node. |
static ResponseCtx |
ResponseCtx.getInstance(Node root)
Creates a new instance of
ResponseCtx based on the given
DOM root node. |
static AttributeAssignment |
AttributeAssignment.getInstance(Node root)
TODO remove this method if possible
creates a
AttributeAssignment based on its DOM node. |
static StatusDetail |
StatusDetail.getInstance(Node root)
Creates an instance of a
StatusDetail object based on the given DOM root node. |
static ResponseCtx |
ResponseCtx.getInstance(Node root,
int version)
Creates a new instance of
ResponseCtx based on the given
DOM root node. |
static Attribute |
Attribute.getInstance(Node root,
int version)
Creates an instance of an
Attribute based on the root DOM node of the XML data. |
static MissingAttributeDetail |
MissingAttributeDetail.getInstance(Node root,
PolicyMetaData metaData)
Creates an instance of an
MissingAttributeDetail based on the root
DOM node of the XML data. |
AbstractRequestCtx |
RequestCtxFactory.getRequestCtx(InputStream input)
Returns instance of
AbstractRequestCtx based one the XACML version. |
AbstractRequestCtx |
RequestCtxFactory.getRequestCtx(Node root)
Returns instance of
AbstractRequestCtx based one the XACML version. |
AbstractRequestCtx |
RequestCtxFactory.getRequestCtx(String request)
Returns instance of
AbstractRequestCtx based one the XACML version. |
Element |
RequestCtxFactory.getXacmlRequest(String request)
Creates DOM representation of the XACML request
|
static Node |
InputParser.parseInput(InputStream input,
String rootTag)
Tries to Parse the given output as a Context document.
|
Constructor and Description |
---|
StatusDetail(String encoded)
Constructor that takes the text-encoded form of the XML to use as the status data.
|
Modifier and Type | Method and Description |
---|---|
static RequestCtx |
RequestCtx.getInstance(Node root)
Create a new
RequestCtx by parsing a node. |
static AbstractResult |
Result.getInstance(Node root)
Creates a new instance of a
Result based on the given
DOM root node. |
Constructor and Description |
---|
XACML2EvaluationCtx(RequestCtx requestCtx,
PDPConfig pdpConfig) |
Modifier and Type | Method and Description |
---|---|
static RequestCtx |
RequestCtx.getInstance(Node root)
Create a new
RequestCtx by parsing a node. |
static AbstractResult |
Result.getInstance(Node root)
Creates a new instance of a
Result based on the given
DOM root node. |
Modifier and Type | Method and Description |
---|---|
static Obligation |
Obligation.getInstance(Node root)
Creates an instance of
Obligation based on the DOM root node. |
static TargetSection |
TargetSection.getInstance(Node root,
int matchType,
PolicyMetaData metaData)
Creates a
Target by parsing a node. |
static TargetMatchGroup |
TargetMatchGroup.getInstance(Node root,
int matchType,
PolicyMetaData metaData)
Creates a
Target based on its DOM node. |
static Target |
Target.getInstance(Node root,
PolicyMetaData metaData)
Creates a
Target by parsing a node. |
static Target |
Target.getInstance(Node root,
String xpathVersion)
Deprecated.
As of 2.0 you should avoid using this method and should instead use the version
that takes a
PolicyMetaData instance. This method will only work for
XACML 1.x policies. |
Modifier and Type | Method and Description |
---|---|
static Advice |
Advice.getInstance(Node root)
Creates a
Advice based on its DOM node. |
static Attributes |
Attributes.getInstance(Node root) |
static MultiRequests |
MultiRequests.getInstance(Node root)
creates a
MultiRequests based on its DOM node. |
static Obligation |
Obligation.getInstance(Node root)
creates a
Obligation based on its DOM node. |
static AnyOfSelection |
AnyOfSelection.getInstance(Node root,
PolicyMetaData metaData)
creates a
AnyOfSelection based on its DOM node. |
static ObligationExpressions |
ObligationExpressions.getInstance(Node root,
PolicyMetaData metaData)
creates a
ObligationExpressions based on its DOM node. |
static AdviceExpression |
AdviceExpression.getInstance(Node root,
PolicyMetaData metaData)
Creates an instance of
AdviceExpression based on the DOM root node. |
static ObligationExpression |
ObligationExpression.getInstance(Node root,
PolicyMetaData metaData)
creates a
ObligationExpression based on its DOM node. |
static Target |
Target.getInstance(Node root,
PolicyMetaData metaData)
Creates a
Target by parsing a node. |
static AllOfSelection |
AllOfSelection.getInstance(Node root,
PolicyMetaData metaData)
creates a new
AllOfSelection by parsing DOM node. |
static AttributeAssignmentExpression |
AttributeAssignmentExpression.getInstance(Node root,
PolicyMetaData metaData)
creates a
AttributeAssignmentExpression based on its DOM node. |
Copyright © 2018 WSO2. All rights reserved.