Class NetRC


  • public class NetRC
    extends java.lang.Object
    NetRC file parser.
    Since:
    3.5
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  NetRC.NetRCEntry
      .netrc file entry
    • Constructor Summary

      Constructors 
      Constructor Description
      NetRC()  
      NetRC​(java.io.File netrc)  
    • Constructor Detail

      • NetRC

        public NetRC()
      • NetRC

        public NetRC​(java.io.File netrc)
        Parameters:
        netrc - the .netrc file
    • Method Detail

      • getEntry

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

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