|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SnmpUsmLcd
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 |
---|
static final int NON_VOLATILE
static final int VOLATILE
Method Detail |
---|
int getStorageType()
PERMANENT
or
VOLATILE
).
SnmpUsmSecureUser createNewUser(byte[] engineId, String userName)
engineId
- The authoritative engine Id the user is associated to.userName
- The user name.
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.Enumeration getAllUsers()
SnmpUsmSecureUser
located in the Lcd.
void setMibTable(SnmpUsmMibTable table)
table
- The MIB table.void addEngine(SnmpEngineId engineId)
engineId
- The unknown engine Id.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
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
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
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
void addUser(SnmpUsmSecureUser user, boolean notifyMIB) throws SnmpUsmException
user
- The user to add.notifyMIB
- True will notify the MIB.
SnmpUsmException
void setAlgorithmManager(SnmpUsmAlgorithmManager manager)
SnmpUsmAlgorithmManager
. This manager is
used to transform algorithm names in algorithm objects.
manager
- The algorithm manager.SnmpUsmAlgorithmManager getAlgorithmManager()
SnmpUsmAlgorithmManager
. This manager
is used to transform algorithm names in algorithm objects.
void syncDataSource()
void setUserAuthKeyChange(SnmpUsmSecureUser user, byte[] keyChange)
user
- The user that has its key changed.keyChange
- The value to use at key compute time.void setUserPrivKeyChange(SnmpUsmSecureUser user, byte[] keyChange)
user
- The user that has its key changed.keyChange
- The value to use at key compute time.
|
Open Source build 02 opendmk-1.0-b02 2007.10.01_19:17:46_MEST |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |