|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.snmp4j.agent.mo.snmp.SnmpCommunityMIB
public class SnmpCommunityMIB
| Field Summary | |
|---|---|
static int |
colSnmpCommunityContextEngineID
|
static int |
colSnmpCommunityContextName
|
static int |
colSnmpCommunityName
|
static int |
colSnmpCommunitySecurityName
|
static int |
colSnmpCommunityStatus
|
static int |
colSnmpCommunityStorageType
|
static int |
colSnmpCommunityTransportTag
|
static int |
colSnmpTargetAddrMMS
|
static int |
colSnmpTargetAddrTMask
|
static int |
idxSnmpCommunityContextEngineID
|
static int |
idxSnmpCommunityContextName
|
static int |
idxSnmpCommunityName
|
static int |
idxSnmpCommunitySecurityName
|
static int |
idxSnmpCommunityStatus
|
static int |
idxSnmpCommunityStorageType
|
static int |
idxSnmpCommunityTransportTag
|
static int |
idxSnmpTargetAddrMMS
|
static int |
idxSnmpTargetAddrTMask
|
static org.snmp4j.smi.OID |
oidSnmpCommunityEntry
|
static org.snmp4j.smi.OID |
oidSnmpTargetAddrExtEntry
|
| Constructor Summary | |
|---|---|
SnmpCommunityMIB(SnmpTargetMIB targetMIB)
|
|
| Method Summary | |
|---|---|
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. |
MOTable |
getSnmpCommunityEntry()
|
MOTable |
getSnmpTargetAddrExtEntry()
|
boolean |
isSourceAddressFiltering()
Returns true if source address filtering is enabled. |
boolean |
passesFilter(org.snmp4j.smi.Address address,
CoexistenceInfo coexistenceInfo)
Checks whether the supplied address passes the source address filter configured for the supplied transport tag. |
void |
registerMOs(MOServer server,
org.snmp4j.smi.OctetString context)
Registers the managed objects of this group with the server for the supplied context. |
void |
setBaseTableSnmpTargetAddrEntry(MOTable baseTable)
|
void |
setSourceAddressFiltering(boolean sourceAddressFiltering)
Enables or disables source address filtering for incoming SNMPv1 or SNMPv2c packets. |
void |
unregisterMOs(MOServer server,
org.snmp4j.smi.OctetString context)
Unregisters the managed objects of this group from the supplied server and from the supplied context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.snmp4j.smi.OID oidSnmpCommunityEntry
public static final int colSnmpCommunityName
public static final int colSnmpCommunitySecurityName
public static final int colSnmpCommunityContextEngineID
public static final int colSnmpCommunityContextName
public static final int colSnmpCommunityTransportTag
public static final int colSnmpCommunityStorageType
public static final int colSnmpCommunityStatus
public static final int idxSnmpCommunityName
public static final int idxSnmpCommunitySecurityName
public static final int idxSnmpCommunityContextEngineID
public static final int idxSnmpCommunityContextName
public static final int idxSnmpCommunityTransportTag
public static final int idxSnmpCommunityStorageType
public static final int idxSnmpCommunityStatus
public static final org.snmp4j.smi.OID oidSnmpTargetAddrExtEntry
public static final int colSnmpTargetAddrTMask
public static final int colSnmpTargetAddrMMS
public static final int idxSnmpTargetAddrTMask
public static final int idxSnmpTargetAddrMMS
| Constructor Detail |
|---|
public SnmpCommunityMIB(SnmpTargetMIB targetMIB)
| Method Detail |
|---|
public MOTable getSnmpCommunityEntry()
public MOTable getSnmpTargetAddrExtEntry()
public void setBaseTableSnmpTargetAddrEntry(MOTable baseTable)
public void registerMOs(MOServer server,
org.snmp4j.smi.OctetString context)
throws DuplicateRegistrationException
MOGroup
registerMOs in interface MOGroupserver - the MOServer where to register the managed objects.context - the context to use (may be null if no specific context
is selected).
DuplicateRegistrationException - if a managed object's scope (i.e. lower bound) is already registered
at the server.
public void unregisterMOs(MOServer server,
org.snmp4j.smi.OctetString context)
MOGroup
unregisterMOs in interface MOGroupserver - the MOServer where to unregister the managed objects.context - the context to use (may be null if no specific context
is selected).public CoexistenceInfo[] getCoexistenceInfo(org.snmp4j.smi.OctetString community)
CoexistenceInfoProvider
getCoexistenceInfo in interface CoexistenceInfoProvidercommunity - a community OctetString that identifies the coexistence information
required.
public boolean passesFilter(org.snmp4j.smi.Address address,
CoexistenceInfo coexistenceInfo)
passesFilter in interface CoexistenceInfoProvideraddress - the address of the incoming packet to check.coexistenceInfo - a set of coexistence information that provides the transport tag that
is 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.
public void setSourceAddressFiltering(boolean sourceAddressFiltering)
sourceAddressFiltering - if true source address filtering is enabled, otherwise
it is disabled.public boolean isSourceAddressFiltering()
true if source address filtering is enabled. In that
case a call to passesFilter(org.snmp4j.smi.Address, org.snmp4j.agent.mo.snmp.CoexistenceInfo) will always return true.
true if source address filtering is enabled,
false otherwise.
public org.snmp4j.smi.OctetString getCommunity(org.snmp4j.smi.OctetString securityName,
org.snmp4j.smi.OctetString contextEngineID,
org.snmp4j.smi.OctetString contextName)
CoexistenceInfoProvider
getCommunity in interface CoexistenceInfoProvidersecurityName - 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.
|
Copyright 2005-2010 Frank Fock (SNMP4J.org) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||