Package org.keycloak.common.util
Class StringSerialization
- java.lang.Object
-
- org.keycloak.common.util.StringSerialization
-
public class StringSerialization extends Object
Utilities to serialize objects to string. Type safety is not guaranteed here and is responsibility of the caller.- Author:
- hmlnarik
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StringSerialization.Deserializer
-
Constructor Summary
Constructors Constructor Description StringSerialization()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringSerialization.Deserializer
deserialize(String what)
static String
serialize(Object... toSerialize)
Serialize given objects as strings separated bySEPARATOR
according to the#WELL_KNOWN_SERIALIZERS
.
-
-
-
Method Detail
-
serialize
public static String serialize(Object... toSerialize)
Serialize given objects as strings separated bySEPARATOR
according to the#WELL_KNOWN_SERIALIZERS
.- Parameters:
toSerialize
-- Returns:
-
deserialize
public static StringSerialization.Deserializer deserialize(String what)
-
-