Class InMemoryCryptoEngine

    • Constructor Detail

      • InMemoryCryptoEngine

        public InMemoryCryptoEngine()
        Constructs an InMemoryCryptoEngine. There are no parameters to configure.
    • Method Detail

      • getKey

        public SecretKey getKey​(String id)
        Description copied from interface: CryptoEngine
        Retrieves the key for a given id.
        Parameters:
        id - the id of the SecretKey
        Returns:
        the existing SecretKey associated with the id, or null if no such key exists
      • deleteKey

        public void deleteKey​(String id)
        Description copied from interface: CryptoEngine
        Deletes the key for a given id. Does nothing if the key doesn't exist.
        Parameters:
        id - the id of the SecretKey