Class NetRC


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

      • NetRC

        public NetRC()

        Constructor for NetRC.

      • NetRC

        public NetRC​(File netrc)

        Constructor for NetRC.

        Parameters:
        netrc - the .netrc file
    • Method Detail

      • 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