public class PayPalClient extends OAuth20Client<PayPalProfile>
This class is the OAuth client to authenticate users in PayPal.
By default, the following scope is requested to PayPal : openid profile email address.
The scope can be defined to require permissions from the user and retrieve attributes from PayPal, by using the
setScope(String) method.
It returns a PayPalProfile.
More information at https://developer.paypal.com/webapps/developer/docs/integration/direct/log-in-with-paypal/detailed/
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_SCOPE |
configurationATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, callbackUrlResolver, urlResolverlogger| Constructor and Description |
|---|
PayPalClient() |
PayPalClient(java.lang.String key,
java.lang.String secret) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clientInit() |
java.lang.String |
getScope() |
void |
setScope(java.lang.String scope) |
getConfiguration, getKey, getSecret, setConfiguraton, setKey, setSecret, toStringcomputeFinalCallbackUrl, defaultLogoutActionBuilder, defaultRedirectActionBuilder, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCredentials, getLogoutAction, getLogoutActionBuilder, getRedirectAction, getRedirectActionBuilder, getUrlResolver, internalInit, redirect, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setLogoutActionBuilder, setRedirectActionBuilder, setUrlResolveraddAuthorizationGenerator, addAuthorizationGenerators, defaultAuthenticator, defaultCredentialsExtractor, defaultProfileCreator, getAuthenticator, getAuthorizationGenerators, getCredentialsExtractor, getCustomProperties, getName, getProfileCreator, getUserProfile, notifySessionRenewal, retrieveCredentials, retrieveUserProfile, setAuthenticator, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setCredentialsExtractor, setCustomProperties, setName, setProfileCreatorinitpublic static final java.lang.String DEFAULT_SCOPE
public PayPalClient()
public PayPalClient(java.lang.String key,
java.lang.String secret)
protected void clientInit()
clientInit in class OAuth20Client<PayPalProfile>public java.lang.String getScope()
public void setScope(java.lang.String scope)
Copyright © 2018. All Rights Reserved.