public class XACML2EvaluationCtx extends BasicEvaluationCtx
currentDate, currentDateTime, currentTime, pdpConfig, requestRoot, useCachedEnvValues
Constructor and Description |
---|
XACML2EvaluationCtx() |
XACML2EvaluationCtx(RequestCtx requestCtx,
PDPConfig pdpConfig) |
Modifier and Type | Method and Description |
---|---|
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.
|
callHelper, getAttribute, getCurrentDate, getCurrentDateTime, getCurrentTime, getRequestRoot, isSearching
public XACML2EvaluationCtx()
public XACML2EvaluationCtx(RequestCtx requestCtx, PDPConfig pdpConfig) throws ParsingException
ParsingException
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 inpublic 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 inpublic 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 nullpublic 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 nullpublic 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 nullpublic PDPConfig getPdpConfig()
public AbstractRequestCtx getRequestCtx()
EvaluationCtx
getRequestCtx
in interface EvaluationCtx
getRequestCtx
in class BasicEvaluationCtx
AbstractRequestCtx
public MultipleCtxResult getMultipleEvaluationCtx()
EvaluationCtx
MultipleCtxResult
public int getResourceScope()
Copyright © 2018 WSO2. All rights reserved.