Class OAuth2TestConfig


  • public class OAuth2TestConfig
    extends Object
    This class represents a test config which should be provided by connector integration tests to perform oauth 2 authentication. The unencrypted refresh token, client id, client secret, access token url are mandatory and used to retrieve access token during force update or when access token is null.
    • Constructor Detail

      • OAuth2TestConfig

        public OAuth2TestConfig​(String accessTokenUrl,
                                String authTokenUrl,
                                String clientId,
                                String clientSecret,
                                String refreshToken)
        Create a new instance of OAuth2 config
        Parameters:
        accessTokenUrl -
        authTokenUrl -
        clientId -
        clientSecret -
        refreshToken -
    • Method Detail

      • getAccessTokenUrl

        public String getAccessTokenUrl()
      • getAuthTokenUrl

        public String getAuthTokenUrl()
      • getClientId

        public String getClientId()
      • getClientSecret

        public String getClientSecret()
      • getRefreshToken

        public String getRefreshToken()