Package org.syncany.config.to
Class MasterTO
- java.lang.Object
-
- org.syncany.config.to.MasterTO
-
public class MasterTO extends java.lang.Object
The master transfer object is used to create and load the master file from/to XML. The master file only contains the salt for the master key.The master file is stored locally and on the remote storage. The salt is used to create the master key from a password.
It uses the Simple framework for XML serialization, and its corresponding annotation-based configuration.
- See Also:
- Simple framework
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
commit()
byte[]
getSalt()
void
prepare()
void
release()
void
save(java.io.File file)
void
setSalt(byte[] salt)
-
-
-
Method Detail
-
getSalt
public byte[] getSalt()
-
setSalt
public void setSalt(byte[] salt)
-
save
public void save(java.io.File file) throws ConfigException
- Throws:
ConfigException
-
prepare
public void prepare()
-
release
public void release()
-
commit
public void commit()
-
-