public class UserTarget extends SecureTarget
securityLevel, securityModel, securityName
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
Target |
duplicate()
Creates a new copy of this target with the same address type.
|
boolean |
equals(Object o) |
byte[] |
getAuthoritativeEngineID()
Gets the authoritative engine ID of this target.
|
int |
hashCode() |
void |
setAuthoritativeEngineID(byte[] authoritativeEngineID)
Sets the authoritative engine ID of this target.
|
String |
toString() |
clone, getAddress, getMaxSizeRequestPDU, getPreferredTransports, getRetries, getSecurityLevel, getSecurityModel, getSecurityName, getTimeout, getVersion, setAddress, setMaxSizeRequestPDU, setPreferredTransports, setRetries, setSecurityLevel, setSecurityModel, setSecurityName, setTimeout, setVersion, toStringAbstractTarget
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.public Target duplicate()
Target
public void setAuthoritativeEngineID(byte[] authoritativeEngineID)
authoritativeEngineID
- a possibly zero length byte array (must not be null
).public byte[] getAuthoritativeEngineID()
public String toString()
toString
in class SecureTarget
public boolean equals(Object o)
equals
in class AbstractTarget
public int hashCode()
hashCode
in class AbstractTarget
Copyright © 2022 SNMP4J.org. All rights reserved.