|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sun.jdmk.internal.snmp.SnmpModelImpl
com.sun.jdmk.snmp.usm.SnmpUserSecurityModel
com.sun.management.snmp.usm in
preference to classes in this package. This class may be removed
in a future version of Java DMK.
FOR INTERNAL USE ONLY. This is the default implementation of the User
Security Model defined in RFC 2574, "Usm for Snmp V3".
It handles timeliness, authentication and encryption.
It is compliant with the defined public interface SnmpUsm.
It can be replaced by any Usm compliant model.
It manages a set of distant engine status (in case of manager use).
These engine proxies are storing the distant timeliness related status.
| Field Summary |
| Fields inherited from interface com.sun.jdmk.snmp.usm.SnmpUsm |
ID, MAX_NB_BOOTS, TIME_WINDOW, usmNoAuthProtocol, usmNoPrivProtocol, usmStatsDecryptionErrors, usmStatsNotInTimeWindows, usmStatsUnknownEngineIds, usmStatsUnknownUserNames, usmStatsUnsupportedSecLevels, usmStatsWrongDigests |
| Constructor Summary | |
SnmpUserSecurityModel(SnmpSubSystem subsys,
SnmpUsmLcd snmplcd)
Deprecated. Constructor. |
|
| Method Summary | |
SnmpSecurityCache |
createSecurityCache()
Deprecated. See SnmpSecurityModel interface for doc. |
SnmpUsmSecurityParameters |
createUsmSecurityParameters()
Deprecated. Instantiates the SecurityParameters. |
int |
generateRequestMsg(SnmpSecurityCache cache,
int version,
int msgId,
int msgMaxSize,
byte msgFlags,
int msgSecurityModel,
SnmpSecurityParameters p,
byte[] contextEngineId,
byte[] contextName,
byte[] data,
int dataLength,
byte[] outputBytes)
Deprecated. See SnmpSecurityModel interface for doc. |
int |
generateResponseMsg(SnmpSecurityCache cache,
int version,
int msgId,
int msgMaxSize,
byte msgFlags,
int msgSecurityModel,
SnmpSecurityParameters p,
byte[] contextEngineId,
byte[] contextName,
byte[] data,
int dataLength,
byte[] outputBytes)
Deprecated. See SnmpSecurityModel interface for doc. |
Long |
getDecryptionErrorsCounter()
Deprecated. Gets the decryptionErrorsCounter. |
SnmpUsmEnginePeer |
getEnginePeer(SnmpEngineId id)
Deprecated. Gets the peer associated with the passed engine Id. |
SnmpUsmLcd |
getLcd()
Deprecated. Gets the Lcd. |
Long |
getNotInTimeWindowsCounter()
Deprecated. Gets the notInTimeWindowsCounter. |
int |
getTimelinessWindow()
Deprecated. Get the time window used for timeliness checks. |
Long |
getUnknownEngineIdsCounter()
Deprecated. Gets the unknownEngineIdsCounter. |
Long |
getUnknownUserNamesCounter()
Deprecated. Gets the unknownUserNamesCounter. |
Long |
getUnsupportedSecLevelsCounter()
Deprecated. Gets the unsupportedSecLevelsCounter. |
Long |
getWrongDigestsCounter()
Deprecated. Gets the wrongDigestsCounter. |
SnmpSecurityParameters |
processIncomingRequest(SnmpSecurityCache cache,
int version,
int msgId,
int msgMaxSize,
byte msgFlags,
int msgSecurityModel,
byte[] msgSecurityParameters,
byte[] contextEngineId,
byte[] contextName,
byte[] data,
byte[] encryptedPdu,
SnmpDecryptedPdu decryptedPdu)
Deprecated. See SnmpSecurityModel interface for doc. |
SnmpSecurityParameters |
processIncomingResponse(SnmpSecurityCache cache,
int version,
int msgId,
int msgMaxSize,
byte msgFlags,
int msgSecurityModel,
byte[] msgSecurityParameters,
byte[] contextEngineId,
byte[] contextName,
byte[] data,
byte[] encryptedPdu,
SnmpDecryptedPdu decryptedPdu)
Deprecated. See SnmpSecurityModel interface for doc. |
void |
releaseSecurityCache(SnmpSecurityCache cache)
Deprecated. See SnmpSecurityModel interface for doc. |
void |
setLcd(SnmpUsmLcd lcd)
Deprecated. Sets the specified Lcd. |
void |
setTimelinessWindow(int t)
Deprecated. Set the time window used for timeliness checks. |
| Methods inherited from class com.sun.jdmk.internal.snmp.SnmpModelImpl |
getName, getSubSystem |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sun.jdmk.internal.snmp.SnmpModel |
getName, getSubSystem |
| Constructor Detail |
public SnmpUserSecurityModel(SnmpSubSystem subsys,
SnmpUsmLcd snmplcd)
| Method Detail |
public int getTimelinessWindow()
SnmpUsm.TIMEWINDOW is the default used.
getTimelinessWindow in interface SnmpUsmpublic void setTimelinessWindow(int t)
SnmpUsm.TIMEWINDOW is the default used.
setTimelinessWindow in interface SnmpUsmt - The time window in seconds.public SnmpUsmLcd getLcd()
getLcd in interface SnmpUsmpublic void setLcd(SnmpUsmLcd lcd)
setLcd in interface SnmpUsmlcd - The Lcd.public Long getUnsupportedSecLevelsCounter()
unsupportedSecLevelsCounter.
getUnsupportedSecLevelsCounter in interface SnmpUsmunsupportedSecLevelsCounter.public Long getNotInTimeWindowsCounter()
notInTimeWindowsCounter.
getNotInTimeWindowsCounter in interface SnmpUsmnotInTimeWindowsCounter.public Long getUnknownUserNamesCounter()
unknownUserNamesCounter.
getUnknownUserNamesCounter in interface SnmpUsmunknownUserNamesCounter.public Long getUnknownEngineIdsCounter()
unknownEngineIdsCounter.
getUnknownEngineIdsCounter in interface SnmpUsmunknownEngineIdsCounter.public Long getWrongDigestsCounter()
wrongDigestsCounter.
getWrongDigestsCounter in interface SnmpUsmwrongDigestsCounter.public Long getDecryptionErrorsCounter()
decryptionErrorsCounter.
getDecryptionErrorsCounter in interface SnmpUsmdecryptionErrorsCounter.public SnmpUsmEnginePeer getEnginePeer(SnmpEngineId id)
getEnginePeer in interface SnmpUsmid - The SNMP engine Id.
public SnmpUsmSecurityParameters createUsmSecurityParameters()
SecurityParameters.
createUsmSecurityParameters in interface SnmpUsmpublic SnmpSecurityCache createSecurityCache()
SnmpSecurityModel interface for doc.
createSecurityCache in interface SnmpSecurityModelpublic void releaseSecurityCache(SnmpSecurityCache cache)
SnmpSecurityModel interface for doc.
releaseSecurityCache in interface SnmpSecurityModel
public int generateResponseMsg(SnmpSecurityCache cache,
int version,
int msgId,
int msgMaxSize,
byte msgFlags,
int msgSecurityModel,
SnmpSecurityParameters p,
byte[] contextEngineId,
byte[] contextName,
byte[] data,
int dataLength,
byte[] outputBytes)
throws SnmpTooBigException,
SnmpStatusException,
SnmpSecurityException
SnmpSecurityModel interface for doc.
generateResponseMsg in interface SnmpSecurityModelSnmpTooBigException
SnmpStatusException
SnmpSecurityException
public int generateRequestMsg(SnmpSecurityCache cache,
int version,
int msgId,
int msgMaxSize,
byte msgFlags,
int msgSecurityModel,
SnmpSecurityParameters p,
byte[] contextEngineId,
byte[] contextName,
byte[] data,
int dataLength,
byte[] outputBytes)
throws SnmpTooBigException,
SnmpStatusException,
SnmpSecurityException
SnmpSecurityModel interface for doc.
generateRequestMsg in interface SnmpSecurityModelSnmpTooBigException
SnmpStatusException
SnmpSecurityException
public SnmpSecurityParameters processIncomingRequest(SnmpSecurityCache cache,
int version,
int msgId,
int msgMaxSize,
byte msgFlags,
int msgSecurityModel,
byte[] msgSecurityParameters,
byte[] contextEngineId,
byte[] contextName,
byte[] data,
byte[] encryptedPdu,
SnmpDecryptedPdu decryptedPdu)
throws SnmpStatusException,
SnmpSecurityException
SnmpSecurityModel interface for doc.
processIncomingRequest in interface SnmpSecurityModelSnmpStatusException
SnmpSecurityException
public SnmpSecurityParameters processIncomingResponse(SnmpSecurityCache cache,
int version,
int msgId,
int msgMaxSize,
byte msgFlags,
int msgSecurityModel,
byte[] msgSecurityParameters,
byte[] contextEngineId,
byte[] contextName,
byte[] data,
byte[] encryptedPdu,
SnmpDecryptedPdu decryptedPdu)
throws SnmpStatusException,
SnmpSecurityException
SnmpSecurityModel interface for doc.
processIncomingResponse in interface SnmpSecurityModelSnmpStatusException
SnmpSecurityException
|
FCS Release jdmk-5_1-b34.1 2005.02.10_16:46:09_MET |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||