|
SNMP Stack 5_1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface provides the SNMPv3 USM (User-Based Security Model) authoritative details.
When the stack is used as authoritative SNMP engine it has to send its Engine ID and clock (i.e. Engine Boots and Engine Time) with each message. The engine who sends a Response, a Trapv2 or a Report is authoritative.
Since this stack has no means in providing this information, this interface has to be implemented by the user.
SnmpContextv3Basis.setUsmAgent(uk.co.westhawk.snmp.stack.UsmAgent)
Field Summary | |
static java.lang.String |
MYFAKEHOSTNAME
This name ("_myusmagent") is used to create an entry in the TimeWindow for the stack to act as authoritative engine. |
static java.lang.String |
version_id
|
Method Summary | |
int |
getSnmpEngineBoots()
Returns the authoritative Engine Boots. |
java.lang.String |
getSnmpEngineId()
Returns the authoritative SNMP Engine ID. |
int |
getSnmpEngineTime()
Returns the authoritative Engine Time. |
long |
getUsmStatsNotInTimeWindows()
Returns the value of the usmStatsNotInTimeWindows counter. |
long |
getUsmStatsUnknownEngineIDs()
Returns the value of the usmStatsUnknownEngineIDs counter. |
void |
setSnmpContext(SnmpContextv3Basis context)
Sets the current snmp context. |
Field Detail |
public static final java.lang.String version_id
public static final java.lang.String MYFAKEHOSTNAME
Method Detail |
public java.lang.String getSnmpEngineId()
The Engine ID is the (case insensitive) string representation of a hexadecimal number, without any prefix, for example 010000a1d41e4946.
SnmpUtilities.toBytes(String)
public int getSnmpEngineBoots()
public int getSnmpEngineTime()
public long getUsmStatsUnknownEngineIDs()
public long getUsmStatsNotInTimeWindows()
public void setSnmpContext(SnmpContextv3Basis context)
|
SNMP Stack 5_1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |