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
Modifier and TypeMethodDescriptionReturns a Flattened JSON object representation of the JOSE Object.Returns a General JSON object representation of the JOSE Object.
-
Method Details
-
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
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.
-