|
||||||||||
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.mpm.SnmpMsgProcessingModelV3
public class SnmpMsgProcessingModelV3
Defines an implementation of the SnmpMsgProcessingModel
interface.
This message processing model is responsible for dealing with SNMP V3 protocol marshalling and unmarshalling. It uses a dedicated translator object that handle V3 parameters.
Constructor Summary | |
---|---|
SnmpMsgProcessingModelV3(com.sun.management.internal.snmp.SnmpMsgProcessingSubSystem sys,
SnmpMsgTranslator translat)
Constructor. |
Method Summary | |
---|---|
com.sun.management.internal.snmp.SnmpDecryptedPdu |
decode(byte[] buff)
Look for SnmpMsgProcessingModel interface specification. |
int |
encode(int version,
int msgId,
int msgMaxSize,
byte msgFlags,
int msgSecurityModel,
SnmpSecurityParameters params,
byte[] contextEngineId,
byte[] contextName,
byte[] data,
int dataLength,
byte[] outputBytes)
Look for SnmpMsgProcessingModel interface specification. |
int |
encode(com.sun.management.internal.snmp.SnmpDecryptedPdu pdu,
byte[] outputBytes)
Look for SnmpMsgProcessingModel interface specification. |
int |
encodePriv(int version,
int msgId,
int msgMaxSize,
byte msgFlags,
int msgSecurityModel,
SnmpSecurityParameters params,
byte[] encryptedPdu,
byte[] outputBytes)
Look for SnmpMsgProcessingModel interface specification. |
com.sun.management.internal.snmp.SnmpIncomingRequest |
getIncomingRequest(SnmpPduFactory factory)
Look for SnmpMsgProcessingModel interface specification. |
com.sun.management.internal.snmp.SnmpIncomingResponse |
getIncomingResponse(SnmpPduFactory factory)
Look for SnmpMsgProcessingModel interface specification. |
SnmpMsgTranslator |
getMsgTranslator()
Returns the current translator. |
com.sun.management.internal.snmp.SnmpOutgoingRequest |
getOutgoingRequest(SnmpPduFactory factory)
Look for SnmpMsgProcessingModel interface specification. |
SnmpPdu |
getRequestPdu(SnmpParams p,
int command)
Look for SnmpMsgProcessingModel interface specification. |
void |
setMsgTranslator(SnmpMsgTranslator translator)
In order to change the behavior of the translator, set it. |
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 SnmpMsgProcessingModelV3(com.sun.management.internal.snmp.SnmpMsgProcessingSubSystem sys, SnmpMsgTranslator translat)
SnmpMsgTranslatorV3
is the default one used.
sys
- The Msg processing subSystem.translat
- The SNMP protocol translator.Method Detail |
---|
public void setMsgTranslator(SnmpMsgTranslator translator)
setMsgTranslator
in interface com.sun.management.internal.snmp.SnmpMsgProcessingModel
translator
- The translator that will be used.public SnmpMsgTranslator getMsgTranslator()
getMsgTranslator
in interface com.sun.management.internal.snmp.SnmpMsgProcessingModel
public com.sun.management.internal.snmp.SnmpIncomingRequest getIncomingRequest(SnmpPduFactory factory)
SnmpMsgProcessingModel
interface specification.
getIncomingRequest
in interface com.sun.management.internal.snmp.SnmpMsgProcessingModel
factory
- The pdu factory to use to encode and decode pdu.
public com.sun.management.internal.snmp.SnmpOutgoingRequest getOutgoingRequest(SnmpPduFactory factory)
SnmpMsgProcessingModel
interface specification.
getOutgoingRequest
in interface com.sun.management.internal.snmp.SnmpMsgProcessingModel
factory
- The pdu factory to use to encode and decode pdu.
public com.sun.management.internal.snmp.SnmpIncomingResponse getIncomingResponse(SnmpPduFactory factory)
SnmpMsgProcessingModel
interface specification.
getIncomingResponse
in interface com.sun.management.internal.snmp.SnmpMsgProcessingModel
factory
- The pdu factory to use to encode and decode pdu.
public SnmpPdu getRequestPdu(SnmpParams p, int command) throws SnmpStatusException
SnmpMsgProcessingModel
interface specification.
getRequestPdu
in interface com.sun.management.internal.snmp.SnmpMsgProcessingModel
p
- The request parameters.command
- The pdu type.
SnmpStatusException
public int encodePriv(int version, int msgId, int msgMaxSize, byte msgFlags, int msgSecurityModel, SnmpSecurityParameters params, byte[] encryptedPdu, byte[] outputBytes) throws SnmpTooBigException
SnmpMsgProcessingModel
interface specification.
encodePriv
in interface com.sun.management.internal.snmp.SnmpMsgProcessingModel
version
- The SNMP protocol version.msgId
- The SNMP message ID.msgMaxSize
- The max message size.msgFlags
- The message flags.msgSecurityModel
- The message security model.params
- The security parameters.encryptedPdu
- The encrypted pdu.outputBytes
- The buffer containing the encoded message.
SnmpTooBigException
public int encode(int version, int msgId, int msgMaxSize, byte msgFlags, int msgSecurityModel, SnmpSecurityParameters params, byte[] contextEngineId, byte[] contextName, byte[] data, int dataLength, byte[] outputBytes) throws SnmpTooBigException
SnmpMsgProcessingModel
interface specification.
encode
in interface com.sun.management.internal.snmp.SnmpMsgProcessingModel
version
- The SNMP protocol version.msgId
- The SNMP message ID.msgMaxSize
- The max message size.msgFlags
- The message flags.msgSecurityModel
- The message security model.params
- The security parameters.contextEngineId
- The context engine ID.contextName
- The context name.data
- The encoded data.dataLength
- The encoded data length.outputBytes
- The buffer containing the encoded message.
SnmpTooBigException
public com.sun.management.internal.snmp.SnmpDecryptedPdu decode(byte[] buff) throws SnmpStatusException
SnmpMsgProcessingModel
interface specification.
decode
in interface com.sun.management.internal.snmp.SnmpMsgProcessingModel
buff
- The encoded pdu.
SnmpStatusException
public int encode(com.sun.management.internal.snmp.SnmpDecryptedPdu pdu, byte[] outputBytes) throws SnmpTooBigException
SnmpMsgProcessingModel
interface specification.
encode
in interface com.sun.management.internal.snmp.SnmpMsgProcessingModel
pdu
- The pdu to encode.outputBytes
- The partially scoped pdu.
SnmpTooBigException
|
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 |