com.sun.management.snmp.mpm
Class SnmpMsgTranslatorV3

java.lang.Object
  extended by com.sun.management.snmp.mpm.SnmpMsgTranslatorV3
All Implemented Interfaces:
SnmpMsgTranslator

public class SnmpMsgTranslatorV3
extends Object
implements SnmpMsgTranslator

This translator is dedicated to translate V3 parameters. No translation is needed. V3 message contains all the needed infos. No computation is done. It is a wrapper to fit the SnmpIncomingRequest translator pattern.

Since:
Java DMK 5.1

Constructor Summary
SnmpMsgTranslatorV3()
           
 
Method Summary
 byte[] getAccessContext(SnmpMsg msg)
          See SnmpMsgTranslator interface doc.
 byte[] getContextEngineId(SnmpMsg msg)
          See SnmpMsgTranslator interface doc.
 byte[] getContextName(SnmpMsg msg)
          See SnmpMsgTranslator interface doc.
 byte[] getEncryptedPdu(SnmpMsg msg)
          See SnmpMsgTranslator interface doc.
 byte[] getFlatSecurityParameters(SnmpMsg msg)
          See SnmpMsgTranslator interface doc.
 byte getMsgFlags(SnmpMsg msg)
          See SnmpMsgTranslator interface doc.
 int getMsgId(SnmpMsg msg)
          See SnmpMsgTranslator interface doc.
 int getMsgMaxSize(SnmpMsg msg)
          See SnmpMsgTranslator interface doc.
 int getMsgSecurityModel(SnmpMsg msg)
          See SnmpMsgTranslator interface doc.
 byte[] getRawContextName(SnmpMsg msg)
          See SnmpMsgTranslator interface doc.
 int getSecurityLevel(SnmpMsg msg)
          See SnmpMsgTranslator interface doc.
 SnmpSecurityParameters getSecurityParameters(SnmpMsg msg)
          See SnmpMsgTranslator interface doc.
 void setContextEngineId(SnmpMsg msg, byte[] contextEngineId)
          See SnmpMsgTranslator interface doc.
 void setContextName(SnmpMsg msg, byte[] contextName)
          See SnmpMsgTranslator interface doc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnmpMsgTranslatorV3

public SnmpMsgTranslatorV3()
Method Detail

getMsgId

public int getMsgId(SnmpMsg msg)
See SnmpMsgTranslator interface doc.

Specified by:
getMsgId in interface SnmpMsgTranslator

getMsgMaxSize

public int getMsgMaxSize(SnmpMsg msg)
See SnmpMsgTranslator interface doc.

Specified by:
getMsgMaxSize in interface SnmpMsgTranslator

getMsgFlags

public byte getMsgFlags(SnmpMsg msg)
See SnmpMsgTranslator interface doc.

Specified by:
getMsgFlags in interface SnmpMsgTranslator

getSecurityLevel

public int getSecurityLevel(SnmpMsg msg)
See SnmpMsgTranslator interface doc.

Specified by:
getSecurityLevel in interface SnmpMsgTranslator

getMsgSecurityModel

public int getMsgSecurityModel(SnmpMsg msg)
See SnmpMsgTranslator interface doc.

Specified by:
getMsgSecurityModel in interface SnmpMsgTranslator

getFlatSecurityParameters

public byte[] getFlatSecurityParameters(SnmpMsg msg)
See SnmpMsgTranslator interface doc.

Specified by:
getFlatSecurityParameters in interface SnmpMsgTranslator

getSecurityParameters

public SnmpSecurityParameters getSecurityParameters(SnmpMsg msg)
See SnmpMsgTranslator interface doc.

Specified by:
getSecurityParameters in interface SnmpMsgTranslator

getContextEngineId

public byte[] getContextEngineId(SnmpMsg msg)
See SnmpMsgTranslator interface doc.

Specified by:
getContextEngineId in interface SnmpMsgTranslator

getContextName

public byte[] getContextName(SnmpMsg msg)
See SnmpMsgTranslator interface doc.

Specified by:
getContextName in interface SnmpMsgTranslator

getRawContextName

public byte[] getRawContextName(SnmpMsg msg)
See SnmpMsgTranslator interface doc.

Specified by:
getRawContextName in interface SnmpMsgTranslator

getAccessContext

public byte[] getAccessContext(SnmpMsg msg)
See SnmpMsgTranslator interface doc.

Specified by:
getAccessContext in interface SnmpMsgTranslator

getEncryptedPdu

public byte[] getEncryptedPdu(SnmpMsg msg)
See SnmpMsgTranslator interface doc.

Specified by:
getEncryptedPdu in interface SnmpMsgTranslator

setContextName

public void setContextName(SnmpMsg msg,
                           byte[] contextName)
See SnmpMsgTranslator interface doc.

Specified by:
setContextName in interface SnmpMsgTranslator

setContextEngineId

public void setContextEngineId(SnmpMsg msg,
                               byte[] contextEngineId)
See SnmpMsgTranslator interface doc.

Specified by:
setContextEngineId in interface SnmpMsgTranslator

Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

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