Class NetRC

java.lang.Object
org.eclipse.jgit.transport.NetRC

public class NetRC extends Object
NetRC file parser.
Since:
3.5
  • Constructor Details

    • NetRC

      public NetRC()

      Constructor for NetRC.

    • NetRC

      public NetRC(File netrc)

      Constructor for NetRC.

      Parameters:
      netrc - the .netrc file
  • Method Details

    • getEntry

      public NetRC.NetRCEntry getEntry(String host)
      Get entry by host name
      Parameters:
      host - the host name
      Returns:
      entry associated with host name or null
    • getEntries

      public Collection<NetRC.NetRCEntry> getEntries()
      Get all entries collected from .netrc file
      Returns:
      all entries collected from .netrc file