|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.snmp4j.security.UsmUserEntry
public class UsmUserEntry
The UsmUserEntry class represents a user in the
Local Configuration Datastore (LCD).
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.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)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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(java.lang.Object o)
compareTo in interface java.lang.Comparableo - a UsmUserEntry instance.
public java.lang.String toString()
toString in class java.lang.Object
|
Copyright 2003-2009 Frank Fock and Jochen Katz (SNMP4J.org) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||