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

com.paypal.sdk.openidconnect.CreateFromAuthorizationCodeParameters Maven / Gradle / Ivy

Go to download

PayPal Java SDK Core library base and common to PayPal SDKs. The paypal-core library is a dependency for all PayPal related Java SDKs

There is a newer version: 1.7.2
Show newest version
package com.paypal.sdk.openidconnect;

import java.util.HashMap;
import java.util.Map;

import com.paypal.core.ClientCredentials;

public class CreateFromAuthorizationCodeParameters extends ClientCredentials {

	/**
	 * Code
	 */
	private static final String CODE = "code";

	/**
	 * Redirect URI
	 */
	private static final String REDIRECTURI = "redirect_uri";

	/**
	 * Grant Type
	 */
	private static final String GRANTTYPE = "grant_type";

	// Map backing QueryParameters intended to processed
	// by SDK library 'RESTUtil'
	private Map containerMap;

	public CreateFromAuthorizationCodeParameters() {
		containerMap = new HashMap();
		containerMap.put(GRANTTYPE, "authorization_code");
	}

	/**
	 * @return the containerMap
	 */
	public Map getContainerMap() {
		return containerMap;
	}

	/**
	 * Set the code
	 * 
	 * @param code
	 */
	public void setCode(String code) {
		containerMap.put(CODE, code);
	}

	/**
	 * Set the redirect URI
	 * 
	 * @param redirectURI
	 */
	public void setRedirectURI(String redirectURI) {
		containerMap.put(REDIRECTURI, redirectURI);
	}

	/**
	 * Set the Grant Type
	 * 
	 * @param grantType
	 */
	public void setGrantType(String grantType) {
		containerMap.put(GRANTTYPE, grantType);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy