com.paypal.api.openidconnect.UserinfoParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.commerce.payment.method.paypal
Show all versions of com.liferay.commerce.payment.method.paypal
Liferay Commerce Payment Method PayPal
The newest version!
package com.paypal.api.openidconnect;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Map;
/**
* Class UserinfoParameters
*
*/
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