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 static | No credentials. |
password static | A user name and password, or access token, for an HTTPS remote. |
sshKey static | An SSH key pair, for an SSH remote. |
toString | Which credentials these are, without the secrets. |
hashCode | |
equals | |
username | |
password | |
publicKey | |
privateKey | |
passphrase |
GitCredentials
constructorGitCredentials(String username, String password, String publicKey, String privateKey, String passphrase)none
staticstatic GitCredentials none()No credentials.
Returns
- them
password
staticstatic 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
staticstatic 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
nullfor 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.