Class FileSystemEncryptionServer
java.lang.Object
org.refcodes.forwardsecrecy.alt.filesystem.FileSystemEncryptionServer
- All Implemented Interfaces:
org.refcodes.component.Component
,org.refcodes.component.Destroyable
,org.refcodes.forwardsecrecy.EncryptionServer
public class FileSystemEncryptionServer
extends Object
implements org.refcodes.forwardsecrecy.EncryptionServer, org.refcodes.component.Component
Abstract file system based implementation for non abstract
EncryptionServer
implementations.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.component.Destroyable
org.refcodes.component.Destroyable.DestroyAutomaton
-
Constructor Summary
ConstructorDescriptionFileSystemEncryptionServer
(org.refcodes.filesystem.FileSystem aFileSystem, String aDataStorePath) Constructs the server with the required services and configuration passed. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCipherVersion
(String aNameSpace, org.refcodes.forwardsecrecy.CipherVersion aCipherVersion) void
destroy()
-
Constructor Details
-
FileSystemEncryptionServer
public FileSystemEncryptionServer(org.refcodes.filesystem.FileSystem aFileSystem, String aDataStorePath) Constructs the server with the required services and configuration passed.- Parameters:
aFileSystem
- The data store service where to retrieve the Cipher-Versions fromaDataStorePath
- The directory where the cryptography relevant data is being persisted
-
-
Method Details
-
addCipherVersion
public void addCipherVersion(String aNameSpace, org.refcodes.forwardsecrecy.CipherVersion aCipherVersion) throws org.refcodes.forwardsecrecy.CipherUidAlreadyInUseException - Specified by:
addCipherVersion
in interfaceorg.refcodes.forwardsecrecy.EncryptionServer
- Throws:
org.refcodes.forwardsecrecy.CipherUidAlreadyInUseException
-
destroy
public void destroy()- Specified by:
destroy
in interfaceorg.refcodes.component.Destroyable
-