Uses of Class
org.snmp4j.fluent.SnmpBuilder
Packages that use SnmpBuilder
-
Uses of SnmpBuilder in org.snmp4j.fluent
Fields in org.snmp4j.fluent declared as SnmpBuilderMethods in org.snmp4j.fluent that return SnmpBuilderModifier and TypeMethodDescriptionSnmpBuilder.addSecurityProtocol(SecurityProtocol securityProtocol) Make an additionalSecurityProtocolavailable for theSnmpsession to be built.SnmpBuilder.allowIncrementalConfigAfterBuild()Switches this builder into incremental mode, which permits additive configuration calls (adding transport mappings, message-processing models, security models, and security protocols) even afterSnmpBuilder.build()has been called.SnmpBuilder.counterSupport(CounterSupport counterSupport) Sets theCounterSupportwithSnmp.setCounterSupport(CounterSupport)when building theSnmpinstance usingSnmpBuilder.build().SnmpBuilder.dtls()SnmpBuilder.dtls(TlsTmSecurityCallback<X509Certificate> securityCallback, String[] dtlsProtocolVersions, DtlsAddress... listenAddresses) SnmpBuilder.dtls(TlsTmSecurityCallback<X509Certificate> securityCallback, DtlsAddress... listenAddresses) SnmpBuilder.securityProtocols(SecurityProtocols.SecurityProtocolSet securityProtocolSet) Specifies which predefined set ofSecurityProtocolsshould be available for theSnmpsession to be built.SnmpBuilder.tcp()Add aDefaultTcpTransportMappingin client mode with an arbitrary local address amd port.SnmpBuilder.tcp(TcpAddress... listenAddresses) Add theDefaultTcpTransportMappingserver mode TCP transport mappings for the specified listen addresses to theSnmpinstance to be built.SnmpBuilder.threads(int numThreads) Configures theMultiThreadedMessageDispatcheras message dispatcher and thereby defines the number of threads in itsThreadPool.SnmpBuilder.tls()SnmpBuilder.tls(TlsTmSecurityCallback<X509Certificate> securityCallback, String[] tlsProtocolVersions, TlsAddress... listenAddresses) SnmpBuilder.tls(TlsTmSecurityCallback<X509Certificate> securityCallback, TlsAddress... listenAddresses) SnmpBuilder.tm(TransportMapping<?>... transportMappings) Configures the SNMP builder with the specified transport mappings.SnmpBuilder.tsm(EngineIdProvider engineIdProvider, OctetString defaultLocalEngineID, boolean usePrefix) Creates a Transport Security Model as defined by RFC 5591 and adds it to the builtSnmpinstance.SnmpBuilder.tsm(OctetString localEngineID, boolean usePrefix) Creates a Transport Security Model as defined by RFC 5591 and adds it to the builtSnmpinstance.SnmpBuilder.udp()Adds a UDP transport mapping (DefaultUdpTransportMapping) with an operating system chosen local port on all local IP addresses.SnmpBuilder.udp(UdpAddress... listenAddresses) Adds a set of UDP transport mappings (DefaultUdpTransportMapping) with the specified local listen addressesSnmpBuilder.usm()Creates a USM for the specified engine ID and engine boots counter derived from the SNMP engine ID provider given bySnmpBuilder.v3(EngineIdProvider, OctetString).SnmpBuilder.usm(SnmpEngineIdProvider snmpEngineIdProvider, OctetString defaultLocalEngineID) Creates a USM using the specifiedSnmpEngineIdProvider.SnmpBuilder.usm(OctetString localEngineID, int engineBoots) Creates a USM for the specified engine ID and engine boots counter.SnmpBuilder.v1()Adds theMPv1security model toSnmp.getMessageDispatcher().SnmpBuilder.v2c()Adds aMPv2csecurity model toSnmp.getMessageDispatcher().SnmpBuilder.v3()Adds aMPv3with a randomly created local engine IDSnmp.getMessageDispatcher()ifSnmpBuilder.usm(SnmpEngineIdProvider, OctetString)orSnmpBuilder.tsm(EngineIdProvider, OctetString, boolean)have not been called yet to set anEngineIdProvider.SnmpBuilder.v3(byte[] localEngineID) Sets the local engine ID for thisSnmpBuilderand creates the message processing model 3 (MPv3) by assigning theSecurityModelsandSecurityProtocolsconfigured by calls toSnmpBuilder.usm(SnmpEngineIdProvider, OctetString)andSnmpBuilder.tsm(EngineIdProvider, OctetString, boolean)for example as well asSnmpBuilder.securityProtocols(SecurityProtocols.SecurityProtocolSet).SnmpBuilder.v3(EngineIdProvider engineIdProvider, OctetString id) Adds aMPv3message processing model with a random engine ID based on the supplied ID string.SnmpBuilder.v3(OctetString id) Adds aMPv3message processing model with a random engine ID based on the supplied ID string.CallsSnmpBuilder.v1(),SnmpBuilder.v2c(),SnmpBuilder.v3()depending on the specified version string.Methods in org.snmp4j.fluent with parameters of type SnmpBuilderModifier and TypeMethodDescriptionstatic <A extends Address>
TargetBuilder<A> TargetBuilder.forAddress(SnmpBuilder snmpBuilder, A address) Creates aTargetBuilderfrom a givenSnmpBuilderwhich is used to discover authoritative engine ID and to get the security protocols to derive keys from passwords.Constructors in org.snmp4j.fluent with parameters of type SnmpBuilderModifierConstructorDescriptionTargetBuilder(SnmpBuilder snmpBuilder) Creates aTargetBuilderfrom a givenSnmpBuilderwhich is used to discover authoritative engine ID and to get the security protocols to derive keys from passwords.protectedTargetBuilder(SnmpBuilder snmpBuilder, A address)