public class RpcHelper extends Object
| Constructor and Description |
|---|
RpcHelper(HttpSender httpSender,
String gitkitApiUrl,
String serviceAccountEmail,
InputStream keyStream) |
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONObject |
createAuthUri(String identifier,
String continueUri,
String context) |
org.json.JSONObject |
deleteAccount(String localId) |
org.json.JSONObject |
downloadAccount(String nextPageToken,
Integer maxResults) |
org.json.JSONObject |
getAccountInfo(String idToken)
Uses idToken to retrieve the user account information from GITkit service.
|
org.json.JSONObject |
getAccountInfoByEmail(String email)
Using 2-Leg Oauth (i.e.
|
org.json.JSONObject |
getAccountInfoById(String localId)
Using 2-Leg Oauth (i.e.
|
org.json.JSONObject |
getOobCode(org.json.JSONObject resetReq) |
org.json.JSONObject |
updateAccount(GitkitUser account) |
org.json.JSONObject |
uploadAccount(String hashAlgorithm,
byte[] hashKey,
List<GitkitUser> accounts) |
org.json.JSONObject |
verifyAssertion(String requestUri,
String postBody) |
public RpcHelper(HttpSender httpSender, String gitkitApiUrl, String serviceAccountEmail, InputStream keyStream)
public org.json.JSONObject createAuthUri(String identifier, String continueUri, String context) throws GitkitServerException, GitkitClientException
public org.json.JSONObject verifyAssertion(String requestUri, String postBody) throws GitkitServerException, GitkitClientException
public org.json.JSONObject getOobCode(org.json.JSONObject resetReq)
throws GitkitClientException,
GitkitServerException
public org.json.JSONObject getAccountInfo(String idToken) throws GitkitClientException, GitkitServerException
idToken - GitkitClientExceptionGitkitServerExceptionpublic org.json.JSONObject getAccountInfoById(String localId) throws GitkitClientException, GitkitServerException
public org.json.JSONObject getAccountInfoByEmail(String email) throws GitkitClientException, GitkitServerException
public org.json.JSONObject updateAccount(GitkitUser account) throws GitkitServerException, GitkitClientException
public org.json.JSONObject downloadAccount(String nextPageToken, Integer maxResults) throws GitkitClientException, GitkitServerException
public org.json.JSONObject uploadAccount(String hashAlgorithm, byte[] hashKey, List<GitkitUser> accounts) throws GitkitClientException, GitkitServerException
public org.json.JSONObject deleteAccount(String localId) throws GitkitClientException, GitkitServerException
Copyright © 2015. All rights reserved.