Class 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.
    • Constructor Detail

      • 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 Detail

      • 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