|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.balana.ctx.BasicEvaluationCtx
org.wso2.balana.ctx.xacml3.XACML3EvaluationCtx
public class XACML3EvaluationCtx
This is implementation of XACML3 evaluation context
Field Summary |
---|
Fields inherited from class org.wso2.balana.ctx.BasicEvaluationCtx |
---|
currentDate, currentDateTime, currentTime, pdpConfig, requestRoot, useCachedEnvValues |
Constructor Summary | |
---|---|
XACML3EvaluationCtx(RequestCtx requestCtx,
PDPConfig pdpConfig)
Creates a new XACML3EvaluationCtx |
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). |
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. |
Methods inherited from class org.wso2.balana.ctx.BasicEvaluationCtx |
---|
callHelper, getCurrentDate, getCurrentDateTime, getCurrentTime, getRequestRoot, isSearching |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XACML3EvaluationCtx(RequestCtx requestCtx, PDPConfig pdpConfig)
XACML3EvaluationCtx
requestCtx
- XACML3 RequestCtxpdpConfig
- PDP configurationsMethod Detail |
---|
public 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 in
public 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 use
public 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |