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

org.ajoberstar.grgit.Credentials.groovy Maven / Gradle / Ivy

There is a newer version: 5.3.0
Show newest version
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