Record Class GitOptions.Network

java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.git.api.GitOptions.Network
Record Components:
proxyMode - how to treat proxies
proxyUrl - for GitOptions.ProxyMode.MANUAL: http://host:port (no password in it)
noProxy - comma separated hosts that bypass the proxy
verifySsl - false switches the verification of HTTPS certificates off (insecure)
caBundle - path of a PEM file with additional trusted certificate authorities; empty for none
acceptNewSshHosts - accept the host key of an SSH server seen for the first time (a changed key is still refused); only used when the user has not chosen an SSH command themselves
Enclosing class:
GitOptions

public static record GitOptions.Network(GitOptions.ProxyMode proxyMode, String proxyUrl, String noProxy, boolean verifySsl, String caBundle, boolean acceptNewSshHosts) extends Record
Network settings.
  • Constructor Details

    • Network

      public Network(GitOptions.ProxyMode proxyMode, String proxyUrl, String noProxy, boolean verifySsl, String caBundle, boolean acceptNewSshHosts)
      Creates an instance of a Network record class.
      Parameters:
      proxyMode - the value for the proxyMode record component
      proxyUrl - the value for the proxyUrl record component
      noProxy - the value for the noProxy record component
      verifySsl - the value for the verifySsl record component
      caBundle - the value for the caBundle record component
      acceptNewSshHosts - the value for the acceptNewSshHosts record component
  • Method Details

    • defaults

      public static GitOptions.Network defaults()
      The default network settings: system proxy, certificates verified, unknown SSH hosts refused.
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • proxyMode

      public GitOptions.ProxyMode proxyMode()
      Returns the value of the proxyMode record component.
      Returns:
      the value of the proxyMode record component
    • proxyUrl

      public String proxyUrl()
      Returns the value of the proxyUrl record component.
      Returns:
      the value of the proxyUrl record component
    • noProxy

      public String noProxy()
      Returns the value of the noProxy record component.
      Returns:
      the value of the noProxy record component
    • verifySsl

      public boolean verifySsl()
      Returns the value of the verifySsl record component.
      Returns:
      the value of the verifySsl record component
    • caBundle

      public String caBundle()
      Returns the value of the caBundle record component.
      Returns:
      the value of the caBundle record component
    • acceptNewSshHosts

      public boolean acceptNewSshHosts()
      Returns the value of the acceptNewSshHosts record component.
      Returns:
      the value of the acceptNewSshHosts record component