public final class ClientCredentialsConfiguration extends ConnectionConfiguration
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 |
|---|---|
static String |
grantTypeValue
default grant type value for this
ClientCredentialsConfiguration |
apiRequestUrl, clientID, clientSecret, grantType, keyPassword, sslCertPath, storePassword, tokenExpiration, tokenServerUrl| Constructor and Description |
|---|
ClientCredentialsConfiguration()
constructor default grant type set to client_credentials
|
| Modifier and Type | Method and Description |
|---|---|
String |
getApiRequestUrl() |
String |
getClientID() |
String |
getClientSecret() |
static String |
getGrantTypeValue() |
String |
getKeyPassword() |
String |
getSslCertPath() |
String |
getStorePassword() |
long |
getTokenExpiration() |
String |
getTokenServerUrl() |
void |
setApiRequestUrl(String apiRequestUrl) |
void |
setClientID(String clientID) |
void |
setClientSecret(String clientSecret) |
void |
setKeyPassword(String keyPassword) |
void |
setSslCertPath(String sslCertPath) |
void |
setStorePassword(String storePassword) |
void |
setTokenExpiration(long tokenExpiration) |
void |
setTokenServerUrl(String tokenServerUrl) |
String |
toString() |
getGrantType, setGrantTypepublic static final String grantTypeValue
ClientCredentialsConfigurationpublic ClientCredentialsConfiguration()
public long getTokenExpiration()
getTokenExpiration in class ConnectionConfigurationpublic void setTokenExpiration(long tokenExpiration)
setTokenExpiration in class ConnectionConfigurationtokenExpiration - the token expiration time in secondspublic String getClientID()
getClientID in class ConnectionConfigurationClientCredentialsConfigurationpublic void setClientID(String clientID)
setClientID in class ConnectionConfigurationclientID - the client id associated with this connection
ClientCredentialsConfigurationpublic String getClientSecret()
getClientSecret in class ConnectionConfigurationClientCredentialsConfigurationpublic void setClientSecret(String clientSecret)
setClientSecret in class ConnectionConfigurationclientSecret - the client secret associated with this connection
ClientCredentialsConfigurationpublic String getSslCertPath()
getSslCertPath in class ConnectionConfigurationpublic void setSslCertPath(String sslCertPath)
setSslCertPath in class ConnectionConfigurationsslCertPath - the file path location of ssl certificatepublic String getKeyPassword()
getKeyPassword in class ConnectionConfigurationpublic void setKeyPassword(String keyPassword)
setKeyPassword in class ConnectionConfigurationkeyPassword - the password provided to access the key storepublic String getStorePassword()
getStorePassword in class ConnectionConfigurationpublic void setStorePassword(String storePassword)
setStorePassword in class ConnectionConfigurationstorePassword - the password provided to access the storepublic String getTokenServerUrl()
getTokenServerUrl in class ConnectionConfigurationpublic void setTokenServerUrl(String tokenServerUrl)
setTokenServerUrl in class ConnectionConfigurationtokenServerUrl - the absolute URL string to access the token serverpublic String getApiRequestUrl()
getApiRequestUrl in class ConnectionConfigurationpublic void setApiRequestUrl(String apiRequestUrl)
setApiRequestUrl in class ConnectionConfigurationapiRequestUrl - the absolute URL string to access the resource serverpublic static String getGrantTypeValue()
GrantTypepublic String toString()
toString in class ConnectionConfigurationClientCredentialsConfiguration objectCopyright © 2016 ADP LLC. All rights reserved.