org.kuali.student.common.ws.security
Class AuthenticationService

java.lang.Object
  extended by org.kuali.student.common.ws.security.AuthenticationService

public class AuthenticationService
extends Object

Since we don't have an authentication service, this is a stupid class that verifies passwords and returns person ids based on a ks.users.xml file loaded from the classpath.


Field Summary
private static Map<String,String> passwords
           
private static Map<String,String> personids
           
 
Constructor Summary
AuthenticationService()
           
 
Method Summary
static String getPasswordForUsername(String username)
           
static String getPersonIdForUsername(String username)
           
static boolean validateUsernamePassword(String username, String password)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

passwords

private static Map<String,String> passwords

personids

private static Map<String,String> personids
Constructor Detail

AuthenticationService

public AuthenticationService()
Method Detail

validateUsernamePassword

public static boolean validateUsernamePassword(String username,
                                               String password)

getPasswordForUsername

public static String getPasswordForUsername(String username)

getPersonIdForUsername

public static String getPersonIdForUsername(String username)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.