com.sun.management.snmp.manager.usm
Class SnmpUsmParameters

java.lang.Object
  extended by com.sun.management.snmp.manager.SnmpParams
      extended by com.sun.management.snmp.manager.SnmpV3Parameters
          extended by com.sun.management.snmp.manager.usm.SnmpUsmParameters
All Implemented Interfaces:
SnmpDefinitions

public class SnmpUsmParameters
extends SnmpV3Parameters

This class models the set of parameters that are needed when making an SNMP request to an SNMP engine using the User Based Security Model. When a SnmpUsmParameters is instantiated, the security level default value is noAuthNoPriv .

Since:
Java DMK 5.1

Field Summary
 
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
SnmpUsmParameters(SnmpEngine engine)
          Package constructor.
SnmpUsmParameters(SnmpEngine engine, String principal)
          Package constructor.
 
Method Summary
 String getPrincipal()
          Returns the associated principal.
 void setPrincipal(String principal)
          Set the associated principal.
 
Methods inherited from class com.sun.management.snmp.manager.SnmpV3Parameters
allowSnmpSets, getContextEngineId, getContextName, getMsgMaxSize, getMsgSecurityModel, getSecurityLevel, getSecurityParameters, setContextEngineId, setContextName, setMsgMaxSize, setMsgSecurityModel, setSecurityLevel, setSecurityParameters
 
Methods inherited from class com.sun.management.snmp.manager.SnmpParams
getProtocolVersion, setProtocolVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnmpUsmParameters

public SnmpUsmParameters(SnmpEngine engine,
                         String principal)
                  throws SnmpUnknownModelException
Package constructor.

Parameters:
engine - The engine.
principal - The user name that will be used when sending calls.
Throws:
SnmpUnknownModelException - If USM is not present in the passed engine.

SnmpUsmParameters

public SnmpUsmParameters(SnmpEngine engine)
                  throws SnmpUnknownModelException
Package constructor.

Parameters:
engine - The engine.
Throws:
SnmpUnknownModelException - If USM is not present in the passed engine.
Method Detail

getPrincipal

public String getPrincipal()
Returns the associated principal.

Returns:
The principal.

setPrincipal

public void setPrincipal(String principal)
Set the associated principal.

Parameters:
principal - The principal.

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.