|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.snmp4j.AbstractTarget
org.snmp4j.SecureTarget
org.snmp4j.UserTarget
public class UserTarget
User based target for SNMPv3 or later.
| Field Summary |
|---|
| Fields inherited from class org.snmp4j.AbstractTarget |
|---|
securityLevel, securityModel, securityName |
| Constructor Summary | |
|---|---|
UserTarget()
Creates a target for a user based security model target. |
|
UserTarget(Address address,
OctetString securityName,
byte[] authoritativeEngineID)
Creates a SNMPv3 USM target with security level noAuthNoPriv, one second time-out without retries. |
|
UserTarget(Address address,
OctetString securityName,
byte[] authoritativeEngineID,
int securityLevel)
Creates a SNMPv3 USM target with the supplied security level, one second time-out without retries. |
|
| Method Summary | |
|---|---|
byte[] |
getAuthoritativeEngineID()
Gets the authoritative engine ID of this target. |
void |
setAuthoritativeEngineID(byte[] authoritativeEngineID)
Sets the authoritative engine ID of this target. |
java.lang.String |
toString()
|
| Methods inherited from class org.snmp4j.AbstractTarget |
|---|
clone, getAddress, getMaxSizeRequestPDU, getPreferredTransports, getRetries, getSecurityLevel, getSecurityModel, getSecurityName, getTimeout, getVersion, setAddress, setMaxSizeRequestPDU, setPreferredTransports, setRetries, setSecurityLevel, setSecurityModel, setSecurityName, setTimeout, setVersion, toStringAbstractTarget |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UserTarget()
public UserTarget(Address address,
OctetString securityName,
byte[] authoritativeEngineID)
address - the transport Address of the target.securityName - the USM security name to be used to access the target.authoritativeEngineID - the authoritative engine ID as a possibly zero length byte
array which must not be null.
public UserTarget(Address address,
OctetString securityName,
byte[] authoritativeEngineID,
int securityLevel)
address - the transport Address of the target.securityName - the USM security name to be used to access the target.authoritativeEngineID - the authoritative engine ID as a possibly zero length byte
array which must not be null.securityLevel - the SecurityLevel to use.| Method Detail |
|---|
public void setAuthoritativeEngineID(byte[] authoritativeEngineID)
authoritativeEngineID - a possibly zero length byte array (must not be null).public byte[] getAuthoritativeEngineID()
public java.lang.String toString()
toString in class SecureTarget
|
Copyright 2005-2011 Frank Fock (SNMP4J.org) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||