com.sun.jdmk.snmp.mpm
Class SnmpMsgProcessingModelV3

java.lang.Object
  extended bycom.sun.jdmk.internal.snmp.SnmpModelImpl
      extended bycom.sun.jdmk.snmp.mpm.SnmpMsgProcessingModelV3
All Implemented Interfaces:
SnmpModel, SnmpMsgProcessingModel

Deprecated. Use package com.sun.management.snmp.mpm in preference to classes in this package. This class may be removed in a future version of Java DMK.

public class SnmpMsgProcessingModelV3
extends SnmpModelImpl
implements SnmpMsgProcessingModel

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.

Since:
Java DMK 5.0

Constructor Summary
SnmpMsgProcessingModelV3(SnmpMsgProcessingSubSystem sys, SnmpMsgTranslator translat)
          Deprecated. Constructor.
 
Method Summary
 SnmpDecryptedPdu decode(byte[] buff)
          Deprecated. 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)
          Deprecated. Look for SnmpMsgProcessingModel interface specification.
 int encode(SnmpDecryptedPdu pdu, byte[] outputBytes)
          Deprecated. Look for SnmpMsgProcessingModel interface specification.
 int encodePriv(int version, int msgId, int msgMaxSize, byte msgFlags, int msgSecurityModel, SnmpSecurityParameters params, byte[] encryptedPdu, byte[] outputBytes)
          Deprecated. Look for SnmpMsgProcessingModel interface specification.
 SnmpIncomingRequest getIncomingRequest(SnmpPduFactory factory)
          Deprecated. Look for SnmpMsgProcessingModel interface specification.
 SnmpIncomingResponse getIncomingResponse(SnmpPduFactory factory)
          Deprecated. Look for SnmpMsgProcessingModel interface specification.
 SnmpMsgTranslator getMsgTranslator()
          Deprecated. Returns the current translator.
 SnmpOutgoingRequest getOutgoingRequest(SnmpPduFactory factory)
          Deprecated. Look for SnmpMsgProcessingModel interface specification.
 SnmpPdu getRequestPdu(SnmpParams p, int command)
          Deprecated. Look for SnmpMsgProcessingModel interface specification.
 void setMsgTranslator(SnmpMsgTranslator translator)
          Deprecated. In order to change the behavior of the translator, set it.
 
Methods inherited from class com.sun.jdmk.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.jdmk.internal.snmp.SnmpModel
getName, getSubSystem
 

Constructor Detail

SnmpMsgProcessingModelV3

public SnmpMsgProcessingModelV3(SnmpMsgProcessingSubSystem sys,
                                SnmpMsgTranslator translat)
Deprecated. 
Constructor. The translator make the translation between SNMP protocol parameters. If the passed translator is null, SnmpMsgTranslatorV3 is the default one used.

Parameters:
sys - The Msg processing subSystem.
translat - The SNMP protocol translator.
Method Detail

setMsgTranslator

public void setMsgTranslator(SnmpMsgTranslator translator)
Deprecated. 
In order to change the behavior of the translator, set it.

Specified by:
setMsgTranslator in interface SnmpMsgProcessingModel
Parameters:
translator - The translator that will be used.

getMsgTranslator

public SnmpMsgTranslator getMsgTranslator()
Deprecated. 
Returns the current translator.

Specified by:
getMsgTranslator in interface SnmpMsgProcessingModel
Returns:
The current translator.

getIncomingRequest

public SnmpIncomingRequest getIncomingRequest(SnmpPduFactory factory)
Deprecated. 
Look for SnmpMsgProcessingModel interface specification.

Specified by:
getIncomingRequest in interface SnmpMsgProcessingModel

getOutgoingRequest

public SnmpOutgoingRequest getOutgoingRequest(SnmpPduFactory factory)
Deprecated. 
Look for SnmpMsgProcessingModel interface specification.

Specified by:
getOutgoingRequest in interface SnmpMsgProcessingModel

getIncomingResponse

public SnmpIncomingResponse getIncomingResponse(SnmpPduFactory factory)
Deprecated. 
Look for SnmpMsgProcessingModel interface specification.

Specified by:
getIncomingResponse in interface SnmpMsgProcessingModel

getRequestPdu

public SnmpPdu getRequestPdu(SnmpParams p,
                             int command)
                      throws SnmpStatusException
Deprecated. 
Look for SnmpMsgProcessingModel interface specification.

Specified by:
getRequestPdu in interface SnmpMsgProcessingModel
Throws:
SnmpStatusException

encodePriv

public int encodePriv(int version,
                      int msgId,
                      int msgMaxSize,
                      byte msgFlags,
                      int msgSecurityModel,
                      SnmpSecurityParameters params,
                      byte[] encryptedPdu,
                      byte[] outputBytes)
               throws SnmpTooBigException
Deprecated. 
Look for SnmpMsgProcessingModel interface specification.

Specified by:
encodePriv in interface SnmpMsgProcessingModel
Throws:
SnmpTooBigException

encode

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
Deprecated. 
Look for SnmpMsgProcessingModel interface specification.

Specified by:
encode in interface SnmpMsgProcessingModel
Throws:
SnmpTooBigException

decode

public SnmpDecryptedPdu decode(byte[] buff)
                                                   throws SnmpStatusException
Deprecated. 
Look for SnmpMsgProcessingModel interface specification.

Specified by:
decode in interface SnmpMsgProcessingModel
Throws:
SnmpStatusException

encode

public int encode(SnmpDecryptedPdu pdu,
                  byte[] outputBytes)
           throws SnmpTooBigException
Deprecated. 
Look for SnmpMsgProcessingModel interface specification.

Specified by:
encode in interface SnmpMsgProcessingModel
Throws:
SnmpTooBigException

FCS Release
jdmk-5_1-b34.2 2005.11.29_16:24:00_MET

Copyright 1998-2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.