|
||||||||||
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
public class 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)
principal
- The principal.
|
Open Source build 02 opendmk-1.0-b02 2007.10.01_19:17:46_MEST |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |