|
SNMP Stack 5_1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.co.westhawk.snmp.beans.UsmDiscoveryBean
This bean performs the SNMPv3 USM discovery process.
The process consists of two steps: first the SNMP engine ID has to be discovered, second the timeline details of the SNMP engine ID have to be discovered. For the last step the username of the principal is needed.
Constructor Summary | |
UsmDiscoveryBean(java.lang.String host,
int port)
Constructor. |
|
UsmDiscoveryBean(java.lang.String host,
int port,
java.lang.String bindAddr,
java.lang.String typeSocketA)
Constructor. |
Method Summary | |
protected void |
discoveryEngineId()
Starts the discovery of the SNMP engine ID. |
protected void |
discoveryTimeLine()
Starts the discovery of the Time line. |
void |
freeResources()
Destroy the context in use. |
void |
setAuthenticationDetails(java.lang.String newUserName,
java.lang.String newUserPassword,
int protocol)
Sets the user's authentication details. |
void |
setPrivacyDetails(java.lang.String newUserPassword)
Sets the user's privacy details. |
void |
startDiscovery()
Starts the discovery. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UsmDiscoveryBean(java.lang.String host, int port) throws java.io.IOException
host
- The host to discoverport
- The port to discoverSnmpContextv3.SnmpContextv3(String, int)
,
startDiscovery()
public UsmDiscoveryBean(java.lang.String host, int port, java.lang.String bindAddr, java.lang.String typeSocketA) throws java.io.IOException
host
- The host to discoverport
- The port to discovertypeSocketA
- The type of socket to use.SnmpContextv3.SnmpContextv3(String, int, String, String)
,
startDiscovery()
Method Detail |
public void setAuthenticationDetails(java.lang.String newUserName, java.lang.String newUserPassword, int protocol)
The time line details only need to be known when the user want to send authenticated message to this SNMP engine.
newUserName
- The user namenewUserPassword
- The user authentication passwordprotocol
- The user authentication protocolSnmpContextv3Basis.setUserName(String)
,
SnmpContextv3Basis.setUserAuthenticationPassword(String)
,
SnmpContextv3Basis.setAuthenticationProtocol(int)
public void setPrivacyDetails(java.lang.String newUserPassword)
The time line details only need to be known when the user want to send authenticated message to this SNMP engine.
newUserPassword
- The user privacy passwordSnmpContextv3Basis.setUserPrivacyPassword(String)
public void startDiscovery() throws PduException, java.io.IOException
This is a blocking call! It will return when it has done the whole discovery.
PduException
java.io.IOException
setAuthenticationDetails(String, String, int)
,
discoveryEngineId()
,
discoveryTimeLine()
public void freeResources()
protected void discoveryEngineId() throws PduException, java.io.IOException
This is a blocking call! It will return when it has done the whole discovery.
PduException
java.io.IOException
startDiscovery()
,
discoveryTimeLine()
protected void discoveryTimeLine() throws PduException, java.io.IOException
This is a blocking call! It will return when it has done the whole discovery.
PduException
java.io.IOException
startDiscovery()
,
discoveryEngineId()
|
SNMP Stack 5_1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |