All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.client.SphereAuthConfig Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.client;

import static io.sphere.sdk.client.ClientPackage.AUTH_URL;

/**
 * Contains the configuration to fetch access keys for SPHERE.IO.
 */
public interface SphereAuthConfig {
    String getAuthUrl();

    String getClientId();

    String getClientSecret();

    String getProjectKey();

    static SphereAuthConfig of(final String projectKey, final String clientId, final String clientSecret) {
        return of(projectKey, clientId, clientSecret, AUTH_URL);
    }

    static SphereAuthConfig of(final String projectKey, final String clientId, final String clientSecret, final String authUrl) {
        return new SphereAuthConfigImpl(projectKey, clientId, clientSecret, authUrl);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy