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

java.lang.Object
  extended bycom.sun.management.snmp.manager.SnmpParams
      extended bycom.sun.management.snmp.manager.SnmpV3Parameters
          extended bycom.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.

Returns:
The principal.

FCS Release
jdmk-5_1-b34.1 2005.02.10_16:46:09_MET

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