public final class AuthorizationCodeConfiguration extends ConnectionConfiguration
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.
| Modifier and Type | Field and Description |
|---|---|
private String |
authorizationCode |
private String |
baseAuthorizationUrl |
private String |
disconnectUrl |
private static GrantType |
grantType
default grant type for this
AuthorizationCodeConfiguration |
static String |
grantTypeValue |
private String |
redirectUrl |
private static ResponseType |
responseType
default response type for this
AuthorizationCodeConfiguration |
static String |
responseTypeValue |
private String |
scope |
static String |
scopeApi
API scopes for this
AuthorizationCodeConfiguration |
static String |
scopeOpenId
API scopes for this
AuthorizationCodeConfiguration |
static String |
scopeProfile
API scopes for this
AuthorizationCodeConfiguration |
private double |
state
randomly generated
UUID string used as an identifier to each
connection |
apiRequestUrl, clientID, clientSecret, keyPassword, sslCertPath, storePassword, tokenExpiration, tokenServerUrl| Constructor and Description |
|---|
AuthorizationCodeConfiguration()
constructor default grant type set to authorization_code and
default scope set to openid
|
setGrantTypeprivate static final GrantType grantType
AuthorizationCodeConfigurationpublic static final String grantTypeValue
private static final ResponseType responseType
AuthorizationCodeConfigurationpublic static final String responseTypeValue
public static final String scopeApi
AuthorizationCodeConfigurationScopepublic static final String scopeOpenId
AuthorizationCodeConfigurationScopepublic static final String scopeProfile
AuthorizationCodeConfigurationScopeprivate double state
UUID string used as an identifier to each
connectionprivate String baseAuthorizationUrl
private String disconnectUrl
private String redirectUrl
private String authorizationCode
private String scope
public AuthorizationCodeConfiguration()
public double getState()
public void setState(double state)
state - variablepublic 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 ConnectionConfigurationAuthorizationCodeConfigurationpublic void setClientID(String clientID)
setClientID in class ConnectionConfigurationclientID - the client id associated with this connection
AuthorizationCodeConfigurationpublic String getClientSecret()
getClientSecret in class ConnectionConfigurationAuthorizationCodeConfigurationpublic void setClientSecret(String clientSecret)
setClientSecret in class ConnectionConfigurationclientSecret - the client secret associated with this connection
AuthorizationCodeConfigurationpublic 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 the resource serverpublic GrantType getGrantType()
getGrantType in class ConnectionConfigurationGrantTypepublic ResponseType getResponseType()
ResponseTypepublic String getBaseAuthorizationUrl()
public void setBaseAuthorizationUrl(String baseAuthorizationUrl)
baseAuthorizationUrl - the absolute URL string to access
authorization serverpublic String getDisconnectUrl()
public void setDisconnectUrl(String disconnectUrl)
disconnectUrl - the absolute URL string to access server for
disconnectpublic String getRedirectUrl()
public void setRedirectUrl(String redirectUrl)
redirectUrl - the absolute URL string to redirect to non ADP serverpublic String getAuthorizationCode()
public void setAuthorizationCode(String authorizationCode)
authorizationCode - the generated value of authorization codepublic String getScope()
&api&profileScopepublic void setScope(String scope)
scope - the default scope of openid or additional scopes
appended to default scope as &api&profileScopepublic static String getResponseTypeValue()
public static String getGrantTypeValue()
public static String getScopeApi()
Scopepublic static String getScopeOpenId()
Scopepublic static String getScopeProfile()
Scopepublic String toString()
toString in class ConnectionConfigurationAuthorizationCodeConfiguration objectCopyright © 2016 ADP LLC. All rights reserved.