org.ajoberstar.grgit.Credentials.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grgit-core Show documentation
Show all versions of grgit-core Show documentation
The Groovy way to use Git
package org.ajoberstar.grgit
import groovy.transform.Canonical
/**
* Credentials to use for remote operations.
* @since 0.2.0
*/
@Canonical
class Credentials {
final String username
final String password
String getUsername() {
return username ?: ''
}
String getPassword() {
return password ?: ''
}
boolean isPopulated() {
return username != null
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy