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, isSearchingpublic XACML3EvaluationCtx(RequestCtx requestCtx, PDPConfig pdpConfig)
XACML3EvaluationCtxrequestCtx - XACML3 RequestCtxpdpConfig - PDP configurationspublic EvaluationResult getAttribute(URI type, URI id, String issuer, URI category)
EvaluationCtxtype - 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)
BasicEvaluationCtxgetAttribute in interface EvaluationCtxgetAttribute in class BasicEvaluationCtxpath - 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()
EvaluationCtxpublic MultipleCtxResult getMultipleEvaluationCtx()
EvaluationCtxMultipleCtxResultpublic void setResourceId(AttributeValue resourceId, Set<Attributes> attributesSet)
resourceId - resourceId the new resource-id valueattributesSet - a Set of Attributespublic boolean isMultipleAttributes()
public AbstractRequestCtx getRequestCtx()
EvaluationCtxgetRequestCtx in interface EvaluationCtxgetRequestCtx in class BasicEvaluationCtxAbstractRequestCtxpublic 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 © 2021 WSO2. All rights reserved.