Package eirb.pub.app.server
Class ServerVaultFile
java.lang.Object
eirb.pub.app.vault.VaultFile
eirb.pub.app.server.ServerVaultFile
-
Constructor Summary
ConstructorsConstructorDescriptionServerVaultFile(InputStream stream, UUID id, String hash) Setup ServerVaultFile attributs -
Method Summary
Methods inherited from class eirb.pub.app.vault.VaultFile
addPropertyChangeListener, emptyVaultFile, getInputStream, getName, getVault, lock, removePropertyChangeListener, saveToFile
-
Constructor Details
-
ServerVaultFile
public ServerVaultFile(InputStream stream, UUID id, String hash) throws VaultFileFormatException, VaultFileIOException Setup ServerVaultFile attributs- Parameters:
stream- , content of the VaultFileid- , id of the ServerVaultFilehash- , hash of the ServerVaultFile- Throws:
VaultFileIOException- when a IO operation failed during file parsingVaultFileFormatException- if the provided file do not respect the requirements
-
-
Method Details
-
getId
Get the id of the vault File- Returns:
- vault name
-
setId
Set the id of the vault File- Parameters:
id- , id of the VaultFile
-
getHash
Get the hash of the vault File- Returns:
- vault name
-
setHash
Set the hash of the vault File- Parameters:
hash- , hash of the VaultFile
-
setFrom
Description copied from class:VaultFileupdate important elements of cypherVault- Overrides:
setFromin classVaultFile- Throws:
VaultExceptionCipherException
-