Class ClientConfigurationUtils


  • public final class ClientConfigurationUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.commercetools.api.client.ProjectApiRoot createClient​(java.lang.String projectKey, io.vrap.rmf.base.client.oauth2.ClientCredentials credentials, java.lang.String authUrl, java.lang.String apiUrl)
      Creates a ProjectApiRoot.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClientConfigurationUtils

        public ClientConfigurationUtils()
    • Method Detail

      • createClient

        public static com.commercetools.api.client.ProjectApiRoot createClient​(@Nonnull
                                                                               java.lang.String projectKey,
                                                                               @Nonnull
                                                                               io.vrap.rmf.base.client.oauth2.ClientCredentials credentials,
                                                                               @Nonnull
                                                                               java.lang.String authUrl,
                                                                               @Nonnull
                                                                               java.lang.String apiUrl)
        Creates a ProjectApiRoot.
        Parameters:
        projectKey - commercetools project key
        credentials - api credentials with clientId, clientSecret and scopes
        authUrl - the auth url of the commercetools platform that project is bound
        apiUrl - the api url of the commercetools platform that project is bound
        Returns:
        the instantiated ProjectApiRoot.