public interface CoexistenceInfoProvider
CoexistenceInfoProvider
provides access to coexistence
information.Modifier and Type | Method and Description |
---|---|
CoexistenceInfo[] |
getCoexistenceInfo(org.snmp4j.smi.OctetString community)
Gets the information needed for community based security protocols to
coexistence with the SNMPv3 security model.
|
org.snmp4j.smi.OctetString |
getCommunity(org.snmp4j.smi.OctetString securityName,
org.snmp4j.smi.OctetString contextEngineID,
org.snmp4j.smi.OctetString contextName)
Returns the community associated with the supplied security name.
|
boolean |
passesFilter(org.snmp4j.smi.Address address,
CoexistenceInfo coexistenceInfo)
Checks whether the supplied address passes the source address filtering
provided for community based security models.
|
CoexistenceInfo[] getCoexistenceInfo(org.snmp4j.smi.OctetString community)
community
- a community OctetString that identifies the coexistence information
required.org.snmp4j.smi.OctetString getCommunity(org.snmp4j.smi.OctetString securityName, org.snmp4j.smi.OctetString contextEngineID, org.snmp4j.smi.OctetString contextName)
securityName
- the security name.contextEngineID
- the context engine ID of the remote target (when proxying) otherwise
the local engine ID.contextName
- the context name (default is an empty string).null
if such an
association does not exists.boolean passesFilter(org.snmp4j.smi.Address address, CoexistenceInfo coexistenceInfo)
address
- the source Address of a SNMP message.coexistenceInfo
- a set of coexistence information (returned by
getCoexistenceInfo(org.snmp4j.smi.OctetString)
) that provides the transport tag
used to identify allowed source addresses. On return, the maximum
message size attribute of the coexistence info set will be set
according to the values defined for the matched source address in
the snmpTargetAddrExtTable.true
if the address passes the filter, false
otherwise.Copyright © 2020 SNMP4J.org. All rights reserved.