|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.snmp4j.security.UsmTimeTable
public class UsmTimeTable
The UsmTimeTable
class is a singleton that stores USM user
information as part of the Local Configuration Datastore (LCD).
Constructor Summary | |
---|---|
UsmTimeTable(OctetString localEngineID,
int engineBoots)
|
Method Summary | |
---|---|
void |
addEntry(UsmTimeEntry entry)
|
int |
checkEngineID(OctetString engineID,
boolean discoveryAllowed)
|
int |
checkTime(UsmTimeEntry entry)
|
int |
getEngineBoots()
The number of times that the SNMP engine has (re-)initialized itself since snmpEngineID was last configured. |
int |
getEngineTime()
Returns the number of seconds since the value of the engineBoots object last changed. |
UsmTimeEntry |
getEntry(OctetString engineID)
|
UsmTimeEntry |
getLocalTime()
|
UsmTimeEntry |
getTime(OctetString engineID)
|
void |
removeEntry(OctetString engineID)
Removes the specified engine ID from the time cache. |
void |
reset()
|
void |
setEngineBoots(int engineBoots)
Sets the number of engine boots. |
void |
setLocalTime(UsmTimeEntry localTime)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UsmTimeTable(OctetString localEngineID, int engineBoots)
Method Detail |
---|
public void addEntry(UsmTimeEntry entry)
public UsmTimeEntry getEntry(OctetString engineID)
public UsmTimeEntry getLocalTime()
public void setLocalTime(UsmTimeEntry localTime)
public void setEngineBoots(int engineBoots)
engineBoots
- the number of engine boots.public int getEngineTime()
public int getEngineBoots()
public UsmTimeEntry getTime(OctetString engineID)
public void removeEntry(OctetString engineID)
engineID
- the engine ID of the remote SNMP engine to remove from this time cache.public int checkEngineID(OctetString engineID, boolean discoveryAllowed)
public int checkTime(UsmTimeEntry entry)
public void reset()
|
Copyright 2005-2010 Frank Fock (SNMP4J.org) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |