Class KeyCreationResponseEncoder

java.lang.Object
org.webpki.json.JSONEncoder
org.webpki.keygen2.KeyCreationResponseEncoder

public class KeyCreationResponseEncoder extends JSONEncoder
  • Constructor Details

  • Method Details

    • addPublicKey

      public void addPublicKey(PublicKey publicKey, byte[] attestation, String id)
    • writeJSONData

      protected void writeJSONData(JSONObjectWriter wr)
      Description copied from class: JSONEncoder
      INTERNAL USE ONLY.
      Specified by:
      writeJSONData in class JSONEncoder
      Parameters:
      wr - A JSON writer
    • getQualifier

      public String getQualifier()
      Description copied from class: JSONEncoder
      Optional type indicator for JSON objects belonging to the same @context.
      Overrides:
      getQualifier in class JSONEncoder
      Returns:
      The qualifier name
    • getContext

      public String getContext()
      Description copied from class: JSONEncoder
      Emulation of XML namespace
      Specified by:
      getContext in class JSONEncoder
      Returns:
      The context name