Skip to Content.
Sympa Menu

idok-commit - [idok-commit] idok commit r170 - branches/rest/java/ch/idok/common/util

idok-commit AT lists.psi.ch

Subject: Commit emails of the iDok project

List archive

[idok-commit] idok commit r170 - branches/rest/java/ch/idok/common/util


Chronological Thread 
  • From: "AFS account Roman Geus" <geus AT savannah.psi.ch>
  • To: idok-commit AT lists.psi.ch
  • Subject: [idok-commit] idok commit r170 - branches/rest/java/ch/idok/common/util
  • Date: Tue, 12 Aug 2008 15:34:52 +0200
  • List-archive: <https://lists.web.psi.ch/pipermail/idok-commit/>
  • List-id: Commit emails of the iDok project <idok-commit.lists.psi.ch>

Author: geus
Date: Tue Aug 12 15:34:52 2008
New Revision: 170

Log:
Cleaned up DummyLoginModule.java


Modified:
branches/rest/java/ch/idok/common/util/DummyLoginModule.java

Modified: branches/rest/java/ch/idok/common/util/DummyLoginModule.java
==============================================================================
--- branches/rest/java/ch/idok/common/util/DummyLoginModule.java
(original)
+++ branches/rest/java/ch/idok/common/util/DummyLoginModule.java Tue
Aug 12 15:34:52 2008
@@ -60,8 +60,8 @@
// initial state
private Subject subject;
private CallbackHandler callbackHandler;
- private Map sharedState;
- private Map options;
+ private Map<String,?> sharedState;
+ private Map<String,?> options;

// configurable option
private boolean debug = false;
@@ -110,7 +110,7 @@
* for this particular <code>LoginModule</code>.
*/
public void initialize(Subject subject, CallbackHandler callbackHandler,
- Map sharedState, Map options) {
+ Map<String,?> sharedState, Map<String,?> options) {

this.subject = subject;
this.callbackHandler = callbackHandler;
@@ -179,13 +179,11 @@

// verify the username/password
boolean usernameCorrect = false;
- boolean passwordCorrect = false;
if (authDB.containsKey(username))
usernameCorrect = true;
if (authDB.get(username).equals(password)) {

- // authentication succeeded!!!
- passwordCorrect = true;
+ // authentication succeeded
if (debug)
System.out.println("\t\t[DummyLoginModule] "
+ "authentication succeeded");



  • [idok-commit] idok commit r170 - branches/rest/java/ch/idok/common/util, AFS account Roman Geus, 08/12/2008

Archive powered by MHonArc 2.6.19.

Top of Page