|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EvaluationCtx
Manages the context of a single policy evaluation. Typically, an instance is instantiated
whenever the PDP gets a request and needs to perform an evaluation as a result.
There are two implementations of XACML3EvaluationCtx
class for XACML3 and
XACML3EvaluationCtx
for XACML2
Method Summary | |
---|---|
EvaluationResult |
getAttribute(String path,
URI type,
URI category,
URI contextSelector,
String xpathVersion)
Returns the attribute value(s) retrieved using the given XPath expression. |
EvaluationResult |
getAttribute(URI type,
URI id,
String issuer,
URI category)
Returns available subject attribute value(s). |
DateAttribute |
getCurrentDate()
Returns the value for the current date as known by the PDP (if this value was also supplied in the Request, this will generally be a different value). |
DateTimeAttribute |
getCurrentDateTime()
Returns the value for the current dateTime as known by the PDP (if this value was also supplied in the Request, this will generally be a different value). |
TimeAttribute |
getCurrentTime()
Returns the value for the current time as known by the PDP (if this value was also supplied in the Request, this will generally be a different value). |
MultipleCtxResult |
getMultipleEvaluationCtx()
Returns multiple context results. |
AbstractRequestCtx |
getRequestCtx()
Returns XACML request |
Node |
getRequestRoot()
Returns the DOM root of the original RequestType XML document, if this context is backed by an XACML Request. |
int |
getXacmlVersion()
Returns XACML version of the context |
boolean |
isSearching()
TODO what is this ? |
Method Detail |
---|
Node getRequestRoot()
UnsupportedOperationException
- if the context is not backed by an XML representationboolean isSearching()
TimeAttribute getCurrentTime()
DateAttribute getCurrentDate()
DateTimeAttribute getCurrentDateTime()
EvaluationResult getAttribute(URI type, URI id, String issuer, URI category)
type
- the type of the attribute value(s) to findid
- the id of the attribute value(s) to findissuer
- the issuer of the attribute value(s) to find or nullcategory
- the category the attribute value(s) must be in
EvaluationResult getAttribute(String path, URI type, URI category, URI contextSelector, String xpathVersion)
path
- the XPath expression to searchtype
- the type of the attribute value(s) to findcategory
- the category the attribute value(s) must be incontextSelector
- the selector to find the context to apply XPath expression
if this is null, applied for default contentxpathVersion
- the version of XPath to use
int getXacmlVersion()
AbstractRequestCtx getRequestCtx()
AbstractRequestCtx
MultipleCtxResult getMultipleEvaluationCtx()
MultipleCtxResult
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |