|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.snmp4j.AbstractTarget
org.snmp4j.SecureTarget
public abstract class SecureTarget
The SecureTarget
is an security model independent abstract class
for all targets supporting secure SNMP communication.
Constructor Summary | |
---|---|
protected |
SecureTarget()
Default constructor. |
protected |
SecureTarget(Address address,
OctetString securityName)
Creates a SNMPv3 secure target with an address and security name. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.snmp4j.AbstractTarget |
---|
clone, getAddress, getMaxSizeRequestPDU, getRetries, getTimeout, getVersion, setAddress, setMaxSizeRequestPDU, setRetries, setTimeout, setVersion, toString, toStringAbstractTarget |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected 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.Method Detail |
---|
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 2005-2010 Frank Fock (SNMP4J.org) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |