Package org.pac4j.vertx.core
Interface JsonConverter
-
- All Known Implementing Classes:
DefaultJsonConverter
public interface JsonConverter
Interface for encoding and decoding objects for the event bus. This is required for session attributes and the user profile.- Since:
- 1.1.0
- Author:
- Michael Remond
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
decodeObject(java.lang.Object value)
Decode the given object encoded with the encodeObject method.java.lang.Object
encodeObject(java.lang.Object value)
Encode the given object in a compatible form for the event bus.
-
-
-
Method Detail
-
encodeObject
java.lang.Object encodeObject(java.lang.Object value)
Encode the given object in a compatible form for the event bus.- Parameters:
value
- the value to encode- Returns:
- the encoded object
-
decodeObject
java.lang.Object decodeObject(java.lang.Object value)
Decode the given object encoded with the encodeObject method.- Parameters:
value
- the value to decode- Returns:
- the decoded object
-
-