com.paypal.sdk.openidconnect.CreateFromRefreshTokenParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of paypal-core Show documentation
Show all versions of paypal-core Show documentation
PayPal Java SDK Core library base and common to PayPal SDKs. The paypal-core library is a dependency for all PayPal related Java SDKs
package com.paypal.sdk.openidconnect;
import java.util.HashMap;
import java.util.Map;
import com.paypal.core.ClientCredentials;
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 redirectURI
*/
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 - 2025 Weber Informatics LLC | Privacy Policy