com.paypal.sdk.openidconnect.UserinfoParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of paypal-core Show documentation
Show all versions of paypal-core Show documentation
PayPal Java SDK Core library base and common to PayPal SDKs. The paypal-core library is a dependency for all PayPal related Java SDKs
package com.paypal.sdk.openidconnect;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Map;
public class UserinfoParameters {
/**
* Schema
*/
private static final String SCHEMA = "schema";
/**
* Access Token
*/
private static final String ACCESSTOKEN = "access_token";
// Map backing QueryParameters intended to processed
// by SDK library 'RESTUtil'
private Map containerMap;
public UserinfoParameters() {
containerMap = new HashMap();
containerMap.put(SCHEMA, "openid");
}
/**
* @return the containerMap
*/
public Map getContainerMap() {
return containerMap;
}
/**
* Set the accessToken
*
* @param accessToken
*/
public void setAccessToken(String accessToken) {
try {
containerMap.put(ACCESSTOKEN, URLEncoder.encode(accessToken, "UTF-8"));
} catch (UnsupportedEncodingException e) {
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy