public abstract class ConnectionConfiguration extends Object
ConnectionConfiguration is the abstract base class for all grant types
GrantType which allows an application to configure connections
ADPAPIConnection based on OAuth2.0 recognized Grant Types.
| Modifier and Type | Field and Description |
|---|---|
protected String |
apiRequestUrl |
protected String |
clientID |
protected String |
clientSecret |
protected GrantType |
grantType |
protected String |
keyPassword |
protected String |
sslCertPath |
protected String |
storePassword |
protected long |
tokenExpiration |
protected String |
tokenServerUrl |
| Constructor and Description |
|---|
ConnectionConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
String |
getApiRequestUrl() |
String |
getClientID() |
String |
getClientSecret() |
GrantType |
getGrantType() |
String |
getKeyPassword() |
String |
getSslCertPath() |
String |
getStorePassword() |
long |
getTokenExpiration() |
String |
getTokenServerUrl() |
void |
setApiRequestUrl(String apiRequestUrl) |
void |
setClientID(String clientID) |
void |
setClientSecret(String clientSecret) |
protected void |
setGrantType(GrantType grantType) |
void |
setKeyPassword(String keyPassword) |
void |
setSslCertPath(String sslCertPath) |
void |
setStorePassword(String storePassword) |
void |
setTokenExpiration(long tokenExpiration) |
void |
setTokenServerUrl(String tokenServerUrl) |
String |
toString() |
protected long tokenExpiration
protected String clientID
protected String clientSecret
protected String sslCertPath
protected String keyPassword
protected String storePassword
protected String tokenServerUrl
protected String apiRequestUrl
protected GrantType grantType
public long getTokenExpiration()
public void setTokenExpiration(long tokenExpiration)
tokenExpiration - the token expiration time in secondspublic String getClientID()
ConnectionConfiguration connection configurationpublic void setClientID(String clientID)
clientID - the client id associated with this connection
configurationpublic String getClientSecret()
public void setClientSecret(String clientSecret)
clientSecret - the client secret associated with this connection
configurationpublic String getSslCertPath()
public void setSslCertPath(String sslCertPath)
sslCertPath - the file path location of ssl certificatepublic String getKeyPassword()
public void setKeyPassword(String keyPassword)
keyPassword - the password provided to access the key storepublic String getStorePassword()
public void setStorePassword(String storePassword)
storePassword - the password provided to access the storepublic String getTokenServerUrl()
public void setTokenServerUrl(String tokenServerUrl)
tokenServerUrl - the absolute URL string to access the token serverpublic String getApiRequestUrl()
public void setApiRequestUrl(String apiRequestUrl)
apiRequestUrl - the absolute URL string to the resource serverpublic GrantType getGrantType()
GrantTypeprotected void setGrantType(GrantType grantType)
grantType - the grant type set to this connection configurationGrantTypepublic String toString()
toString in class ObjectConnectionConfiguration objectCopyright © 2016 ADP LLC. All rights reserved.