|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.management.internal.snmp.SnmpModelImpl
com.sun.management.snmp.usm.SnmpUserSecurityModel
public class SnmpUserSecurityModel
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.management.snmp.usm.SnmpUsm |
|---|
ID, MAX_NB_BOOTS, TIME_WINDOW, usmNoAuthProtocol, usmNoPrivProtocol, usmStatsDecryptionErrors, usmStatsNotInTimeWindows, usmStatsUnknownEngineIds, usmStatsUnknownUserNames, usmStatsUnsupportedSecLevels, usmStatsWrongDigests |
| Constructor Summary | |
|---|---|
SnmpUserSecurityModel(com.sun.management.internal.snmp.SnmpSubSystem subsys,
SnmpUsmLcd snmplcd)
Constructor. |
|
| Method Summary | |
|---|---|
com.sun.management.internal.snmp.SnmpSecurityCache |
createSecurityCache()
See SnmpSecurityModel interface for doc. |
SnmpUsmSecurityParameters |
createUsmSecurityParameters()
Instantiates the SecurityParameters. |
int |
generateRequestMsg(com.sun.management.internal.snmp.SnmpSecurityCache cache,
int version,
int msgId,
int msgMaxSize,
byte msgFlags,
int msgSecurityModel,
SnmpSecurityParameters p,
byte[] contextEngineId,
byte[] contextName,
byte[] data,
int dataLength,
byte[] outputBytes)
See SnmpSecurityModel interface for doc. |
int |
generateResponseMsg(com.sun.management.internal.snmp.SnmpSecurityCache cache,
int version,
int msgId,
int msgMaxSize,
byte msgFlags,
int msgSecurityModel,
SnmpSecurityParameters p,
byte[] contextEngineId,
byte[] contextName,
byte[] data,
int dataLength,
byte[] outputBytes)
See SnmpSecurityModel interface for doc. |
Long |
getDecryptionErrorsCounter()
Gets the decryptionErrorsCounter. |
SnmpUsmEnginePeer |
getEnginePeer(SnmpEngineId id)
Gets the peer associated with the passed engine Id. |
SnmpUsmLcd |
getLcd()
Gets the Lcd. |
Long |
getNotInTimeWindowsCounter()
Gets the notInTimeWindowsCounter. |
int |
getTimelinessWindow()
Get the time window used for timeliness checks. |
Long |
getUnknownEngineIdsCounter()
Gets the unknownEngineIdsCounter. |
Long |
getUnknownUserNamesCounter()
Gets the unknownUserNamesCounter. |
Long |
getUnsupportedSecLevelsCounter()
Gets the unsupportedSecLevelsCounter. |
Long |
getWrongDigestsCounter()
Gets the wrongDigestsCounter. |
SnmpSecurityParameters |
processIncomingRequest(com.sun.management.internal.snmp.SnmpSecurityCache cache,
int version,
int msgId,
int msgMaxSize,
byte msgFlags,
int msgSecurityModel,
byte[] msgSecurityParameters,
byte[] contextEngineId,
byte[] contextName,
byte[] data,
byte[] encryptedPdu,
com.sun.management.internal.snmp.SnmpDecryptedPdu decryptedPdu)
See SnmpSecurityModel interface for doc. |
SnmpSecurityParameters |
processIncomingResponse(com.sun.management.internal.snmp.SnmpSecurityCache cache,
int version,
int msgId,
int msgMaxSize,
byte msgFlags,
int msgSecurityModel,
byte[] msgSecurityParameters,
byte[] contextEngineId,
byte[] contextName,
byte[] data,
byte[] encryptedPdu,
com.sun.management.internal.snmp.SnmpDecryptedPdu decryptedPdu)
See SnmpSecurityModel interface for doc. |
void |
releaseSecurityCache(com.sun.management.internal.snmp.SnmpSecurityCache cache)
See SnmpSecurityModel interface for doc. |
void |
setLcd(SnmpUsmLcd lcd)
Sets the specified Lcd. |
void |
setTimelinessWindow(int t)
Set the time window used for timeliness checks. |
| Methods inherited from class com.sun.management.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.management.internal.snmp.SnmpModel |
|---|
getName, getSubSystem |
| Constructor Detail |
|---|
public SnmpUserSecurityModel(com.sun.management.internal.snmp.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 com.sun.management.internal.snmp.SnmpSecurityCache createSecurityCache()
SnmpSecurityModel interface for doc.
createSecurityCache in interface com.sun.management.internal.snmp.SnmpSecurityModelpublic void releaseSecurityCache(com.sun.management.internal.snmp.SnmpSecurityCache cache)
SnmpSecurityModel interface for doc.
releaseSecurityCache in interface com.sun.management.internal.snmp.SnmpSecurityModelcache - The security cache to release.
public int generateResponseMsg(com.sun.management.internal.snmp.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 com.sun.management.internal.snmp.SnmpSecurityModelcache - The cache that has been created by calling createSecurityCache on this model.version - The SNMP protocol version.msgId - The current request id.msgMaxSize - The message max size.msgFlags - The message flags (reportable, authentication and privacy)msgSecurityModel - This current security model.p - The security parameters that contain the model dependent parameters.contextEngineId - The context engine ID.contextName - The context name.data - The marshalled varbind list.dataLength - The marshalled varbind list length.outputBytes - The buffer to fill with secured request. This is a representation independent marshalled format. This buffer will be sent to the network.
SnmpTooBigException
SnmpStatusException
SnmpSecurityException
public int generateRequestMsg(com.sun.management.internal.snmp.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 com.sun.management.internal.snmp.SnmpSecurityModelcache - The cache that has been created by calling createSecurityCache on this model.version - The SNMP protocol version.msgId - The current request id.msgMaxSize - The message max size.msgFlags - The message flags (reportable, authentication and privacy).msgSecurityModel - This current security model.p - The security parameters that contain the model dependent parameters.contextEngineId - The context engine ID.contextName - The context name.data - The marshalled varbind list.dataLength - The marshalled varbind list length.outputBytes - The buffer to fill with secured request. This is a representation independent marshalled format. This buffer will be sent to the network.
SnmpTooBigException
SnmpStatusException
SnmpSecurityException
public SnmpSecurityParameters processIncomingRequest(com.sun.management.internal.snmp.SnmpSecurityCache cache,
int version,
int msgId,
int msgMaxSize,
byte msgFlags,
int msgSecurityModel,
byte[] msgSecurityParameters,
byte[] contextEngineId,
byte[] contextName,
byte[] data,
byte[] encryptedPdu,
com.sun.management.internal.snmp.SnmpDecryptedPdu decryptedPdu)
throws SnmpStatusException,
SnmpSecurityException
SnmpSecurityModel interface for doc.
processIncomingRequest in interface com.sun.management.internal.snmp.SnmpSecurityModelcache - The cache that has been created by calling createSecurityCache on this model.version - The SNMP protocol version.msgId - The current request id.msgMaxSize - The message max size.msgFlags - The message flags (reportable, authentication and privacy)msgSecurityModel - This current security model.msgSecurityParameters - The security parameters in a marshalled format. The informations contained in this array are model dependent.contextEngineId - The context engine ID or null if encrypted.contextName - The context name or null if encrypted.data - The marshalled varbind list or null if encryptedencryptedPdu - The encrypted pdu or null if not encrypted.decryptedPdu - The decrypted pdu. If no decryption is to be done, the passed context engine ID, context name and data could be used to fill this object.
SnmpStatusException
SnmpSecurityException
public SnmpSecurityParameters processIncomingResponse(com.sun.management.internal.snmp.SnmpSecurityCache cache,
int version,
int msgId,
int msgMaxSize,
byte msgFlags,
int msgSecurityModel,
byte[] msgSecurityParameters,
byte[] contextEngineId,
byte[] contextName,
byte[] data,
byte[] encryptedPdu,
com.sun.management.internal.snmp.SnmpDecryptedPdu decryptedPdu)
throws SnmpStatusException,
SnmpSecurityException
SnmpSecurityModel interface for doc.
processIncomingResponse in interface com.sun.management.internal.snmp.SnmpSecurityModelcache - The cache that has been created by calling createSecurityCache on this model.version - The SNMP protocol version.msgId - The current request id.msgMaxSize - The message max size.msgFlags - The message flags (reportable, authentication and privacy)msgSecurityModel - This current security model.msgSecurityParameters - The security parameters in a marshalled format. The informations contained in this array are model dependent.contextEngineId - The context engine ID or null if encrypted.contextName - The context name or null if encrypted.data - The marshalled varbind list or null if encryptedencryptedPdu - The encrypted pdu or null if not encrypted.decryptedPdu - The decrypted pdu. If no decryption is to be done, the passed context engine ID, context name and data could be used to fill this object.
SnmpStatusException
SnmpSecurityException
|
Open Source build 02 opendmk-1.0-b02 2007.10.01_19:17:46_MEST |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||