|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sun.jdmk.snmp.mpm.SnmpMsgTranslatorV1V2
com.sun.management.snmp.mpm in
preference to classes in this package. This class may be removed
in a future version of Java DMK.
This translator is dedicated to translate V1 V2 parameters in the context of SNMP V3 messages. It infers some parameters such as context name and context engine Id.
| Constructor Summary | |
SnmpMsgTranslatorV1V2(SnmpEngine engine)
Deprecated. |
|
| Method Summary | |
byte[] |
getAccessContext(SnmpMsg msg)
Deprecated. The access context (used in IP ACL) is the community string. |
byte[] |
getContextEngineId(SnmpMsg msg)
Deprecated. Context engine Id is ALL THE TIME the local one. |
byte[] |
getContextName(SnmpMsg msg)
Deprecated. A context name can be added at the end of the community string via @ separator. |
byte[] |
getEncryptedPdu(SnmpMsg msg)
Deprecated. No encryption, returns null. |
byte[] |
getFlatSecurityParameters(SnmpMsg msg)
Deprecated. The IP address is used as the ACL key. |
byte |
getMsgFlags(SnmpMsg msg)
Deprecated. Returns the message flags. |
int |
getMsgId(SnmpMsg msg)
Deprecated. Returns the request or message Id contained in the passed message. |
int |
getMsgMaxSize(SnmpMsg msg)
Deprecated. Returns the response max message size. |
int |
getMsgSecurityModel(SnmpMsg msg)
Deprecated. Returns the message security model. |
byte[] |
getRawContextName(SnmpMsg msg)
Deprecated. The received community string contains : The context Name + the access context (via @ separator). |
int |
getSecurityLevel(SnmpMsg msg)
Deprecated. Returns the message security level. |
SnmpSecurityParameters |
getSecurityParameters(SnmpMsg msg)
Deprecated. Returns the message security parameters. |
void |
setContextEngineId(SnmpMsg req,
byte[] contextEngineId)
Deprecated. Does nothing, is used in V3 to set the context engine id after decryption. |
void |
setContextName(SnmpMsg req,
byte[] contextName)
Deprecated. Does nothing, is used in V3 to set the context name after decryption. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SnmpMsgTranslatorV1V2(SnmpEngine engine)
| Method Detail |
public int getMsgId(SnmpMsg msg)
SnmpMsgTranslator
getMsgId in interface SnmpMsgTranslatorpublic int getMsgMaxSize(SnmpMsg msg)
SnmpMsgTranslator
getMsgMaxSize in interface SnmpMsgTranslatorpublic byte getMsgFlags(SnmpMsg msg)
SnmpMsgTranslator
getMsgFlags in interface SnmpMsgTranslatorpublic int getSecurityLevel(SnmpMsg msg)
SnmpMsgTranslator
getSecurityLevel in interface SnmpMsgTranslatorpublic int getMsgSecurityModel(SnmpMsg msg)
SnmpMsgTranslator
getMsgSecurityModel in interface SnmpMsgTranslatorpublic SnmpSecurityParameters getSecurityParameters(SnmpMsg msg)
SnmpMsgTranslator
getSecurityParameters in interface SnmpMsgTranslatorpublic byte[] getFlatSecurityParameters(SnmpMsg msg)
getFlatSecurityParameters in interface SnmpMsgTranslatorpublic byte[] getContextEngineId(SnmpMsg msg)
getContextEngineId in interface SnmpMsgTranslatorpublic byte[] getRawContextName(SnmpMsg msg)
getRawContextName in interface SnmpMsgTranslatorpublic byte[] getContextName(SnmpMsg msg)
getContextName in interface SnmpMsgTranslatorpublic byte[] getAccessContext(SnmpMsg msg)
getAccessContext in interface SnmpMsgTranslatorpublic byte[] getEncryptedPdu(SnmpMsg msg)
getEncryptedPdu in interface SnmpMsgTranslator
public void setContextName(SnmpMsg req,
byte[] contextName)
setContextName in interface SnmpMsgTranslator
public void setContextEngineId(SnmpMsg req,
byte[] contextEngineId)
setContextEngineId in interface SnmpMsgTranslator
|
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 | ||||||||||