Package com.bazaarvoice.auth.hmac.sample

Examples of com.bazaarvoice.auth.hmac.sample.Pizza


    @GET
    public Pizza get(@HmacAuth String principal) {
        log.info("Pizza requested by: " + principal);

        Pizza pizza = new Pizza();
        pizza.setSize("medium");
        pizza.setToppings(Arrays.asList("cheese", "olives"));
        return pizza;
    }
View Full Code Here


    private static final String SECRET_KEY = "fred-secret-key";

    public static void main(String[] args) throws Exception {
        // Get a pizza
        PizzaClient pizzaClient = new PizzaClient(ENDPOINT, API_KEY, SECRET_KEY);
        Pizza pizza = pizzaClient.getPizza();

        // Print out the results
        System.out.printf("Pizza is size '%s' with toppings: %s%n",
                pizza.getSize(),
                Joiner.on(", ").join(pizza.getToppings()));
    }
View Full Code Here

TOP

Related Classes of com.bazaarvoice.auth.hmac.sample.Pizza

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.