1 17 package org.alfresco.repo.security.authentication; 18 19 import java.util.Date ; 20 21 import net.sf.acegisecurity.providers.dao.AuthenticationDao; 22 import net.sf.acegisecurity.providers.dao.SaltSource; 23 24 30 public interface MutableAuthenticationDao extends AuthenticationDao, SaltSource 31 { 32 39 public void createUser(String userName, char[] rawPassword) throws AuthenticationException; 40 41 48 public void updateUser(String userName, char[] rawPassword) throws AuthenticationException; 49 50 56 public void deleteUser(String userName) throws AuthenticationException; 57 58 64 public boolean userExists(String userName); 65 66 72 public void setEnabled(String userName, boolean enabled); 73 74 80 public boolean getEnabled(String userName); 81 82 88 public void setAccountExpires(String userName, boolean expires); 89 90 96 97 public boolean getAccountExpires(String userName); 98 99 105 public boolean getAccountHasExpired(String userName); 106 107 113 public void setCredentialsExpire(String userName, boolean expires); 114 115 121 public boolean getCredentialsExpire(String userName); 122 123 129 public boolean getCredentialsHaveExpired(String userName); 130 131 137 public void setLocked(String userName, boolean locked); 138 139 145 public boolean getAccountlocked(String userName); 146 147 153 public void setAccountExpiryDate(String userName, Date exipryDate); 154 155 161 public Date getAccountExpiryDate(String userName); 162 163 169 public void setCredentialsExpiryDate(String userName, Date exipryDate); 170 171 177 public Date getCredentialsExpiryDate(String userName); 178 179 185 public String getMD4HashedPassword(String userName); 186 187 192 public boolean getUserNamesAreCaseSensitive(); 193 194 } 195 | Popular Tags |