public class KeyUtils extends Object
Modifier and Type | Field and Description |
---|---|
static Pattern |
EXPECTED_KEY_PATTERN |
static Pattern |
UUID_PATTERN |
Constructor and Description |
---|
KeyUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
assertValidKey(String key)
Logs an warning when the key is not a valid key
|
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" |
public static final Pattern UUID_PATTERN
public static final Pattern EXPECTED_KEY_PATTERN
public static boolean isValidKey(String key)
null
or either a plain UUID or a key formatted as "f:[UUID]:any_string"key
- String representation of the keypublic static void assertValidKey(String key) throws IllegalArgumentException
key
- String representation of the keyIllegalArgumentException
Copyright © 2021 JBoss by Red Hat. All rights reserved.