Record Class GitOptions.Network
java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.git.api.GitOptions.Network
- Record Components:
proxyMode- how to treat proxiesproxyUrl- forGitOptions.ProxyMode.MANUAL:http://host:port(no password in it)noProxy- comma separated hosts that bypass the proxyverifySsl-falseswitches the verification of HTTPS certificates off (insecure)caBundle- path of a PEM file with additional trusted certificate authorities; empty for noneacceptNewSshHosts- 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 Summary
ConstructorsConstructorDescriptionNetwork(GitOptions.ProxyMode proxyMode, String proxyUrl, String noProxy, boolean verifySsl, String caBundle, boolean acceptNewSshHosts) Creates an instance of aNetworkrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theacceptNewSshHostsrecord component.caBundle()Returns the value of thecaBundlerecord component.static GitOptions.Networkdefaults()The default network settings: system proxy, certificates verified, unknown SSH hosts refused.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.noProxy()Returns the value of thenoProxyrecord component.Returns the value of theproxyModerecord component.proxyUrl()Returns the value of theproxyUrlrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theverifySslrecord component.
-
Constructor Details
-
Network
public Network(GitOptions.ProxyMode proxyMode, String proxyUrl, String noProxy, boolean verifySsl, String caBundle, boolean acceptNewSshHosts) Creates an instance of aNetworkrecord class.- Parameters:
proxyMode- the value for theproxyModerecord componentproxyUrl- the value for theproxyUrlrecord componentnoProxy- the value for thenoProxyrecord componentverifySsl- the value for theverifySslrecord componentcaBundle- the value for thecaBundlerecord componentacceptNewSshHosts- the value for theacceptNewSshHostsrecord component
-
-
Method Details
-
defaults
The default network settings: system proxy, certificates verified, unknown SSH hosts refused. -
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
proxyMode
Returns the value of theproxyModerecord component.- Returns:
- the value of the
proxyModerecord component
-
proxyUrl
Returns the value of theproxyUrlrecord component.- Returns:
- the value of the
proxyUrlrecord component
-
noProxy
Returns the value of thenoProxyrecord component.- Returns:
- the value of the
noProxyrecord component
-
verifySsl
public boolean verifySsl()Returns the value of theverifySslrecord component.- Returns:
- the value of the
verifySslrecord component
-
caBundle
Returns the value of thecaBundlerecord component.- Returns:
- the value of the
caBundlerecord component
-
acceptNewSshHosts
public boolean acceptNewSshHosts()Returns the value of theacceptNewSshHostsrecord component.- Returns:
- the value of the
acceptNewSshHostsrecord component
-