Package org.keycloak.storage.jpa
Class KeyUtils
java.lang.Object
org.keycloak.storage.jpa.KeyUtils
- Author:
- hmlnarik
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertValidKey
(String key) Logs an warning when the key is not a valid keystatic boolean
isValidKey
(String key) Returns true when the key isnull
or either a plain UUID or a key formatted as "f:[UUID]:any_string"
-
Field Details
-
UUID_PATTERN
-
EXPECTED_KEY_PATTERN
-
-
Constructor Details
-
KeyUtils
public KeyUtils()
-
-
Method Details
-
isValidKey
Returns true when the key isnull
or either a plain UUID or a key formatted as "f:[UUID]:any_string"- Parameters:
key
- String representation of the key- Returns:
-
assertValidKey
Logs an warning when the key is not a valid key- Parameters:
key
- String representation of the key- Throws:
IllegalArgumentException
-