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

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

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

import io.sphere.sdk.models.Base;

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

final class SphereAuthConfigImpl extends Base implements SphereAuthConfig {
    private final String projectKey;
    private final String clientId;
    private final String clientSecret;
    private final String authUrl;

    SphereAuthConfigImpl(final String projectKey, final String clientId, final String clientSecret, final String authUrl) {
        this.projectKey = requireNonBlank(projectKey, "projectKey");
        this.clientId = requireNonBlank(clientId, "clientId");
        this.clientSecret = requireNonBlank(clientSecret, "clientSecret");
        this.authUrl = requireNonBlank(authUrl, "authUrl");
    }

    @Override
    public String getProjectKey() {
        return projectKey;
    }

    @Override
    public String getClientId() {
        return clientId;
    }

    @Override
    public String getClientSecret() {
        return clientSecret;
    }

    @Override
    public String getAuthUrl() {
        return authUrl;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy