Update of /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/profile/sasl/otp
In directory sc8-pr-cvs1:/tmp/cvs-serv19162/src/org/beepcore/beep/profile/sasl/otp
Modified Files:
OTPGenerator.java
Log Message:
cleanup
Index: OTPGenerator.java
===================================================================
RCS file: /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/profile/sasl/otp/OTPGenerator.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** OTPGenerator.java 23 Apr 2003 15:23:03 -0000 1.6
--- OTPGenerator.java 13 Sep 2003 21:18:09 -0000 1.7
***************
*** 319,353 ****
}
}
-
- static void storeUserDb(String username, String algorithm,
- String lastHash, String orgLastHash,
- String seed, int sequence, int orgSequence)
- throws SASLException
- {
- if(!validateUserName(username))
- throw new SASLException(ERR_USER_DB_EXISTS);
- try
- {
- seed = seed.toLowerCase();
- validateSeed(seed);
- }
- catch(Exception x)
- {
- throw new SASLException(x.getMessage());
- }
-
- Properties p = new Properties();
- try {
- p.put(UserDatabasePool.OTP_AUTHENTICATOR, username);
- p.put(UserDatabasePool.OTP_ALGO, algorithm);
- p.put(UserDatabasePool.OTP_LAST_HASH, lastHash);
- p.put(UserDatabasePool.OTP_SEQUENCE, Integer.toString(orgSequence));
- p.put(UserDatabasePool.OTP_SEED, seed);
- p.store(new FileOutputStream(username + UserDatabasePool.OTP_SUFFIX),
- UserDatabasePool.OTP_HEADER);
- } catch (Exception x) {
- throw new SASLException(x.getMessage());
- }
-
- }
}
--- 319,321 ----
|