com.sun.management.snmp.mpm
Class SnmpMsgTranslatorCs2Ctxt

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

public class SnmpMsgTranslatorCs2Ctxt
extends SnmpMsgTranslatorV1V2

This translator is dedicated to translate V1 V2 parameters in the context of SNMP V3 messages. It infers some parameters such as context name and context engine Id.

Since:
Java DMK 5.1

Constructor Summary
SnmpMsgTranslatorCs2Ctxt(SnmpEngine engine)
           
 
Method Summary
 byte[] getAccessContext(SnmpMsg msg)
          The access context (used in IP ACL) is the community string.
 byte[] getContextName(SnmpMsg msg)
          A context name can be added at the end of the community string via @ separator.
 
Methods inherited from class com.sun.management.snmp.mpm.SnmpMsgTranslatorV1V2
getContextEngineId, getEncryptedPdu, getFlatSecurityParameters, getMsgFlags, getMsgId, getMsgMaxSize, getMsgSecurityModel, getRawContextName, getSecurityLevel, getSecurityParameters, setContextEngineId, setContextName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnmpMsgTranslatorCs2Ctxt

public SnmpMsgTranslatorCs2Ctxt(SnmpEngine engine)
Method Detail

getContextName

public byte[] getContextName(SnmpMsg msg)
A context name can be added at the end of the community string via @ separator. If no @ is located, null is returned.

Specified by:
getContextName in interface SnmpMsgTranslator
Overrides:
getContextName in class SnmpMsgTranslatorV1V2

getAccessContext

public byte[] getAccessContext(SnmpMsg msg)
The access context (used in IP ACL) is the community string. The community string or null is returned.

Specified by:
getAccessContext in interface SnmpMsgTranslator
Overrides:
getAccessContext in class SnmpMsgTranslatorV1V2

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.