test_class.file: model/jpa/src/test/java/org/keycloak/storage/jpa/KeyUtilsTest.java
test_class.identifier: KeyUtilsTest
test_case.body: @Test
      public void testValidKeys() {
          assertTrue(KeyUtils.isValidKey(UUID.randomUUID().toString()));
          assertTrue(KeyUtils.isValidKey("01234567-1234-1234-aAAa-123456789012"));
          assertTrue(KeyUtils.isValidKey("01234567-1234-1234-aAAf-123456789012"));
  
          assertTrue(KeyUtils.isValidKey("f:" + UUID.randomUUID() + ":dsadsada"));
          assertTrue(KeyUtils.isValidKey("f:01234567-1234-1234-aAAa-123456789012:dsadsada"));
          assertTrue(KeyUtils.isValidKey("f:a1234567-1234-1234-aAAa-123456789012:dsadsada"));
      }
test_case.class_method_signature: KeyUtilsTest.testValidKeys()
test_case.full_signature: @Test public void testValidKeys()
test_case.identifier: testValidKeys
test_case.invocations: assertTrue isValidKey toString randomUUID assertTrue isValidKey assertTrue isValidKey assertTrue isValidKey randomUUID assertTrue isValidKey assertTrue isValidKey
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testValidKeys()
focal_class.declarator: LOG = Logger.getLogger(KeyUtils.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = Logger.getLogger(KeyUtils.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: UUID_PATTERN = Pattern.compile("[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}")
focal_class.modifier: public static final
focal_class.original_string: public static final Pattern UUID_PATTERN = Pattern.compile("[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}");
focal_class.type: Pattern
focal_class.var_name: UUID_PATTERN
focal_class.declarator: EXPECTED_KEY_PATTERN = Pattern.compile(
        UUID_PATTERN.pattern()
        + "|"
        + "f:" + UUID_PATTERN.pattern() + ":.*"
      )
focal_class.modifier: public static final
focal_class.original_string: public static final Pattern EXPECTED_KEY_PATTERN = Pattern.compile(
        UUID_PATTERN.pattern()
        + "|"
        + "f:" + UUID_PATTERN.pattern() + ":.*"
      );
focal_class.type: Pattern
focal_class.var_name: EXPECTED_KEY_PATTERN
focal_class.file: model/jpa/src/main/java/org/keycloak/storage/jpa/KeyUtils.java
focal_class.identifier: KeyUtils
focal_class.class_method_signature: KeyUtils.isValidKey(String key)
focal_class.full_signature: public static boolean isValidKey(String key)
focal_class.identifier: isValidKey
focal_class.modifiers: public static
focal_class.parameters: (String key)
focal_class.return: boolean
focal_class.signature: boolean isValidKey(String key)
focal_class.class_method_signature: KeyUtils.assertValidKey(String key)
focal_class.full_signature: public static void assertValidKey(String key)
focal_class.identifier: assertValidKey
focal_class.modifiers: public static
focal_class.parameters: (String key)
focal_class.return: void
focal_class.signature: void assertValidKey(String key)
focal_method.body: public static boolean isValidKey(String key) {
          return key == null || EXPECTED_KEY_PATTERN.matcher(key).matches();
      }
focal_method.class_method_signature: KeyUtils.isValidKey(String key)
focal_method.full_signature: public static boolean isValidKey(String key)
focal_method.identifier: isValidKey
focal_method.invocations: matches matcher
focal_method.modifiers: public static
focal_method.parameters: (String key)
focal_method.return: boolean
focal_method.signature: boolean isValidKey(String key)