|
SNMP Stack 4_12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | 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.
See RFC 2574.
Constructor Summary | |
UsmDiscoveryBean(java.lang.String host,
int port)
Constructor. |
|
UsmDiscoveryBean(java.lang.String host,
int port,
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 |
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 discoverSnmpContextv3Pool.SnmpContextv3Pool(String, int)
,
startDiscovery()
public UsmDiscoveryBean(java.lang.String host, int port, java.lang.String typeSocketA) throws java.io.IOException
host
- The host to discoverport
- The port to discovertypeSocketA
- The type of socket to use.SnmpContextv3Pool.SnmpContextv3Pool(String, int, 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 protocolSnmpContextv3.setUserName(String)
,
SnmpContextv3.setUserAuthenticationPassword(String)
,
SnmpContextv3.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 passwordSnmpContextv3.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.
setAuthenticationDetails(String, String, int)
,
discoveryEngineId()
,
discoveryTimeLine()
protected void discoveryEngineId() throws PduException, java.io.IOException
This is a blocking call! It will return when it has done the whole discovery.
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.
startDiscovery()
,
discoveryEngineId()
|
SNMP Stack 4_12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |