public abstract class SecureTarget extends AbstractTarget implements Serializable
SecureTarget is an security model independent abstract class
for all targets supporting secure SNMP communication.| Modifier | Constructor and Description |
|---|---|
protected |
SecureTarget()
Default constructor.
|
protected |
SecureTarget(Address address,
OctetString securityName)
Creates a SNMPv3 secure target with an address and security name.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getSecurityLevel()
Gets the security level associated with this target.
|
int |
getSecurityModel()
Gets the security model associated with this target.
|
OctetString |
getSecurityName()
Gets the security name associated with this target.
|
void |
setSecurityLevel(int securityLevel)
Sets the security level for this target.
|
void |
setSecurityModel(int securityModel)
Sets the security model for this target.
|
void |
setSecurityName(OctetString securityName)
Sets the security name to be used with this target.
|
clone, getAddress, getMaxSizeRequestPDU, getRetries, getTimeout, getVersion, setAddress, setMaxSizeRequestPDU, setRetries, setTimeout, setVersion, toString, toStringAbstractTargetprotected SecureTarget()
protected SecureTarget(Address address, OctetString securityName)
address - an Address instance denoting the transport address of the
target.securityName - a OctetString instance representing the security name
of the USM user used to access the target.public int getSecurityModel()
int value as defined in the SecurityModel
interface or any third party subclass thereof.public final OctetString getSecurityName()
OctetString instance (never null).public int getSecurityLevel()
public void setSecurityLevel(int securityLevel)
securityLevel - one of
public void setSecurityModel(int securityModel)
securityModel - an int value as defined in the SecurityModel
interface or any third party subclass thereof.public final void setSecurityName(OctetString securityName)
securityName - an OctetString instance (must not be null).getSecurityName()Copyright © 2014 SNMP4J.org. All rights reserved.