public class UsmUserEntry extends Object implements Serializable, Comparable
UsmUserEntry class represents a user in the
Local Configuration Datastore (LCD).| Constructor and Description |
|---|
UsmUserEntry()
Creates a new user entry with empty engine ID and empty user.
|
UsmUserEntry(byte[] engineID,
OctetString securityName,
OID authProtocol,
byte[] authKey,
OID privProtocol,
byte[] privKey)
Creates a localized user entry.
|
UsmUserEntry(OctetString userName,
OctetString engineID,
UsmUser user)
Creates a user with user name and associated
UsmUser. |
UsmUserEntry(OctetString userName,
UsmUser user)
Creates a user with user name and associated
UsmUser. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Compares this user entry with another one by engine ID then by their user
names.
|
byte[] |
getAuthenticationKey() |
OctetString |
getEngineID() |
byte[] |
getPrivacyKey() |
OctetString |
getUserName() |
UsmUser |
getUsmUser() |
void |
setAuthenticationKey(byte[] authenticationKey) |
void |
setEngineID(OctetString engineID) |
void |
setPrivacyKey(byte[] privacyKey) |
void |
setUserName(OctetString userName) |
void |
setUsmUser(UsmUser usmUser) |
String |
toString() |
public UsmUserEntry()
public UsmUserEntry(OctetString userName, UsmUser user)
UsmUser.userName - the user name of the new entry.user - the UsmUser representing the security information of the
user.public UsmUserEntry(OctetString userName, OctetString engineID, UsmUser user)
UsmUser.userName - the user name of the new entry.engineID - the authoritative engine ID associated with the user.user - the UsmUser representing the security information of the
user.public UsmUserEntry(byte[] engineID,
OctetString securityName,
OID authProtocol,
byte[] authKey,
OID privProtocol,
byte[] privKey)
engineID - the engine ID for which the users has bee localized.securityName - the user and security name of the new entry.authProtocol - the authentication protocol ID.authKey - the authentication key.privProtocol - the privacy protocol ID.privKey - the privacy key.public OctetString getEngineID()
public void setEngineID(OctetString engineID)
public void setUserName(OctetString userName)
public OctetString getUserName()
public void setUsmUser(UsmUser usmUser)
public UsmUser getUsmUser()
public void setAuthenticationKey(byte[] authenticationKey)
public byte[] getAuthenticationKey()
public void setPrivacyKey(byte[] privacyKey)
public byte[] getPrivacyKey()
public int compareTo(Object o)
compareTo in interface Comparableo - a UsmUserEntry instance.Copyright © 2016 SNMP4J.org. All Rights Reserved.