Using org.snmp4j.arg.tlsVersion parameter to set TLS version

Can we use this parameter “org.snmp4j.arg.tlsVersion” as input java argument to pass enabled TLS versions instead of setTlsProtocols method in class TLSTM?

Yes, you can use the system property org.snmp4j.arg.tlsVersion to set the TLS version for TLSTM and org.snmp4j.arg.dtlsVersion to set the DTLS version for DTLSTM.