Package com.nimbusds.jose
Interface JSONSerializable
-
public interface JSONSerializable
Provides 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 Map<String,Object>
toFlattenedJSONObject()
Returns a Flattened JSON object representation of the JOSE Object.Map<String,Object>
toGeneralJSONObject()
Returns a General JSON object representation of the JOSE Object.
-
-
-
Method Detail
-
toGeneralJSONObject
Map<String,Object> toGeneralJSONObject()
Returns a General JSON object representation of the JOSE Object.- Returns:
- The JSON object.
- Throws:
IllegalStateException
- If the JOSE object is not in a state that permits serialisation.
-
toFlattenedJSONObject
Map<String,Object> toFlattenedJSONObject()
Returns a Flattened JSON object representation of the JOSE Object.- Returns:
- The JSON object.
- Throws:
IllegalStateException
- If the JOSE object is not in a state that permits serialisation.
-
-