public class AccessTokenServiceFactoryImpl extends java.lang.Object implements AccessTokenServiceFactory
Modifier and Type | Field and Description |
---|---|
private PayPalPlusConfig |
config |
private PayPalRequestGateway |
gateway |
Constructor and Description |
---|
AccessTokenServiceFactoryImpl(PayPalPlusConfig config,
PayPalRequestGateway gateway) |
Modifier and Type | Method and Description |
---|---|
AccessTokenService |
getInstance(PayPalPlusCredentials credentials)
Provides the proper token service depending on the
passed credentials object.
|
private PayPalPlusConfig config
private PayPalRequestGateway gateway
@Inject public AccessTokenServiceFactoryImpl(PayPalPlusConfig config, PayPalRequestGateway gateway)
public AccessTokenService getInstance(PayPalPlusCredentials credentials)
AccessTokenServiceFactory
getInstance
in interface AccessTokenServiceFactory
credentials
- Credentials to use in order to
request an access token.