Interface RekorEntryBody


  • @TypeAdapters
    @Immutable
    public interface RekorEntryBody
    A representation of the body of a RekorEntry. The "spec" remains unparsed and should be parsed into specific types after inspecting kind and apiVersion. Format example. e.g.
     {
       "apiVersion": "0.0.1",
       "kind": "hashedrekord",
       "spec": {
         "data": {
           "hash": {
             "algorithm": "sha256",
             "value": "..."
           }
         },
         "signature": {
           "content": "...",
           "publicKey": {
             "content": ".."
           }
         }
       }
     }
     
    • Method Detail

      • getApiVersion

        java.lang.String getApiVersion()
      • getKind

        java.lang.String getKind()
      • getSpec

        com.google.gson.JsonElement getSpec()
        Returns spec as an unparsed JsonElement. It should parsed after verifying kind and apiVersion. See RekorTypes.