Package org.snmp4j.security
Class UsmTimeTable
java.lang.Object
org.snmp4j.security.UsmTimeTable
- All Implemented Interfaces:
 Serializable
The 
UsmTimeTable class is a singleton that stores USM user
 information as part of the Local Configuration Datastore (LCD).- Version:
 - 1.2
 - Author:
 - Frank Fock
 - See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddEntry(UsmTimeEntry entry) intcheckEngineID(OctetString engineID, boolean discoveryAllowed, int engineBoots, int engineTime) intcheckTime(UsmTimeEntry entry) intThe number of times that the SNMP engine has (re-)initialized itself since snmpEngineID was last configured.intReturns the number of seconds since the value of the engineBoots object last changed.getEntry(OctetString engineID) getTime(OctetString engineID) voidremoveEntry(OctetString engineID) Removes the specified engine ID from the time cache.voidreset()voidsetEngineBoots(int engineBoots) Sets the number of engine boots.voidsetLocalTime(UsmTimeEntry localTime)  
- 
Constructor Details
- 
UsmTimeTable
 
 - 
 - 
Method Details
- 
addEntry
 - 
getEntry
 - 
getLocalTime
 - 
setLocalTime
 - 
setEngineBoots
public void setEngineBoots(int engineBoots) Sets the number of engine boots.- Parameters:
 engineBoots- the number of engine boots.- Since:
 - 1.2
 
 - 
getEngineTime
public int getEngineTime()Returns the number of seconds since the value of the engineBoots object last changed. When incrementing this object's value would cause it to exceed its maximum, engineBoots is incremented as if a re-initialization had occurred, and this object's value consequently reverts to zero.- Returns:
 - a positive integer value denoting the number of seconds since the engineBoots value has been changed.
 - Since:
 - 1.2
 
 - 
getEngineBoots
public int getEngineBoots()The number of times that the SNMP engine has (re-)initialized itself since snmpEngineID was last configured.- Returns:
 - the number of SNMP engine reboots.
 
 - 
getTime
 - 
removeEntry
Removes the specified engine ID from the time cache.- Parameters:
 engineID- the engine ID of the remote SNMP engine to remove from this time cache.
 - 
checkEngineID
public int checkEngineID(OctetString engineID, boolean discoveryAllowed, int engineBoots, int engineTime)  - 
checkTime
 - 
reset
public void reset() 
 -