Package org.webpki.json
Class JSONEncoder
java.lang.Object
org.webpki.json.JSONEncoder
- Direct Known Subclasses:
AuthenticationRequestEncoder
,AuthenticationResponseEncoder
,CredentialDiscoveryRequestEncoder
,CredentialDiscoveryResponseEncoder
,InvocationRequestEncoder
,InvocationResponseEncoder
,KeyCreationRequestEncoder
,KeyCreationResponseEncoder
,ProvisioningFinalizationRequestEncoder
,ProvisioningFinalizationResponseEncoder
,ProvisioningInitializationRequestEncoder
,ProvisioningInitializationResponseEncoder
Base class for java classes which are used for creating specific JSON object types.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
Emulation of XML namespaceOptional type indicator for JSON objects belonging to the same@context
.byte[]
serializeJSONDocument
(JSONOutputFormats outputFormat) protected abstract void
INTERNAL USE ONLY.
-
Constructor Details
-
JSONEncoder
protected JSONEncoder()INTERNAL USE ONLY.
-
-
Method Details
-
writeJSONData
INTERNAL USE ONLY.- Parameters:
wr
- A JSON writer
-
getContext
Emulation of XML namespace- Returns:
- The context name
-
getQualifier
Optional type indicator for JSON objects belonging to the same@context
.- Returns:
- The qualifier name
-
serializeJSONDocument
- Parameters:
outputFormat
- The wanted formatting- Returns:
- Document in JSON [binary] format
-