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

com.xebialabs.overthere.gcp.credentials.ProjectCredentials Maven / Gradle / Ivy

There is a newer version: 5.6.16
Show newest version
package com.xebialabs.overthere.gcp.credentials;

import com.google.auth.Credentials;
import com.google.api.client.auth.oauth2.Credential;
public final class ProjectCredentials {
    private Credentials credentials;
    private Credential oauth2Credential;
    private final String projectId;
    private final String clientEmail;

    ProjectCredentials(final Credentials credentials, final String projectId, final String clientEmail) {
        this.credentials = credentials;
        this.projectId = projectId;
        this.clientEmail = clientEmail;
    }

    ProjectCredentials(final Credential credential, final String projectId, final String clientEmail) {
        this.oauth2Credential = credential;
        this.projectId = projectId;
        this.clientEmail = clientEmail;
    }

    public Credentials getCredentials() {
        return credentials;
    }

    public Credential getOauth2Credential() {
        return oauth2Credential;
    }

    public String getProjectId() {
        return projectId;
    }

    public String getClientEmail() {
        return clientEmail;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy