Class JSONDecoder

java.lang.Object
org.webpki.json.JSONDecoder
Direct Known Subclasses:
AuthenticationRequestDecoder, AuthenticationResponseDecoder, CredentialDiscoveryRequestDecoder, CredentialDiscoveryResponseDecoder, InvocationRequestDecoder, InvocationResponseDecoder, KeyCreationRequestDecoder, KeyCreationResponseDecoder, ProvisioningFinalizationRequestDecoder, ProvisioningFinalizationResponseDecoder, ProvisioningInitializationRequestDecoder, ProvisioningInitializationResponseDecoder

public abstract class JSONDecoder extends Object
Base class for java classes which can be created from specific JSON object types.

It is designed to use JSONDecoderCache to get automatic instantiation.

  • Constructor Details

    • JSONDecoder

      public JSONDecoder()
  • Method Details

    • readJSONData

      protected abstract void readJSONData(JSONObjectReader rd)
      INTERNAL USE ONLY.
      Parameters:
      rd - A JSON reader
    • getContext

      public abstract String getContext()
      Emulation of XML namespace
      Returns:
      The context name
    • getQualifier

      public String getQualifier()
      Optional type indicator for JSON objects belonging to the same @context.
      Returns:
      The qualifier name
    • getWriter

      public JSONObjectWriter getWriter()