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

    Constructors
    Constructor
    Description
    FileSystemEncryptionServer(org.refcodes.filesystem.FileSystem aFileSystem, String aDataStorePath)
    Constructs the server with the required services and configuration passed.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addCipherVersion(String aNameSpace, org.refcodes.forwardsecrecy.CipherVersion aCipherVersion)
    void

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 from
      aDataStorePath - 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 interface org.refcodes.forwardsecrecy.EncryptionServer
      Throws:
      org.refcodes.forwardsecrecy.CipherUidAlreadyInUseException
    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.refcodes.component.Destroyable