MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / serializeAuth

Method serializeAuth

CodenameOne/src/com/codename1/io/Oauth2.java:242–257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

240 }
241
242 private void serializeAuth() {
243 Map params = new HashMap();
244 params.put("token", token);
245 params.put("refreshToken", refreshToken);
246 params.put("identityToken", identityToken);
247 params.put("clientId", clientId);
248 params.put("redirectURI", redirectURI);
249 params.put("scope", scope);
250 params.put("clientSecret", clientSecret);
251 params.put("oauth2URL", oauth2URL);
252 params.put("tokenRequestURL", tokenRequestURL);
253 params.put("additionalParams", additionalParams);
254 params.put("backToParent", backToParent);
255 Storage s = Storage.getInstance();
256 s.writeObject("__oauth2Params", params);
257 }
258
259 /// This method preforms the actual authentication, this method is a blocking
260 /// method that will display the user the html authentication pages.

Callers 1

showAuthenticationMethod · 0.95

Calls 3

putMethod · 0.95
getInstanceMethod · 0.95
writeObjectMethod · 0.95

Tested by

no test coverage detected