public class XACML3EvaluationCtx extends BasicEvaluationCtx
currentDate, currentDateTime, currentTime, pdpConfig, requestRoot, useCachedEnvValues
Constructor and Description |
---|
XACML3EvaluationCtx(RequestCtx requestCtx,
PDPConfig pdpConfig)
Creates a new
XACML3EvaluationCtx |
Modifier 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).
|
List<Attributes> |
getAttributes(String category) |
Set<Attributes> |
getAttributesSet() |
Map<String,List<Attributes>> |
getMapAttributes() |
Set<Attributes> |
getMultipleContentSelectors() |
MultipleCtxResult |
getMultipleEvaluationCtx()
Returns multiple context results.
|
Set<PolicyReference> |
getPolicyReferences() |
AbstractRequestCtx |
getRequestCtx()
Returns XACML request
|
Attribute |
getResourceId() |
int |
getResourceScope() |
Attribute |
getResourceScopeAttribute() |
int |
getXacmlVersion()
Returns XACML version of the context
|
boolean |
isMultipleAttributes() |
void |
setPolicyReferences(Set<PolicyReference> policyReferences) |
void |
setResourceId(AttributeValue resourceId,
Set<Attributes> attributesSet)
Changes the value of the resource-id attribute in this context.
|
callHelper, getCurrentDate, getCurrentDateTime, getCurrentTime, getRequestRoot, isSearching
public XACML3EvaluationCtx(RequestCtx requestCtx, PDPConfig pdpConfig)
XACML3EvaluationCtx
requestCtx
- XACML3 RequestCtxpdpConfig
- PDP configurationspublic EvaluationResult getAttribute(URI type, URI id, String issuer, URI category)
EvaluationCtx
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 inpublic EvaluationResult getAttribute(String path, URI type, URI category, URI contextSelector, String xpathVersion)
BasicEvaluationCtx
getAttribute
in interface EvaluationCtx
getAttribute
in class BasicEvaluationCtx
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 usepublic int getXacmlVersion()
EvaluationCtx
public MultipleCtxResult getMultipleEvaluationCtx()
EvaluationCtx
MultipleCtxResult
public void setResourceId(AttributeValue resourceId, Set<Attributes> attributesSet)
resourceId
- resourceId the new resource-id valueattributesSet
- a Set
of Attributes
public boolean isMultipleAttributes()
public AbstractRequestCtx getRequestCtx()
EvaluationCtx
getRequestCtx
in interface EvaluationCtx
getRequestCtx
in class BasicEvaluationCtx
AbstractRequestCtx
public Set<PolicyReference> getPolicyReferences()
public void setPolicyReferences(Set<PolicyReference> policyReferences)
policyReferences
- public List<Attributes> getAttributes(String category)
category
- public Set<Attributes> getMultipleContentSelectors()
public Map<String,List<Attributes>> getMapAttributes()
public Set<Attributes> getAttributesSet()
public Attribute getResourceId()
public int getResourceScope()
public Attribute getResourceScopeAttribute()
Copyright © 2024 WSO2. All rights reserved.