All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.paypal.api.openidconnect.UserinfoParameters Maven / Gradle / Ivy

There is a newer version: 1.14.0
Show 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