com.paypal.api.openidconnect.CreateFromAuthorizationCodeParameters 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 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 - 2025 Weber Informatics LLC | Privacy Policy