org.refcodes.component.Component
, org.refcodes.component.Destroyable
, org.refcodes.forwardsecrecy.EncryptionServer
public class FileSystemEncryptionServerImpl extends Object implements org.refcodes.forwardsecrecy.EncryptionServer, org.refcodes.component.Component
EncryptionServer
implementations.Constructor | Description |
---|---|
FileSystemEncryptionServerImpl(org.refcodes.filesystem.FileSystem aFileSystem,
String aDataStorePath) |
Constructs the server with the required services and configuration
passed.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addCipherVersion(String aNameSpace,
org.refcodes.forwardsecrecy.CipherVersion aCipherVersion) |
|
void |
destroy() |
public FileSystemEncryptionServerImpl(org.refcodes.filesystem.FileSystem aFileSystem, String aDataStorePath)
aFileSystem
- The data store service where to retrieve the
Cipher-Versions fromaDataStorePath
- The directory where the cryptography relevant data
is being persistedpublic void addCipherVersion(String aNameSpace, org.refcodes.forwardsecrecy.CipherVersion aCipherVersion) throws org.refcodes.forwardsecrecy.CipherUidAlreadyInUseException
addCipherVersion
in interface org.refcodes.forwardsecrecy.EncryptionServer
org.refcodes.forwardsecrecy.CipherUidAlreadyInUseException
public void destroy()
destroy
in interface org.refcodes.component.Destroyable
Copyright © 2018. All rights reserved.