Class KeyUtils


  • public class KeyUtils
    extends Object
    Author:
    hmlnarik
    • Field Detail

      • UUID_PATTERN

        public static final Pattern UUID_PATTERN
      • EXPECTED_KEY_PATTERN

        public static final Pattern EXPECTED_KEY_PATTERN
    • Constructor Detail

      • KeyUtils

        public KeyUtils()
    • Method Detail

      • isValidKey

        public static boolean isValidKey​(String key)
        Returns true when the key is null or either a plain UUID or a key formatted as "f:[UUID]:any_string"
        Parameters:
        key - String representation of the key
        Returns: