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

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

There is a newer version: 1.14.0
Show newest version
package com.paypal.api.openidconnect;

import com.paypal.base.ClientCredentials;

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

public class CreateFromRefreshTokenParameters extends ClientCredentials {

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

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

	public CreateFromRefreshTokenParameters() {
		containerMap = new HashMap();
		containerMap.put(GRANTTYPE, "refresh_token");
	}

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy