|
HOME | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ireasoning.protocol.snmp.UsmUser
This class represents user information (in SNMPV3)
Field Summary | |
static byte |
AUTH_NO_PRIV
securityLevel: Auth No Privacy |
static byte |
AUTH_PRIV
securityLevel: Auth and Privacy |
static byte |
NO_AUTH_NO_PRIV
securityLevel: No Auth No Privacy |
Constructor Summary | |
UsmUser(String userName,
String authProtocol,
byte[] authKey,
byte[] privKey,
byte[] engineID)
Constructs UsmUser object. |
|
UsmUser(String userName,
String authProtocol,
int privProtocol,
byte[] authKey,
byte[] privKey,
byte[] engineID)
Constructs UsmUser object. |
|
UsmUser(String userName,
String authProtocol,
int privProtocol,
byte securityLevel,
String authPassword,
String privPassword,
byte[] engineID)
Constructs UsmUser object. |
|
UsmUser(String userName,
String authProtocol,
String authPassword,
int privProtocol,
String privPassword,
byte[] engineID)
Constructs UsmUser object. |
|
UsmUser(String userName,
String authProtocol,
String authPassword,
String privPassword,
byte[] engineID)
Constructs UsmUser object. |
Method Summary | |
byte[] |
getAuthKey()
Returns localized auth key |
String |
getAuthPassword()
Returns auth password |
String |
getAuthProtocol()
Returns auth protocol |
byte[] |
getEngineID()
Returns engine ID |
byte[] |
getPrivKey()
Returns localized privacy key |
String |
getPrivPassword()
Returns privacy password |
int |
getPrivProtocol()
Returns privacy protocol |
byte |
getSecurityLevel()
Returns security level |
String |
getUserName()
Returns USM user name |
void |
setAuthKey(byte[] key)
Sets a new localized auth key |
void |
setAuthPassword(String authPassword)
Sets a new auth password |
void |
setAuthProtocol(String authProtocol)
Sets a new auth protocol |
void |
setEngineID(byte[] engineID)
Sets a new engineID. |
void |
setPrivKey(byte[] key)
Sets a new localized privacy key |
void |
setPrivPassword(String privPassword)
Sets a new privacy password |
void |
setPrivProtocol(int priv)
Sets a new privacy protocol |
void |
setSecurityLevel(byte level)
Sets a new security level |
void |
setUserName(String name)
Sets a new USM user name |
String |
toString()
|
void |
updateKeys()
Calculates localized keys |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final byte NO_AUTH_NO_PRIV
public static final byte AUTH_NO_PRIV
public static final byte AUTH_PRIV
Constructor Detail |
public UsmUser(String userName, String authProtocol, String authPassword, String privPassword, byte[] engineID)
userName
- user nameauthProtocol
- authentication protocol, one of {SnmpConst2.MD5,
SnmpConst2.SHA}authPassword
- authentication passwordprivPassword
- privacy protocol passwordpublic UsmUser(String userName, String authProtocol, String authPassword, int privProtocol, String privPassword, byte[] engineID)
userName
- user nameauthProtocol
- authentication protocol, one of {SnmpConst2.MD5,
SnmpConst2.SHA}privProtocol
- privacy protocol. One of {SnmpConst2.DES, SnmpConst2.AES}authPassword
- authentication passwordprivPassword
- privacy protocol passwordpublic UsmUser(String userName, String authProtocol, int privProtocol, byte securityLevel, String authPassword, String privPassword, byte[] engineID)
userName
- user nameauthProtocol
- authentication protocol, one of {SnmpConst2.MD5,
SnmpConst2.SHA}privProtocol
- privacy protocol. One of {SnmpConst2.DES, SnmpConst2.AES}authPassword
- authentication passwordprivPassword
- privacy protocol passpublic UsmUser(String userName, String authProtocol, byte[] authKey, byte[] privKey, byte[] engineID)
userName
- user nameauthProtocol
- authentication protocol, one of {SnmpConst2.MD5,
SnmpConst2.SHA}authKey
- localized auth keyprivKey
- localized priv keypublic UsmUser(String userName, String authProtocol, int privProtocol, byte[] authKey, byte[] privKey, byte[] engineID)
userName
- user nameauthProtocol
- authentication protocol, one of {SnmpConst2.MD5,
SnmpConst2.SHA}authKey
- localized authentication passwordprivKey
- localized privacy protocol passMethod Detail |
public byte[] getAuthKey()
public void setAuthKey(byte[] key)
public String getAuthPassword()
public String getAuthProtocol()
public int getPrivProtocol()
public void setPrivProtocol(int priv)
public byte[] getPrivKey()
public void setPrivKey(byte[] key)
public String getPrivPassword()
public byte getSecurityLevel()
public String getUserName()
public void setUserName(String name)
public byte[] getEngineID()
public void setSecurityLevel(byte level)
public void setAuthProtocol(String authProtocol)
public void setAuthPassword(String authPassword)
public void setPrivPassword(String privPassword)
public void setEngineID(byte[] engineID)
public String toString()
public void updateKeys()
|
HOME | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |