skipcheck

TM1 client · Docs · More services

GitCredentials

import io.skipcheck.tm1.client.service.git.GitCredentials;

How TM1 signs in to the Git remote: nothing (a public or git:// remote), a user name and password or token (HTTPS), or an SSH key pair. TM1 doesn't keep them, so every call that reaches the remote takes them again. toString leaves the secrets out.

Members

GitCredentials constructor
none staticNo credentials.
password staticA user name and password, or access token, for an HTTPS remote.
sshKey staticAn SSH key pair, for an SSH remote.
toStringWhich credentials these are, without the secrets.
hashCode
equals
username
password
publicKey
privateKey
passphrase

GitCredentials

constructor
GitCredentials(String username, String password, String publicKey, String privateKey, String passphrase)

none

static
static GitCredentials none()

No credentials.

Returns

them

password

static
static GitCredentials password(String username, String password)

A user name and password, or access token, for an HTTPS remote.

Parameters

username
the user name
password
the password or token

Returns

them

sshKey

static
static GitCredentials sshKey(String publicKey, String privateKey, String passphrase)

An SSH key pair, for an SSH remote.

Parameters

publicKey
the public key
privateKey
the private key
passphrase
its passphrase, or null for none

Returns

them

toString

String toString()

Which credentials these are, without the secrets.

hashCode

int hashCode()

equals

boolean equals(Object o)

username

String username()

password

String password()

publicKey

String publicKey()

privateKey

String privateKey()

passphrase

String passphrase()

Also in the Javadoc.