|
||||||||||
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.xacml2.XACML2EvaluationCtx
public class XACML2EvaluationCtx
Field Summary |
---|
Fields inherited from class org.wso2.balana.ctx.BasicEvaluationCtx |
---|
pdpConfig |
Constructor Summary | |
---|---|
XACML2EvaluationCtx()
|
|
XACML2EvaluationCtx(RequestCtx requestCtx,
PDPConfig pdpConfig)
|
Method Summary | |
---|---|
EvaluationResult |
getActionAttribute(URI type,
URI id,
URI category,
String issuer)
Returns attribute value(s) from the action section of the request. |
EvaluationResult |
getAttribute(URI type,
URI id,
String issuer,
URI category)
Returns available subject attribute value(s). |
EvaluationResult |
getEnvironmentAttribute(URI type,
URI id,
URI category,
String issuer)
Returns attribute value(s) from the environment section of the request. |
MultipleCtxResult |
getMultipleEvaluationCtx()
Returns multiple context results. |
PDPConfig |
getPdpConfig()
|
AbstractRequestCtx |
getRequestCtx()
Returns XACML request |
EvaluationResult |
getResourceAttribute(URI type,
URI id,
URI category,
String issuer)
Returns attribute value(s) from the resource section of the request. |
AttributeValue |
getResourceId()
Returns the resource named in the request as resource-id. |
int |
getResourceScope()
|
int |
getScope()
Returns the resource scope of the request, which will be one of the three fields denoting Immediate, Children, or Descendants. |
EvaluationResult |
getSubjectAttribute(URI type,
URI id,
URI category,
String issuer)
Returns attribute value(s) from the subject section of the request. |
int |
getXacmlVersion()
Returns XACML version of the context |
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, getAttribute, 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 XACML2EvaluationCtx()
public XACML2EvaluationCtx(RequestCtx requestCtx, PDPConfig pdpConfig) throws ParsingException
ParsingException
Method Detail |
---|
public int getScope()
public AttributeValue getResourceId()
public void setResourceId(AttributeValue resourceId, Set<Attributes> attributesSet)
resourceId
- the new resource-id valuepublic 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 int getXacmlVersion()
EvaluationCtx
public EvaluationResult getSubjectAttribute(URI type, URI id, URI category, String issuer)
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 getResourceAttribute(URI type, URI id, URI category, String issuer)
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 null
public EvaluationResult getActionAttribute(URI type, URI id, URI category, String issuer)
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 null
public EvaluationResult getEnvironmentAttribute(URI type, URI id, URI category, String issuer)
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 null
public PDPConfig getPdpConfig()
public AbstractRequestCtx getRequestCtx()
EvaluationCtx
getRequestCtx
in interface EvaluationCtx
getRequestCtx
in class BasicEvaluationCtx
AbstractRequestCtx
public MultipleCtxResult getMultipleEvaluationCtx()
EvaluationCtx
MultipleCtxResult
public int getResourceScope()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |