|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An Usm Lcd is handling user configuration needed by the User based Security Model as defined in RFC 2574. It retrieves the initial configuration and allow to add user at runtime.
| Field Summary | |
static int |
NON_VOLATILE
Means that the data stored is permanent. |
static int |
VOLATILE
Means that the data stored is volatile. |
| Method Summary | |
void |
addEngine(SnmpEngineId engineId)
Adds an unknown received engine Id to the Lcd. |
void |
addUser(SnmpEngineId engineId,
String userName,
String securityName,
String authProtocol,
String authPassword,
String privProtocol,
String privKey,
int storage,
boolean template)
Adds a user to the Usm Lcd. |
void |
addUser(SnmpUsmSecureUser user,
boolean notifyMIB)
Adds a user to the Usm Lcd. |
SnmpUsmSecureUser |
createNewUser(byte[] engineId,
String userName)
Asks the Usm Lcd to create a new user in the storage space. |
SnmpUsmAlgorithmManager |
getAlgorithmManager()
Gets the associated SnmpUsmAlgorithmManager. |
Enumeration |
getAllUsers()
Gets an enumeration of all the users SnmpUsmSecureUser
located in the Lcd. |
int |
getStorageType()
Returns the storage type ( PERMANENT or
VOLATILE). |
SnmpUsmSecureUser |
getUser(SnmpEngineId engineId,
String userName)
Gets the SnmpUsmSecureUser for the passed user name
and authoritative engine Id. |
SnmpUsmAuthPair |
getUserAuthPair(SnmpEngineId engineId,
String userName)
Gets the SnmpUsmAuthAlgorithm/Localized key
pair associated to a user name and authoritative engine Id. |
SnmpUsmPrivPair |
getUserPrivPair(SnmpEngineId engineId,
String userName)
Gets the SnmpUsmPrivAlgorithm/Localized key
pair associated to a user name and authoritative engine Id. |
void |
removeUser(SnmpEngineId engineId,
String userName,
boolean notifyMIB)
Removes a user form the Lcd. |
void |
setAlgorithmManager(SnmpUsmAlgorithmManager manager)
Associates an SnmpUsmAlgorithmManager. |
void |
setMibTable(SnmpUsmMibTable table)
Adds an Usm MIB table. |
void |
setUserAuthKeyChange(SnmpUsmSecureUser user,
byte[] keyChange)
Asks the Lcd to set the key change parameters to the passed user. |
void |
setUserPrivKeyChange(SnmpUsmSecureUser user,
byte[] keyChange)
Asks the Lcd to set the key change parameters to the passed user. |
void |
syncDataSource()
Tells the Lcd to synchronize with its data source. |
| Field Detail |
public static final int NON_VOLATILE
public static final int VOLATILE
| Method Detail |
public int getStorageType()
PERMANENT or
VOLATILE).
public SnmpUsmSecureUser createNewUser(byte[] engineId,
String userName)
engineId - The authoritative engine Id the user is associated to.userName - The user name.
public void removeUser(SnmpEngineId engineId,
String userName,
boolean notifyMIB)
engineId - The engine Id to which the user is associated.userName - The user name.notifyMIB - True will notify the MIB.public Enumeration getAllUsers()
SnmpUsmSecureUser
located in the Lcd.
public void setMibTable(SnmpUsmMibTable table)
table - The MIB table.public void addEngine(SnmpEngineId engineId)
engineId - The unknown engine Id.
public SnmpUsmAuthPair getUserAuthPair(SnmpEngineId engineId,
String userName)
throws SnmpUsmAuthAlgorithmException,
SnmpUsmEngineIdException,
SnmpUsmUserNameException
SnmpUsmAuthAlgorithm/Localized key
pair associated to a user name and authoritative engine Id.
engineId - The authoritative engine Id.userName - The user name.
SnmpUsmAuthAlgorithmException
SnmpUsmEngineIdException
SnmpUsmUserNameException
public SnmpUsmSecureUser getUser(SnmpEngineId engineId,
String userName)
throws SnmpUsmEngineIdException,
SnmpUsmUserNameException
SnmpUsmSecureUser for the passed user name
and authoritative engine Id.
engineId - The authoritative engine Id.userName - The user name.
SnmpUsmEngineIdException
SnmpUsmUserNameException
public SnmpUsmPrivPair getUserPrivPair(SnmpEngineId engineId,
String userName)
throws SnmpUsmPrivAlgorithmException,
SnmpUsmEngineIdException,
SnmpUsmUserNameException
SnmpUsmPrivAlgorithm/Localized key
pair associated to a user name and authoritative engine Id.
engineId - The authoritative engine Id.userName - The user name.
SnmpUsmPrivAlgorithmException
SnmpUsmEngineIdException
SnmpUsmUserNameException
public void addUser(SnmpEngineId engineId,
String userName,
String securityName,
String authProtocol,
String authPassword,
String privProtocol,
String privKey,
int storage,
boolean template)
throws SnmpUsmException
engineId - The authoritative engine Id.userName - The user name.securityName - The security user name.authProtocol - The authentication algorithm name.authPassword - The authentication password.privProtocol - The privacy algorithm name.privKey - The privacy key. No password translation. This
String must start with 0x.storage - The storage type (PERMANENT or
VOLATILE).template - True, the user is a template. A template is not
registered in the USM MIB.
SnmpUsmException
public void addUser(SnmpUsmSecureUser user,
boolean notifyMIB)
throws SnmpUsmException
user - The user to add.notifyMIB - True will notify the MIB.
SnmpUsmExceptionpublic void setAlgorithmManager(SnmpUsmAlgorithmManager manager)
SnmpUsmAlgorithmManager. This manager is
used to transform algorithm names in algorithm objects.
manager - The algorithm manager.public SnmpUsmAlgorithmManager getAlgorithmManager()
SnmpUsmAlgorithmManager. This manager
is used to transform algorithm names in algorithm objects.
public void syncDataSource()
public void setUserAuthKeyChange(SnmpUsmSecureUser user,
byte[] keyChange)
user - The user that has its key changed.keyChange - The value to use at key compute time.
public void setUserPrivKeyChange(SnmpUsmSecureUser user,
byte[] keyChange)
user - The user that has its key changed.keyChange - The value to use at key compute time.
|
FCS Release jdmk-5_1-b34.1 2005.02.10_16:46:09_MET |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||