org.wso2.carbon.identity.entitlement.proxy
Class PEPProxy

java.lang.Object
  extended by org.wso2.carbon.identity.entitlement.proxy.PEPProxy

public class PEPProxy
extends Object


Constructor Summary
PEPProxy(PEPProxyConfig config)
          Creating the PDP Proxy instance and initializing it
 
Method Summary
 void clear()
           
 List<String> getActionableChildResourcesForAlias(String alias, String parentResource, String action)
           
 List<String> getActionableChildResourcesForAlias(String alias, String parentResource, String action, String appId)
           
 List<String> getActionableResourcesForAlias(String alias)
           
 List<String> getActionableResourcesForAlias(String alias, String appId)
           
 List<String> getActionsForResource(String alias, String resources)
           
 List<String> getActionsForResource(String alias, String resources, String appId)
           
 String getDecision(Attribute[] attributes)
          This method is used to get the Entitlement decision for the set of Attributes using The Default AppID
 String getDecision(Attribute[] attributes, String appId)
          This method is used to get the Entitlement decision for the set of Attributes using The Provided AppID
 String getDecision(String subject, String resource, String action, String environment)
          This method is used to get the Entitlement decision for the provided subject,resource,action and environment using the default appID of the PDP defaultProxy
 String getDecision(String subject, String resource, String action, String environment, String appId)
          This method is used to get the Entitlement decision for the provided subject,resource,action and environment using the provided appID of the PDP defaultProxy
 List<String> getResourcesForAlias(String alias)
           
 List<String> getResourcesForAlias(String alias, String appId)
           
 boolean subjectCanActOnResource(String subjectType, String alias, String actionId, String resourceId, Attribute[] attributes, String domainId)
           
 boolean subjectCanActOnResource(String subjectType, String alias, String actionId, String resourceId, Attribute[] attributes, String domainId, String appId)
           
 boolean subjectCanActOnResource(String subjectType, String alias, String actionId, String resourceId, String domainId)
           
 boolean subjectCanActOnResource(String subjectType, String alias, String actionId, String resourceId, String domainId, String appId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PEPProxy

public PEPProxy(PEPProxyConfig config)
         throws EntitlementProxyException
Creating the PDP Proxy instance and initializing it

Throws:
Exception
EntitlementProxyException
Method Detail

getDecision

public String getDecision(Attribute[] attributes)
                   throws Exception
This method is used to get the Entitlement decision for the set of Attributes using The Default AppID

Parameters:
attributes - XACML 3.0 Attribute Set
Returns:
the Entitlement Decision as a String
Throws:
Exception

getDecision

public String getDecision(Attribute[] attributes,
                          String appId)
                   throws Exception
This method is used to get the Entitlement decision for the set of Attributes using The Provided AppID

Parameters:
attributes - XACML 3.0 Attribute Set
Returns:
the Entitlement Decision as a String
Throws:
Exception

getDecision

public String getDecision(String subject,
                          String resource,
                          String action,
                          String environment)
                   throws Exception
This method is used to get the Entitlement decision for the provided subject,resource,action and environment using the default appID of the PDP defaultProxy

Parameters:
subject - XACML 2.0 subject
resource - XACML 2.0 resource
action - XACML 2.0 action
environment - XACML 2.0 environments
Returns:
the Entitlement Decision as a String
Throws:
Exception

getDecision

public String getDecision(String subject,
                          String resource,
                          String action,
                          String environment,
                          String appId)
                   throws Exception
This method is used to get the Entitlement decision for the provided subject,resource,action and environment using the provided appID of the PDP defaultProxy

Parameters:
subject - XACML 2.0 subject
resource - XACML 2.0 resource
action - XACML 2.0 action
environment - XACML 2.0 environments
appId - specific appID in the PDP Proxy, there can be many PDPs configured for appID. Each App can have distinct PDPs
Returns:
the Entitlement Decision as a String
Throws:
Exception

subjectCanActOnResource

public boolean subjectCanActOnResource(String subjectType,
                                       String alias,
                                       String actionId,
                                       String resourceId,
                                       String domainId)
                                throws Exception
Throws:
Exception

subjectCanActOnResource

public boolean subjectCanActOnResource(String subjectType,
                                       String alias,
                                       String actionId,
                                       String resourceId,
                                       String domainId,
                                       String appId)
                                throws Exception
Throws:
Exception

subjectCanActOnResource

public boolean subjectCanActOnResource(String subjectType,
                                       String alias,
                                       String actionId,
                                       String resourceId,
                                       Attribute[] attributes,
                                       String domainId)
                                throws Exception
Throws:
Exception

subjectCanActOnResource

public boolean subjectCanActOnResource(String subjectType,
                                       String alias,
                                       String actionId,
                                       String resourceId,
                                       Attribute[] attributes,
                                       String domainId,
                                       String appId)
                                throws Exception
Throws:
Exception

getActionableChildResourcesForAlias

public List<String> getActionableChildResourcesForAlias(String alias,
                                                        String parentResource,
                                                        String action)
                                                 throws Exception
Throws:
Exception

getActionableChildResourcesForAlias

public List<String> getActionableChildResourcesForAlias(String alias,
                                                        String parentResource,
                                                        String action,
                                                        String appId)
                                                 throws Exception
Throws:
Exception

getResourcesForAlias

public List<String> getResourcesForAlias(String alias)
                                  throws Exception
Throws:
Exception

getResourcesForAlias

public List<String> getResourcesForAlias(String alias,
                                         String appId)
                                  throws Exception
Throws:
Exception

getActionableResourcesForAlias

public List<String> getActionableResourcesForAlias(String alias)
                                            throws Exception
Throws:
Exception

getActionableResourcesForAlias

public List<String> getActionableResourcesForAlias(String alias,
                                                   String appId)
                                            throws Exception
Throws:
Exception

getActionsForResource

public List<String> getActionsForResource(String alias,
                                          String resources)
                                   throws Exception
Throws:
Exception

getActionsForResource

public List<String> getActionsForResource(String alias,
                                          String resources,
                                          String appId)
                                   throws Exception
Throws:
Exception

clear

public void clear()


Copyright © 2015 WSO2. All rights reserved.