info.informatica.security.auth
Class FileAuthenticationDatabase
java.lang.Object
info.informatica.security.auth.AuthenticationDatabase
info.informatica.security.auth.FileAuthenticationDatabase
public class FileAuthenticationDatabase
- extends AuthenticationDatabase
Base de datos de usuarios basada en fichero
- Version:
- 1.03
- Author:
- amengual
FileAuthenticationDatabase
public FileAuthenticationDatabase(Authenticator auth,
CryptFactory cryptfact)
throws AuthenticationDatabaseException
- Throws:
AuthenticationDatabaseException
load
public void load(Reader pwfileRe)
throws IOException
- Throws:
IOException
add
public void add(UserInfo user)
throws AuthenticationDatabaseException
- Specified by:
add in class AuthenticationDatabase
- Throws:
AuthenticationDatabaseException
update
public void update(UserInfo user)
throws AuthenticationDatabaseException
- Specified by:
update in class AuthenticationDatabase
- Throws:
AuthenticationDatabaseException
delete
public void delete(LoginPrincipal name)
throws AuthenticationDatabaseException
- Specified by:
delete in class AuthenticationDatabase
- Throws:
AuthenticationDatabaseException
getUserInfo
public UserInfo getUserInfo(LoginPrincipal name)
throws AuthenticationDatabaseException
- Specified by:
getUserInfo in class AuthenticationDatabase
- Throws:
AuthenticationDatabaseException
save
public void save(Writer pwfileWri)
parseLine
public UserInfo parseLine(String linea)
throws AuthenticationDatabaseException
- Parse a line with elements separated by ':'.
- Throws:
AuthenticationDatabaseException
toString
public String toString()
- Overrides:
toString in class Object