public class EntitlementEngine extends Object
Modifier and Type | Method and Description |
---|---|
void |
clearDecisionCache() |
String |
evaluate(String xacmlRequest)
Evaluates the given XACML request and returns the Response that the EntitlementEngine will
hand back to the PEP.
|
String |
evaluate(String subject,
String resource,
String action,
String[] environment)
Evaluates the given XACML request and returns the Response that the EntitlementEngine will
hand back to the PEP.
|
org.wso2.balana.ctx.ResponseCtx |
evaluateByContext(org.wso2.balana.ctx.AbstractRequestCtx requestCtx)
Evaluates XACML request directly.
|
CarbonAttributeFinder |
getCarbonAttributeFinder()
This method returns the carbon based attribute finder for the current tenant
|
org.wso2.balana.finder.PolicyFinder |
getCarbonPolicyFinder()
This method returns the carbon based policy finder for the current tenant
|
CarbonResourceFinder |
getCarbonResourceFinder()
This method returns the carbon based resource finder for the current tenant
|
static EntitlementEngine |
getInstance()
Get a EntitlementEngine instance for that tenant.
|
org.wso2.balana.finder.PolicyFinder |
getPapPolicyFinder()
This method is returns the registry based policy finder for current tenant
|
PolicyCache |
getPolicyCache() |
PolicySearch |
getPolicySearch()
Returns instance of policy search
|
void |
setPolicyCache(PolicyCache policyCache) |
String |
test(String xacmlRequest)
Test request for PDP
|
public PolicyCache getPolicyCache()
public void setPolicyCache(PolicyCache policyCache)
public void clearDecisionCache()
public static EntitlementEngine getInstance()
public String test(String xacmlRequest)
xacmlRequest
- XACML request as Stringpublic String evaluate(String xacmlRequest) throws EntitlementException, org.wso2.balana.ParsingException
xacmlRequest
- XACML request as Stringorg.wso2.balana.ParsingException
- throwsEntitlementException
- throwspublic org.wso2.balana.ctx.ResponseCtx evaluateByContext(org.wso2.balana.ctx.AbstractRequestCtx requestCtx)
requestCtx
- Balana Object model for requestpublic String evaluate(String subject, String resource, String action, String[] environment) throws Exception
subject
- subjectresource
- resourceaction
- actionenvironment
- environmentException
- throws, if failspublic org.wso2.balana.finder.PolicyFinder getPapPolicyFinder()
public CarbonAttributeFinder getCarbonAttributeFinder()
public CarbonResourceFinder getCarbonResourceFinder()
public org.wso2.balana.finder.PolicyFinder getCarbonPolicyFinder()
public PolicySearch getPolicySearch()
PolicySearch
Copyright © 2016 WSO2. All rights reserved.