Methods Summary |
---|
public SnmpDecryptedPdu | decode(byte[] pdu)This method returns a decoded scoped pdu. This method decodes only the contextEngineID , contextName and data. It is needed by the SnmpSecurityModel after decryption.
|
public int | encode(int version, int msgID, int msgMaxSize, byte msgFlags, int msgSecurityModel, com.sun.jmx.snmp.SnmpSecurityParameters params, byte[] contextEngineID, byte[] contextName, byte[] data, int dataLength, byte[] outputBytes)This method is called to encode a full scoped pdu that has not been encrypted. contextName , contextEngineID and data are known.
The specified parameters are defined in RFC 2572 (see also the {@link com.sun.jmx.snmp.SnmpV3Message} class).
|
public int | encode(SnmpDecryptedPdu pdu, byte[] outputBytes)This method returns an encoded scoped pdu. This method encode only the contextEngineID , contextName and data. It is needed by the SnmpSecurityModel for decryption.
|
public int | encodePriv(int version, int msgID, int msgMaxSize, byte msgFlags, int msgSecurityModel, com.sun.jmx.snmp.SnmpSecurityParameters params, byte[] encryptedPdu, byte[] outputBytes)This method is called to encode a full scoped pdu that as been encrypted. contextName , contextEngineID and data are known.
The specified parameters are defined in RFC 2572 (see also the {@link com.sun.jmx.snmp.SnmpV3Message} class).
|
public SnmpIncomingRequest | getIncomingRequest(com.sun.jmx.snmp.SnmpPduFactory factory)This method is called when a call is received from the network.
|
public SnmpIncomingResponse | getIncomingResponse(com.sun.jmx.snmp.SnmpPduFactory factory)This method is called when a response is received from the network.
|
public com.sun.jmx.snmp.mpm.SnmpMsgTranslator | getMsgTranslator()Returns the current translator.
|
public SnmpOutgoingRequest | getOutgoingRequest(com.sun.jmx.snmp.SnmpPduFactory factory)This method is called when a call is to be sent to the network.
|
public com.sun.jmx.snmp.SnmpPdu | getRequestPdu(com.sun.jmx.snmp.SnmpParams p, int type)This method is called to instantiate a pdu according to the passed pdu type and parameters.
|
public void | setMsgTranslator(com.sun.jmx.snmp.mpm.SnmpMsgTranslator translator)In order to change the behavior of the translator, set it.
|