info.informatica.security.auth
Class FileAuthenticationDatabase

java.lang.Object
  extended by info.informatica.security.auth.AuthenticationDatabase
      extended by info.informatica.security.auth.FileAuthenticationDatabase

public class FileAuthenticationDatabase
extends AuthenticationDatabase

Base de datos de usuarios basada en fichero

Version:
1.03
Author:
amengual

Constructor Summary
FileAuthenticationDatabase(Authenticator auth, CryptFactory cryptfact)
           
 
Method Summary
 void add(UserInfo user)
           
 void delete(LoginPrincipal name)
           
 UserInfo getUserInfo(LoginPrincipal name)
           
 void load(Reader pwfileRe)
           
 UserInfo parseLine(String linea)
          Parse a line with elements separated by ':'.
 void save(Writer pwfileWri)
           
 String toString()
           
 void update(UserInfo user)
           
 
Methods inherited from class info.informatica.security.auth.AuthenticationDatabase
getAuthenticator, getCryptFactory, getRoleDatabase, getSubject, setRoleDatabase
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileAuthenticationDatabase

public FileAuthenticationDatabase(Authenticator auth,
                                  CryptFactory cryptfact)
                           throws AuthenticationDatabaseException
Throws:
AuthenticationDatabaseException
Method Detail

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