Methods Summary |
---|
public SnmpDecryptedPdu | decode(int version, 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. It will be routed to the dedicated model according to the version value.
|
public int | encode(int version, SnmpDecryptedPdu pdu, byte[] outputBytes)This method returns an encoded scoped pdu. This method encodes only the contextEngineID , contextName and data. It is needed by the SnmpSecurityModel for decryption. It will be routed to the dedicated model according to the version value.
|
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 as not been encrypted. contextName , contextEngineID and data are known. It will be routed to the dedicated model according to the version value.
The specified parameters are defined in RFC 2572 (see also the {@link com.sun.jmx.snmp.SnmpV3Message} class).
|
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 not known. It will be routed to the dedicated model according to the version value.
The specified parameters are defined in RFC 2572 (see also the {@link com.sun.jmx.snmp.SnmpV3Message} class).
|
public SnmpIncomingRequest | getIncomingRequest(int model, com.sun.jmx.snmp.SnmpPduFactory factory)This method is called when a call is received from the network.
|
public SnmpIncomingResponse | getIncomingResponse(int model, com.sun.jmx.snmp.SnmpPduFactory factory)This method is called when a call is received from the network. The sub system routes the call to the dedicated model according to the model ID.
|
public SnmpOutgoingRequest | getOutgoingRequest(int model, com.sun.jmx.snmp.SnmpPduFactory factory)This method is called when a call is to be sent to the network. The sub system routes the call to the dedicated model according to the model ID.
|
public com.sun.jmx.snmp.SnmpPdu | getRequestPdu(int model, com.sun.jmx.snmp.SnmpParams p, int type)This method is called to instantiate a pdu according to the passed pdu type and parameters. The sub system routes the call to the dedicated model according to the model ID.
|
public SnmpSecuritySubSystem | getSecuritySubSystem()Gets the attached security sub system.
|
public void | setSecuritySubSystem(SnmpSecuritySubSystem security)Attaches the security sub system to this sub system. Message processing model are making usage of various security sub systems. This direct attachement avoid the need of accessing the engine to retrieve the Security sub system.
|