| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. |
| 5 * |
| 2 * The "Hello world!" of the Chrome Web Store Licensing API, in Java. This | 6 * The "Hello world!" of the Chrome Web Store Licensing API, in Java. This |
| 3 * program logs the user in with OpenID, fetches their license state with OAuth, | 7 * program logs the user in with OpenID, fetches their license state with OAuth, |
| 4 * and prints one of these greetings as appropriate: | 8 * and prints one of these greetings as appropriate: |
| 5 * | 9 * |
| 6 * 1. Hello *no* license! | 10 * 1. Hello *no* license! |
| 7 * 2. Hello *free trial* license! | 11 * 2. Hello *free trial* license! |
| 8 * 3. Hello *full* license! | 12 * 3. Hello *full* license! |
| 9 * | 13 * |
| 10 * Copyright 2010 the Chromium Authors | |
| 11 * | |
| 12 * Use of this source code is governed by a BSD-style license that can be found | |
| 13 * in the "LICENSE" file. | |
| 14 * | |
| 15 * Brian Kennish <bkennish@chromium.org> | 14 * Brian Kennish <bkennish@chromium.org> |
| 16 */ | 15 */ |
| 17 package com.example; | 16 package com.example; |
| 18 | 17 |
| 19 import java.io.*; | 18 import java.io.*; |
| 20 import java.net.*; | 19 import java.net.*; |
| 21 import java.util.HashSet; | 20 import java.util.HashSet; |
| 22 import javax.servlet.http.*; | 21 import javax.servlet.http.*; |
| 23 import com.google.appengine.api.users.*; | 22 import com.google.appengine.api.users.*; |
| 24 import com.google.appengine.repackaged.org.json.JSONObject; | 23 import com.google.appengine.repackaged.org.json.JSONObject; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 userService.createLoginURL( | 108 userService.createLoginURL( |
| 110 url, | 109 url, |
| 111 null, | 110 null, |
| 112 "https://www.google.com/accounts/o8/id", | 111 "https://www.google.com/accounts/o8/id", |
| 113 new HashSet<String>() | 112 new HashSet<String>() |
| 114 ) | 113 ) |
| 115 ); | 114 ); |
| 116 } | 115 } |
| 117 } | 116 } |
| 118 } | 117 } |
| OLD | NEW |