Class FileSystemEncryptionServerImpl
- java.lang.Object
-
- org.refcodes.forwardsecrecy.alt.filesystem.FileSystemEncryptionServerImpl
-
- All Implemented Interfaces:
org.refcodes.component.Component
,org.refcodes.component.Destroyable
,org.refcodes.forwardsecrecy.EncryptionServer
public class FileSystemEncryptionServerImpl extends java.lang.Object implements org.refcodes.forwardsecrecy.EncryptionServer, org.refcodes.component.Component
Abstract file system based implementation for non abstractEncryptionServer
implementations.
-
-
Constructor Summary
Constructors Constructor Description FileSystemEncryptionServerImpl(org.refcodes.filesystem.FileSystem aFileSystem, java.lang.String aDataStorePath)
Constructs the server with the required services and configuration passed.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCipherVersion(java.lang.String aNameSpace, org.refcodes.forwardsecrecy.CipherVersion aCipherVersion)
void
destroy()
-
-
-
Constructor Detail
-
FileSystemEncryptionServerImpl
public FileSystemEncryptionServerImpl(org.refcodes.filesystem.FileSystem aFileSystem, java.lang.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 Detail
-
addCipherVersion
public void addCipherVersion(java.lang.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
-
-