|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.management.snmp.manager.SnmpParams com.sun.management.snmp.manager.SnmpV3Parameters
public abstract class SnmpV3Parameters
This class models the parameters that are needed when making SNMP V3 requests. This class is an abstract one. If you want to send V3 requests you need to set a security model. Classes that inherit from this one are SNMP V3 based associated to a particular security model (e.g. SnmpUsmParameters
).
When a SnmpV3Parameters
is instantiated, the security level default value is noAuthNoPriv
.
Field Summary |
---|
Constructor Summary | |
---|---|
protected |
SnmpV3Parameters()
Constructor. |
protected |
SnmpV3Parameters(byte[] contextEngineId,
byte[] contextName,
byte msgFlags,
int msgMaxSize,
int msgSecurityModel)
Constructor. |
Method Summary | |
---|---|
boolean |
allowSnmpSets()
set requests are enabled in V3. |
byte[] |
getContextEngineId()
Gets the context engine Id in which requests will be interpreted. |
byte[] |
getContextName()
Gets the context name in which requests will be interpreted. |
int |
getMsgMaxSize()
Gets the max response size that will be used when sending requests. |
int |
getMsgSecurityModel()
Gets the security model that will be used when sending requests. |
int |
getSecurityLevel()
Gets the security level that will be used when sending requests. |
SnmpSecurityParameters |
getSecurityParameters()
Gets the security parameters that have been created by the son. |
void |
setContextEngineId(byte[] contextEngineId)
Sets the context engine Id in which requests will be interpreted. |
void |
setContextName(byte[] contextName)
Sets the context name in which requests will be interpreted. |
void |
setMsgMaxSize(int msgMaxSize)
Sets the max allowed size for responses. |
protected void |
setMsgSecurityModel(int msgSecurityModel)
Sets the security model implemented by the son. |
void |
setSecurityLevel(int securityLevel)
Sets the flags that will be used when sending requests. |
protected void |
setSecurityParameters(SnmpSecurityParameters securParams)
Called by son at construction time. |
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 |
---|
protected SnmpV3Parameters()
protected SnmpV3Parameters(byte[] contextEngineId, byte[] contextName, byte msgFlags, int msgMaxSize, int msgSecurityModel)
Method Detail |
---|
protected void setSecurityParameters(SnmpSecurityParameters securParams)
public boolean allowSnmpSets()
set
requests are enabled in V3.
allowSnmpSets
in class SnmpParams
true
, all the time enabled.public void setContextEngineId(byte[] contextEngineId)
contextEngineId
- The context engine Id.public byte[] getContextEngineId()
public void setContextName(byte[] contextName)
contextName
- The context name.public byte[] getContextName()
public void setSecurityLevel(int securityLevel)
noAuthNoPriv
.
securityLevel
- The flags.public int getSecurityLevel()
noAuthNoPriv
.
public void setMsgMaxSize(int msgMaxSize)
msgMaxSize
- The max size.public int getMsgMaxSize()
protected void setMsgSecurityModel(int msgSecurityModel)
public int getMsgSecurityModel()
public SnmpSecurityParameters getSecurityParameters()
|
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 |