Package org.keycloak.storage.jpa
Class KeyUtils
- java.lang.Object
- 
- org.keycloak.storage.jpa.KeyUtils
 
- 
 public class KeyUtils extends Object - Author:
- hmlnarik
 
- 
- 
Field SummaryFields Modifier and Type Field Description static PatternEXPECTED_KEY_PATTERNstatic PatternUUID_PATTERN
 - 
Constructor SummaryConstructors Constructor Description KeyUtils()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidassertValidKey(String key)Logs an warning when the key is not a valid keystatic booleanisValidKey(String key)Returns true when the key isnullor either a plain UUID or a key formatted as "f:[UUID]:any_string"
 
- 
- 
- 
Method Detail- 
isValidKeypublic static boolean isValidKey(String key) Returns true when the key isnullor either a plain UUID or a key formatted as "f:[UUID]:any_string"- Parameters:
- key- String representation of the key
- Returns:
 
 - 
assertValidKeypublic static void assertValidKey(String key) throws IllegalArgumentException Logs an warning when the key is not a valid key- Parameters:
- key- String representation of the key
- Throws:
- IllegalArgumentException
 
 
- 
 
-