Package dev.sigstore.rekor.client
Interface RekorResponse
-
@Immutable public interface RekorResponseRepresentation of a rekor response with the log location, raw log string and parsed log information.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description RekorEntrygetEntry()Returns theRekorEntryrepresentation of the entry on the log.java.net.URIgetEntryLocation()Path to the rekor entry on the log.java.lang.StringgetRaw()Returns the raw response from the rekor request.java.lang.StringgetUuid()Returns the log uuid of entry represented bygetEntry().static RekorResponsenewRekorResponse(java.net.URI entryLocation, java.lang.String rawResponse)Create a RekorResponse from raw http response 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 headersrawResponse- the body of the rekor response as a string- Returns:
- an immutable
RekorResponseinstance - 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.
-
getEntry
RekorEntry getEntry()
Returns theRekorEntryrepresentation of the entry on the log.
-
getUuid
java.lang.String getUuid()
Returns the log uuid of entry represented bygetEntry().
-
getRaw
java.lang.String getRaw()
Returns the raw response from the rekor request.
-
-