1 19 package org.openharmonise.rm.security.authentication; 20 21 import org.openharmonise.rm.resources.users.*; 22 23 32 public interface UserAuthenticator { 33 34 public static final int PWD_OK = 0; 35 public static final int AUTHENTICATION_FAIL = -1; 36 37 44 public boolean authenticate(User usr,String pwd) throws UserAuthenticationException ; 45 46 55 public int setPassword(User authUsr,User pwdUsr,String authPwd,String newPwd) throws UserAuthenticationException; 56 57 65 public User getUser(String sUser, String sPwd) throws UserAuthenticationException ; 66 67 75 public User getUser(String sUser) throws UserAuthenticationException; 76 77 78 85 public boolean isUserLockedOut(String sUserName) throws UserAuthenticationException; 86 87 public boolean hasPasswordExpired(User usr) throws UserAuthenticationException; 88 } 89 | Popular Tags |