| Package | Description |
|---|---|
| com.adp.marketplace.connection.configuration | |
| com.adp.marketplace.connection.core | |
| com.adp.marketplace.connection.utils |
| Modifier and Type | Class and Description |
|---|---|
class |
AuthorizationCodeConfiguration
AuthorizationCodeConfiguration is an implementation class of base abstract
class
ConnectionConfiguration which allows an application to
configure connection with GrantType authorization_code based
on OAuth 2.0 Specification. |
class |
ClientCredentialsConfiguration
ClientCredentialsConfiguration is an implementation class of base abstract
class
ConnectionConfiguration which allows an application to
configure connection with GrantType client_credentials based
on OAuth 2.0 Specification. |
| Modifier and Type | Field and Description |
|---|---|
private ConnectionConfiguration |
ClientCredentialsConnection.connectionConfiguration |
private ConnectionConfiguration |
AuthorizationCodeConnection.connectionConfiguration |
| Modifier and Type | Method and Description |
|---|---|
ConnectionConfiguration |
ClientCredentialsConnection.getConnectionConfiguration()
Returns the Connection configuration
|
ConnectionConfiguration |
AuthorizationCodeConnection.getConnectionConfiguration()
Returns the Connection configuration
|
ConnectionConfiguration |
ADPAPIConnectionFactory.init(String grantType)
Returns an instance of Configuration object based on the authorization grant type
|
| Modifier and Type | Method and Description |
|---|---|
ADPAPIConnection |
ADPAPIConnectionFactory.createConnection(ConnectionConfiguration connectionConfiguration)
this method returns an instance of Connection object based on the authorization configuration
|
private ADPAPIConnection |
ADPAPIConnectionFactory.createConnection(GrantType grantType,
ConnectionConfiguration connectionConfiguration)
Returns an instance of Connection object based on the authorization grant type
|
void |
ClientCredentialsConnection.setConnectionConfiguration(ConnectionConfiguration connectionConfiguration)
Maps the connection configuration
AuthorizationCodeConfiguration
to this connection |
void |
AuthorizationCodeConnection.setConnectionConfiguration(ConnectionConfiguration connectionConfiguration)
Maps the connection configuration
AuthorizationCodeConfiguration
to this connection |
| Constructor and Description |
|---|
AuthorizationCodeConnection(ConnectionConfiguration connectionConfiguration)
constructor
|
ClientCredentialsConnection(ConnectionConfiguration connectionConfiguration)
constructor sets configuration to this connection
|
| Modifier and Type | Method and Description |
|---|---|
static List<org.apache.http.NameValuePair> |
ConnectionUtils.getClientCredentials(ConnectionConfiguration connectionConfiguration)
Returns a List of name value pairs consisting of client credentials and
grant type associated to this configuration
|
org.apache.http.impl.client.CloseableHttpClient |
SSLUtils.getHttpsClient(ConnectionConfiguration connectionConfiguration)
Returns an instance of
CloseableHttpClient |
boolean |
ConnectionValidatorUtils.validate(ConnectionConfiguration connectionConfiguration)
Returns true if configuration has required SSL attributes, client
credentials and valid url's, false otherwise or validation exceptions.
|
private boolean |
ConnectionValidatorUtils.validateClientCredentials(boolean ignoreClientSecret,
ConnectionConfiguration connectionConfiguration)
Returns true if client credentials are not empty, false otherwise
|
protected boolean |
ConnectionValidatorUtils.validateSSLFields(ConnectionConfiguration connectionConfiguration)
Returns true if valid, false otherwise and exception in case of error
|
private boolean |
ConnectionValidatorUtils.validateUrls(ConnectionConfiguration connectionConfiguration)
Returns true if valid, false otherwise and exception in case of error
|
Copyright © 2016 ADP LLC. All rights reserved.