org.wso2.carbon.identity.entitlement.proxy.wsxacml
Class WSXACMLEntitlementServiceClient

java.lang.Object
  extended by org.wso2.carbon.identity.entitlement.proxy.AbstractEntitlementServiceClient
      extended by org.wso2.carbon.identity.entitlement.proxy.wsxacml.WSXACMLEntitlementServiceClient

public class WSXACMLEntitlementServiceClient
extends AbstractEntitlementServiceClient


Constructor Summary
WSXACMLEntitlementServiceClient(String serverUrl, String userName, String password)
           
 
Method Summary
static void doBootstrap()
          Bootstrap the OpenSAML2 library only if it is not bootstrapped.
 List<String> getActionableChildResourcesForAlias(String alias, String parentResource, String action, String appId)
           
 List<String> getActionableResourcesForAlias(String alias, String appId)
           
 List<String> getActionsForResource(String alias, String resources, String appId)
           
 String getDecision(Attribute[] attributes, String appId)
          Get decision in a secured manner using the SAML implementation of XACML using X.509 credentials
 List<String> getResourcesForAlias(String alias, String appId)
           
 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, String appId)
           
 
Methods inherited from class org.wso2.carbon.identity.entitlement.proxy.AbstractEntitlementServiceClient
getStatus, getStatusOMElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSXACMLEntitlementServiceClient

public WSXACMLEntitlementServiceClient(String serverUrl,
                                       String userName,
                                       String password)
Method Detail

getDecision

public String getDecision(Attribute[] attributes,
                          String appId)
                   throws Exception
Get decision in a secured manner using the SAML implementation of XACML using X.509 credentials

Specified by:
getDecision in class AbstractEntitlementServiceClient
Returns:
decision extracted from the SAMLResponse sent from PDP
Throws:
Exception

subjectCanActOnResource

public boolean subjectCanActOnResource(String subjectType,
                                       String alias,
                                       String actionId,
                                       String resourceId,
                                       String domainId,
                                       String appId)
                                throws Exception
Specified by:
subjectCanActOnResource in class AbstractEntitlementServiceClient
Throws:
Exception

subjectCanActOnResource

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

getResourcesForAlias

public List<String> getResourcesForAlias(String alias,
                                         String appId)
                                  throws Exception
Specified by:
getResourcesForAlias in class AbstractEntitlementServiceClient
Throws:
Exception

getActionableResourcesForAlias

public List<String> getActionableResourcesForAlias(String alias,
                                                   String appId)
                                            throws Exception
Specified by:
getActionableResourcesForAlias in class AbstractEntitlementServiceClient
Throws:
Exception

getActionableChildResourcesForAlias

public List<String> getActionableChildResourcesForAlias(String alias,
                                                        String parentResource,
                                                        String action,
                                                        String appId)
                                                 throws Exception
Specified by:
getActionableChildResourcesForAlias in class AbstractEntitlementServiceClient
Throws:
Exception

getActionsForResource

public List<String> getActionsForResource(String alias,
                                          String resources,
                                          String appId)
                                   throws Exception
Specified by:
getActionsForResource in class AbstractEntitlementServiceClient
Throws:
Exception

doBootstrap

public static void doBootstrap()
Bootstrap the OpenSAML2 library only if it is not bootstrapped.



Copyright © 2015 WSO2. All rights reserved.