portachiavi
Class Portachiavi

java.lang.Object
  extended by portachiavi.Portachiavi
All Implemented Interfaces:
Serializable, IPortachiavi

public class Portachiavi
extends Object
implements Serializable, IPortachiavi

See Also:
Serialized Form

Constructor Summary
Portachiavi()
          Costruttore
 
Method Summary
 boolean addEntry(String id, ILoginData auth)
           
 void export2TextFile(File textFile)
           
 Set<String> getEntryList()
           
 HashMap<String,ILoginData> getList()
           
 void loadList(char[] password, File objFile, File keyFile)
           
 void removeEntry(String id)
           
 void saveList(char[] password, File objFile, File keyFile)
           
 ILoginData searchEntry(String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Portachiavi

public Portachiavi()
Costruttore

Method Detail

addEntry

public boolean addEntry(String id,
                        ILoginData auth)
Specified by:
addEntry in interface IPortachiavi
Returns:

export2TextFile

public void export2TextFile(File textFile)
                     throws IOException
Specified by:
export2TextFile in interface IPortachiavi
Throws:
IOException

getEntryList

public Set<String> getEntryList()
Specified by:
getEntryList in interface IPortachiavi
Returns:

getList

public HashMap<String,ILoginData> getList()
Specified by:
getList in interface IPortachiavi
Returns:

loadList

public void loadList(char[] password,
                     File objFile,
                     File keyFile)
              throws IOException,
                     ClassNotFoundException,
                     InvalidKeyException,
                     NoSuchAlgorithmException,
                     KeyLoadingException
Specified by:
loadList in interface IPortachiavi
Throws:
IOException
ClassNotFoundException
InvalidKeyException
NoSuchAlgorithmException
KeyLoadingException

removeEntry

public void removeEntry(String id)
                 throws EntryNotFoundException
Specified by:
removeEntry in interface IPortachiavi
Throws:
EntryNotFoundException

saveList

public void saveList(char[] password,
                     File objFile,
                     File keyFile)
              throws NoSuchAlgorithmException,
                     NoSuchPaddingException,
                     InvalidKeyException,
                     IllegalBlockSizeException,
                     IOException,
                     KeySavingException
Specified by:
saveList in interface IPortachiavi
Throws:
NoSuchAlgorithmException
NoSuchPaddingException
InvalidKeyException
IllegalBlockSizeException
IOException
KeySavingException

searchEntry

public ILoginData searchEntry(String id)
                       throws EntryNotFoundException
Specified by:
searchEntry in interface IPortachiavi
Returns:
Throws:
EntryNotFoundException