com.sun.jdmk.snmp.mpm
Interface SnmpMsgTranslator

All Known Implementing Classes:
SnmpMsgTranslatorV1V2, SnmpMsgTranslatorV3

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 interface SnmpMsgTranslator

The translator interface is implemented by classes dealing with a specific SNMP protocol version. SnmpMsgTranslator are used in conjunction with SnmpMsgProcessingModel implementations (e.g. SnmpMsgProcessingModelV3).

Since:
Java DMK 5.0

Method Summary
 byte[] getAccessContext(SnmpMsg msg)
          Deprecated. Returns the message access context name.
 byte[] getContextEngineId(SnmpMsg msg)
          Deprecated. Returns the message context Engine Id.
 byte[] getContextName(SnmpMsg msg)
          Deprecated. Returns the message context name.
 byte[] getEncryptedPdu(SnmpMsg msg)
          Deprecated. Returns the message encrypted pdu or null if no encryption.
 byte[] getFlatSecurityParameters(SnmpMsg msg)
          Deprecated. Returns an encoded representation of security parameters contained in the passed msg.
 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. Returns the raw message context name.
 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. Set the context engine Id of the passed message.
 void setContextName(SnmpMsg req, byte[] contextName)
          Deprecated. Set the context name of the passed message.
 

Method Detail

getMsgId

public int getMsgId(SnmpMsg msg)
Deprecated. 
Returns the request or message Id contained in the passed message. The message is a generic one that is narrowed in the object implementing this interface.


getMsgMaxSize

public int getMsgMaxSize(SnmpMsg msg)
Deprecated. 
Returns the response max message size. The message is a generic one that is narrowed in the object implementing this interface.


getMsgFlags

public byte getMsgFlags(SnmpMsg msg)
Deprecated. 
Returns the message flags. The message is a generic one that is narrowed in the object implementing this interface.


getMsgSecurityModel

public int getMsgSecurityModel(SnmpMsg msg)
Deprecated. 
Returns the message security model. The message is a generic one that is narrowed in the object implementing this interface.


getSecurityLevel

public int getSecurityLevel(SnmpMsg msg)
Deprecated. 
Returns the message security level. The message is a generic one that is narrowed in the object implementing this interface.


getFlatSecurityParameters

public byte[] getFlatSecurityParameters(SnmpMsg msg)
Deprecated. 
Returns an encoded representation of security parameters contained in the passed msg. The message is a generic one that is narrowed in the object implementing this interface.


getSecurityParameters

public SnmpSecurityParameters getSecurityParameters(SnmpMsg msg)
Deprecated. 
Returns the message security parameters. The message is a generic one that is narrowed in the object implementing this interface.


getContextEngineId

public byte[] getContextEngineId(SnmpMsg msg)
Deprecated. 
Returns the message context Engine Id. The message is a generic one that is narrowed in the object implementing this interface.


getContextName

public byte[] getContextName(SnmpMsg msg)
Deprecated. 
Returns the message context name. The message is a generic one that is narrowed in the object implementing this interface.


getRawContextName

public byte[] getRawContextName(SnmpMsg msg)
Deprecated. 
Returns the raw message context name. Raw mean as it is received from the network, without translation. It can be useful when some data are piggy backed in the context name.The message is a generic one that is narrowed in the object implementing this interface.


getAccessContext

public byte[] getAccessContext(SnmpMsg msg)
Deprecated. 
Returns the message access context name. This access context name is used when dealing with access rights (e.g. community for V1/V2 or context name for V3).The message is a generic one that is narrowed in the object implementing this interface.


getEncryptedPdu

public byte[] getEncryptedPdu(SnmpMsg msg)
Deprecated. 
Returns the message encrypted pdu or null if no encryption. The message is a generic one that is narrowed in the object implementing this interface.


setContextName

public void setContextName(SnmpMsg req,
                           byte[] contextName)
Deprecated. 
Set the context name of the passed message.


setContextEngineId

public void setContextEngineId(SnmpMsg req,
                               byte[] contextEngineId)
Deprecated. 
Set the context engine Id of the passed message.


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.