|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.beepcore.beep.profile.sasl.otp.database.UserDatabasePool
This class implements UserDatabaseManager with a simple implementation. More sophisticated implementations will use the ProfileConfiguration to tell SASLOTPProfile to load different classes to do this. WARNING: I have some serious concerns about the public nature of these methods. This won't stay this way, but the changes aren't cooked enough to shove into the first beta.
Field Summary |
Fields inherited from interface org.beepcore.beep.profile.sasl.otp.database.UserDatabaseManager |
ERR_DB_PARSE, OTP_ALGO, OTP_AUTHENTICATOR, OTP_HEADER, OTP_LAST_HASH, OTP_MECH, OTP_SEED, OTP_SEQUENCE, OTP_SUFFIX |
Constructor Summary | |
UserDatabasePool()
|
Method Summary | |
void |
addUser(java.lang.String username,
java.lang.String algorithm,
java.lang.String hash,
java.lang.String seed,
java.lang.String sequence)
Method addUser |
UserDatabase |
getUser(java.lang.String username)
Method getUser This method is provided as a means for users of the OTP databases to retrieve the information contained in them, in the form of an instance of UserDatabase. |
void |
populateUserDatabases()
Method populateUserDatabases is a simple stub routine used to test the library. |
void |
removeUserDB(java.lang.String authenticator)
Method removeUserDB causes the long-term representation (e.g. file) of the user's OTP database to be removed. |
void |
updateUserDB(UserDatabase ud)
Method updateUserDB causes the long-term representation (e.g. file) of the user's OTP database to be updated after a successful authentication. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UserDatabasePool()
Method Detail |
public UserDatabase getUser(java.lang.String username) throws SASLException
getUser
in interface UserDatabaseManager
SASLException
- is thrown if the parameter is null or
some error is encountered during the reading or processing
of the user's OTP database file.public void addUser(java.lang.String username, java.lang.String algorithm, java.lang.String hash, java.lang.String seed, java.lang.String sequence) throws SASLException
UserDatabaseManager
addUser
in interface UserDatabaseManager
SASLException
public void updateUserDB(UserDatabase ud) throws SASLException
updateUserDB
in interface UserDatabaseManager
SASLException
- if any issues are encountered during the
storage of the user's OTP DB.public void removeUserDB(java.lang.String authenticator) throws SASLException
removeUserDB
in interface UserDatabaseManager
SASLException
- if any issues are encountered during the
removal of the user's OTP DB.public void populateUserDatabases() throws SASLException
SASLException
- if it encounters any issues storing
the OTP databases.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |