org.wso2.balana.samples.kmarket.trading
Class KMarketAccessControl

java.lang.Object
  extended by org.wso2.balana.samples.kmarket.trading.KMarketAccessControl

public class KMarketAccessControl
extends Object

On-line trading sample


Constructor Summary
KMarketAccessControl()
           
 
Method Summary
static int calculateTotal(String productName, int amount)
           
static String createXACMLRequest(String userName, String resource, int amount, int totalAmount)
           
static Element getXacmlResponse(String response)
          Creates DOM representation of the XACML request
static void main(String[] args)
           
static void printDescription()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KMarketAccessControl

public KMarketAccessControl()
Method Detail

main

public static void main(String[] args)

calculateTotal

public static int calculateTotal(String productName,
                                 int amount)

getXacmlResponse

public static Element getXacmlResponse(String response)
Creates DOM representation of the XACML request

Parameters:
response - XACML request as a String object
Returns:
XACML request as a DOM element

printDescription

public static void printDescription()

createXACMLRequest

public static String createXACMLRequest(String userName,
                                        String resource,
                                        int amount,
                                        int totalAmount)


Copyright © 2015 WSO2. All rights reserved.