Class 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 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
      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​()
      • Methods inherited from class java.lang.Object

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

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