|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.management.snmp.manager.SnmpParams
com.sun.management.snmp.manager.SnmpV3Parameters
com.sun.management.snmp.manager.usm.SnmpUsmParameters
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
.
Field Summary |
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 |
public SnmpUsmParameters(SnmpEngine engine, String principal) throws SnmpUnknownModelException
engine
- The engine.principal
- The user name that will be used when sending calls.
SnmpUnknownModelException
- If Usm is not present in the passed engine.public SnmpUsmParameters(SnmpEngine engine) throws SnmpUnknownModelException
engine
- The engine.
SnmpUnknownModelException
- If Usm is not present in the passed engine.Method Detail |
public String getPrincipal()
public void setPrincipal(String principal)
|
FCS Release jdmk-5_1-b34.2 2005.11.29_16:24:00_MET |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |