public interface EvaluationCtx
XACML3EvaluationCtx
class for XACML3 and
XACML3EvaluationCtx
for XACML2Modifier and Type | Method and Description |
---|---|
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 ?
|
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 inEvaluationResult 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 useint getXacmlVersion()
AbstractRequestCtx getRequestCtx()
AbstractRequestCtx
MultipleCtxResult getMultipleEvaluationCtx()
MultipleCtxResult
Copyright © 2018 WSO2. All rights reserved.