Class ReencryptStateUtils


  • public class ReencryptStateUtils
    extends Object
    • Constructor Detail

      • ReencryptStateUtils

        public ReencryptStateUtils()
    • Method Detail

      • state

        public static long state​(int idx,
                                 int total)
        Parameters:
        idx - Index of the last reencrypted page.
        total - Total pages to be reencrypted.
        Returns:
        Reencryption status.
      • pageIndex

        public static int pageIndex​(long state)
        Parameters:
        state - Reencryption status.
        Returns:
        Index of the last reencrypted page.
      • pageCount

        public static int pageCount​(long state)
        Parameters:
        state - Reencryption status.
        Returns:
        Total pages to be reencrypted.