Changeset 7641
- Timestamp:
- 03/05/11 15:39:38 (9 years ago)
- Location:
- trunk/projects/wiscscan-java/src/main/java/loci/wiscscan/auth
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/projects/wiscscan-java/src/main/java/loci/wiscscan/auth/AutoLoginHandler.java
r7638 r7641 52 52 * This is the constructor which takes in the username and password to send 53 53 * the JAAS call. 54 * @param Credentials This is the object containing the login info54 * @param credentials This is the object containing the login info 55 55 */ 56 56 public AutoLoginHandler( Credentials credentials ) { -
trunk/projects/wiscscan-java/src/main/java/loci/wiscscan/auth/KerberosAuth.java
r7638 r7641 52 52 * Attempts to log-in with the specified username and password. 53 53 * 54 * @return true if successfully logged in. 55 * @return false if unable to log in. 54 * @return true if successfully logged in, false if unable to log in. 56 55 */ 57 56 public static boolean tryLogin(String username, String password) { 58 boolean returnValue = true;59 60 57 // Create the credentials file 61 58 Credentials credentials = new Credentials(); … … 69 66 catch (LoginException le) { 70 67 System.err.println("Cannot create LoginContext. " + le.getMessage()); 71 return Value =false;68 return false; 72 69 } 73 70 catch (SecurityException se) { 74 return Value =false;71 return false; 75 72 } 76 73 … … 82 79 System.err.println("Authentication failed:"); 83 80 System.err.println(" " + le.getMessage()); 84 return Value =false;81 return false; 85 82 } 86 83 87 return returnValue;84 return true; 88 85 } 89 86 }
Note: See TracChangeset
for help on using the changeset viewer.