1 package org.manentia.kasai.services; 2 3 import org.apache.commons.lang.exception.ExceptionUtils; 4 import org.manentia.kasai.exceptions.InvalidPasswordException; 5 import org.manentia.kasai.util.Constants; 6 import org.manentia.kasai.exceptions.ServiceException; 7 8 import com.koala.commons.log.Log; 9 import gs.scribblin.sysauth.SysAuth; 10 11 15 public class UnixAuthService implements AuthService { 16 17 public int checkPassword(String userName, String password) throws ServiceException { 18 int result = AUTH_BAD_USERNAME; 19 20 if (SysAuth.isAllowed(userName, password)){ 21 result = AUTH_OK; 22 } 23 24 return result; 25 } 26 27 public void changePassword(String userName, String oldPassword, String newPassword) throws ServiceException { 28 29 } 30 31 public void setPassword(String userName, String password) 32 throws ServiceException, InvalidPasswordException{ 33 34 } 36 37 public String resetPassword(String userName) throws ServiceException { 38 return null; 39 } 40 41 public native boolean validUser( String strUser, String strPass ); 42 } 43 | Popular Tags |