Package com.nimbusds.jose
Interface JSONSerializable
-
public interface JSONSerializableProvides JSON serialization of the JOSE Object.- Version:
- 2021-08-17
- Author:
- Alexander Martynov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>toFlattenedJSONObject()Returns a Flattened JSON object representation of the JOSE Object.java.util.Map<java.lang.String,java.lang.Object>toGeneralJSONObject()Returns a General JSON object representation of the JOSE Object.
-
-
-
Method Detail
-
toGeneralJSONObject
java.util.Map<java.lang.String,java.lang.Object> toGeneralJSONObject()
Returns a General JSON object representation of the JOSE Object.- Returns:
- The JSON object.
- Throws:
java.lang.IllegalStateException- If the JOSE object is not in a state that permits serialisation.
-
toFlattenedJSONObject
java.util.Map<java.lang.String,java.lang.Object> toFlattenedJSONObject()
Returns a Flattened JSON object representation of the JOSE Object.- Returns:
- The JSON object.
- Throws:
java.lang.IllegalStateException- If the JOSE object is not in a state that permits serialisation.
-
-