Interface RekorResponse


  • @Immutable
    public interface RekorResponse
    Representation of a rekor response with the log location, raw log string and parsed log information.
    • Method Detail

      • newRekorResponse

        static RekorResponse newRekorResponse​(java.net.URI entryLocation,
                                              java.lang.String rawResponse)
                                       throws RekorParseException
        Create a RekorResponse from raw http response information.

        A raw http response looks something like:

         {
           "dbf7b3f960d0d5853f80dfc968779554a628b44a30a4c8a2084b5bd2f6970085": {  // log uuid
             "body": "eyJhcGlWZX...UzBLIn19fX0=",
             "integratedTime": 1653410800,
             "logID": "d32f30a3...18723a1bea496",
             "logIndex": 52,
             "verification": {
              "signedEntryTimestamp": "MEYCIQCYufGO...Oc9UAqVb+dCCl"
             }
           }
         }
         
        Parameters:
        entryLocation - the entry location from the http headers
        rawResponse - the body of the rekor response as a string
        Returns:
        an immutable RekorResponse instance
        Throws:
        RekorParseException - if the rawResponse doesn't parse directly to a single rekor entry
      • getEntryLocation

        java.net.URI getEntryLocation()
        Path to the rekor entry on the log.
      • getUuid

        java.lang.String getUuid()
        Returns the log uuid of entry represented by getEntry().
      • getRaw

        java.lang.String getRaw()
        Returns the raw response from the rekor request.