public class Tokeninfo extends PayPalResource
| Constructor and Description |
|---|
Tokeninfo()
Default Constructor
|
Tokeninfo(String accessToken,
String tokenType,
Integer expiresIn)
Parameterized Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static Tokeninfo |
createFromAuthorizationCode(APIContext apiContext,
CreateFromAuthorizationCodeParameters createFromAuthorizationCodeParameters)
Creates an Access Token from an Authorization Code.
|
static Tokeninfo |
createFromAuthorizationCode(CreateFromAuthorizationCodeParameters createFromAuthorizationCodeParameters)
Creates an Access Token from an Authorization Code.
|
static Tokeninfo |
createFromAuthorizationCodeForFpp(APIContext apiContext,
CreateFromAuthorizationCodeParameters createFromAuthorizationCodeParameters)
Creates an Access and a Refresh Tokens from an Authorization Code for future payment.
|
Tokeninfo |
createFromRefreshToken(APIContext apiContext,
CreateFromRefreshTokenParameters createFromRefreshTokenParameters)
Creates an Access Token from an Refresh Token.
|
Tokeninfo |
createFromRefreshToken(CreateFromRefreshTokenParameters createFromRefreshTokenParameters)
Creates an Access Token from an Refresh Token.
|
Tokeninfo |
createFromRefreshTokenForFpp(APIContext apiContext)
Creates an Access Token from an Refresh Token for future payment.
|
String |
getAccessToken()
Getter for just accessToken without type (e.g., "EEwJ6tF9x5WCIZDYzyZGaz6Khbw7raYRIBV_WxVvgmsG")
|
String |
getAccessTokenWithType()
Getter for accessToken with token type (e.g., "Bearer: EEwJ6tF9x5WCIZDYzyZGaz6Khbw7raYRIBV_WxVvgmsG")
|
String |
getAppId()
Getter for appId
|
Integer |
getExpiresIn()
Getter for expiresIn
|
String |
getRefreshToken()
Getter for refreshToken
|
String |
getScope()
Getter for scope
|
String |
getTokenType()
Getter for tokenType
|
void |
setAccessToken(String accessToken)
Setter for accessToken
|
void |
setAppId(String appId)
Setter for appId
|
void |
setExpiresIn(Integer expiresIn)
Setter for expiresIn
|
void |
setRefreshToken(String refreshToken)
Setter for refreshToken
|
void |
setScope(String scope)
Setter for scope
|
void |
setTokenType(String tokenType)
Setter for tokenType
|
configureAndExecute, configureAndExecute, configureAndExecute, createAPICallPreHandler, getClientID, getClientSecret, getConfigurations, getLastRequest, getLastResponse, getOAuthTokenCredential, initConfig, initConfig, initConfig, initializeToDefaultequals, hashCode, toJSON, toStringpublic void setScope(String scope)
public String getScope()
public void setAccessToken(String accessToken)
public String getAccessToken()
public String getAccessTokenWithType()
public void setRefreshToken(String refreshToken)
public String getRefreshToken()
public void setTokenType(String tokenType)
public String getTokenType()
public void setExpiresIn(Integer expiresIn)
public Integer getExpiresIn()
public void setAppId(String appId)
public String getAppId()
public static Tokeninfo createFromAuthorizationCode(CreateFromAuthorizationCodeParameters createFromAuthorizationCodeParameters) throws PayPalRESTException
createFromAuthorizationCodeParameters - Query parameters used for API callPayPalRESTExceptionpublic static Tokeninfo createFromAuthorizationCode(APIContext apiContext, CreateFromAuthorizationCodeParameters createFromAuthorizationCodeParameters) throws PayPalRESTException
apiContext - APIContext to be used for the call.createFromAuthorizationCodeParameters - Query parameters used for API callPayPalRESTExceptionpublic static Tokeninfo createFromAuthorizationCodeForFpp(APIContext apiContext, CreateFromAuthorizationCodeParameters createFromAuthorizationCodeParameters) throws PayPalRESTException
apiContext - APIContext to be used for the call.createFromAuthorizationCodeParameters - Query parameters used for API callPayPalRESTExceptionpublic Tokeninfo createFromRefreshToken(CreateFromRefreshTokenParameters createFromRefreshTokenParameters) throws PayPalRESTException
createFromRefreshTokenParameters - Query parameters used for API callPayPalRESTExceptionpublic Tokeninfo createFromRefreshToken(APIContext apiContext, CreateFromRefreshTokenParameters createFromRefreshTokenParameters) throws PayPalRESTException
apiContext - APIContext to be used for the call.createFromRefreshTokenParameters - Query parameters used for API callPayPalRESTExceptionpublic Tokeninfo createFromRefreshTokenForFpp(APIContext apiContext) throws PayPalRESTException
apiContext - APIContext to be used for the call.PayPalRESTExceptionCopyright © 2015. All Rights Reserved.