com.sun.management.snmp
Class SnmpScopedPduPacket

java.lang.Object
  extended by com.sun.management.snmp.SnmpPdu
      extended by com.sun.management.snmp.SnmpScopedPduPacket
All Implemented Interfaces:
SnmpDefinitions, Serializable
Direct Known Subclasses:
SnmpScopedPduBulk, SnmpScopedPduRequest

public abstract class SnmpScopedPduPacket
extends SnmpPdu
implements Serializable

Is the fully decoded representation of an SNMP V3 packet.

Classes are derived from SnmpPdu to represent the different forms of SNMP pdu (SnmpScopedPduRequest, SnmpScopedPduBulk).
The SnmpScopedPduPacket class defines the attributes common to every scoped SNMP packets.

Since:
Java DMK 5.1
See Also:
SnmpV3Message, Serialized Form

Field Summary
 byte[] contextEngineId
          The context engine Id in which the pdu must be handled (Generally the local engine Id).
 byte[] contextName
          The context name in which the OID have to be interpreted.
 byte msgFlags
          Message flags.
 int msgId
          Message identifier.
 int msgMaxSize
          Message max size the pdu sender can deal with.
 int msgSecurityModel
          The security model the security sub system MUST use in order to deal with this pdu (e.g.
 SnmpSecurityParameters securityParameters
          The security parameters.
 
Fields inherited from class com.sun.management.snmp.SnmpPdu
address, port, requestId, type, varBindList, version
 
Fields inherited from interface com.sun.management.snmp.SnmpDefinitions
authMask, authNoPriv, authPriv, authPrivMask, CtxtConsFlag, noAuthNoPriv, noGroupName, noSuchContext, noSuchView, notInView, pduGetBulkRequestPdu, pduGetNextRequestPdu, pduGetRequestPdu, pduGetResponsePdu, pduInformRequestPdu, pduReportPdu, pduSetRequestPdu, pduV1TrapPdu, pduV2TrapPdu, pduWalkRequest, privMask, reportableFlag, snmpAuthNotSupported, snmpBadSecurityLevel, snmpPrivNotSupported, snmpReqAborted, snmpReqEncodingError, snmpReqHandleTooBig, snmpReqInternalError, snmpReqPacketOverflow, snmpReqRefireAfterVbFix, snmpReqSocketIOError, snmpReqTimeout, snmpReqTooBigImpossible, snmpReqUnknownError, snmpRspAuthorizationError, snmpRspBadValue, snmpRspCommitFailed, snmpRspDecodingError, snmpRspEndOfTable, snmpRspGenErr, snmpRspInconsistentName, snmpRspInconsistentValue, snmpRspNoAccess, snmpRspNoCreation, snmpRspNoError, snmpRspNoSuchName, snmpRspNotWritable, snmpRspReadOnly, snmpRspResourceUnavailable, snmpRspTooBig, snmpRspUndoFailed, snmpRspWrongEncoding, snmpRspWrongLength, snmpRspWrongType, snmpRspWrongValue, snmpUnknownPrincipal, snmpUsmBadEngineId, snmpUsmInvalidTimeliness, snmpUsmSecurityModel, snmpV1AccessControlModel, snmpV1MsgProcessingModel, snmpV1SecurityModel, snmpV2AccessControlModel, snmpV2MsgProcessingModel, snmpV2SecurityModel, snmpV3AccessControlModel, snmpV3MsgProcessingModel, snmpVersionOne, snmpVersionThree, snmpVersionTwo, snmpWrongSnmpVersion, trapAuthenticationFailure, trapColdStart, trapEgpNeighborLoss, trapEnterpriseSpecific, trapLinkDown, trapLinkUp, trapWarmStart
 
Constructor Summary
protected SnmpScopedPduPacket()
          Constructor.
 
Method Summary
 
Methods inherited from class com.sun.management.snmp.SnmpPdu
pduTypeToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

msgMaxSize

public int msgMaxSize
Message max size the pdu sender can deal with.


msgId

public int msgId
Message identifier.


msgFlags

public byte msgFlags
Message flags. Reportable flag and security level.

 --  .... ...1   authFlag
 --  .... ..1.   privFlag
 --  .... .1..   reportableFlag
 --              Please observe:
 --  .... ..00   is OK, means noAuthNoPriv
 --  .... ..01   is OK, means authNoPriv
 --  .... ..10   reserved, must NOT be used.
 --  .... ..11   is OK, means authPriv


msgSecurityModel

public int msgSecurityModel
The security model the security sub system MUST use in order to deal with this pdu (e.g. User based Security Model Id = 3).


contextEngineId

public byte[] contextEngineId
The context engine Id in which the pdu must be handled (Generally the local engine Id).


contextName

public byte[] contextName
The context name in which the OID have to be interpreted.


securityParameters

public SnmpSecurityParameters securityParameters
The security parameters. This is an opaque member that is interpreted by the concerned security model. For Usm, SnmpUsmSecurityParameters.

Constructor Detail

SnmpScopedPduPacket

protected SnmpScopedPduPacket()
Constructor. Is only called by a son. Set the version to SnmpDefinitions.snmpVersionThree.


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.