com.paypal.api.openidconnect.CreateFromRefreshTokenParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest-api-sdk Show documentation
Show all versions of rest-api-sdk Show documentation
PayPal SDK for integrating with the REST APIs
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