Package dev.sigstore.rekor.client
Interface RekorClient
-
- All Known Implementing Classes:
RekorClientHttp
public interface RekorClientA client to communicate with a rekor service instance.
-
-
Field Summary
Fields Modifier and Type Field Description static java.net.URIPUBLIC_GOOD_URIstatic java.net.URISTAGING_URI
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<RekorEntry>getEntry(HashedRekordRequest hashedRekordRequest)Get an entry from the logjava.util.Optional<RekorEntry>getEntry(java.lang.String UUID)Get an entry from the logRekorResponseputEntry(HashedRekordRequest hashedRekordRequest)Put a new hashedrekord entry on the Rekor log.java.util.List<java.lang.String>searchEntry(java.lang.String email, java.lang.String hash, java.lang.String publicKeyFormat, java.lang.String publicKeyContent)Returns a list of UUIDs for matching entries for the given search parameters.
-
-
-
Method Detail
-
putEntry
RekorResponse putEntry(HashedRekordRequest hashedRekordRequest) throws java.io.IOException, RekorParseException
Put a new hashedrekord entry on the Rekor log.- Parameters:
hashedRekordRequest- the request to send to rekor- Returns:
- a
RekorResponsewith information about the log entry - Throws:
java.io.IOExceptionRekorParseException
-
getEntry
java.util.Optional<RekorEntry> getEntry(HashedRekordRequest hashedRekordRequest) throws java.io.IOException, RekorParseException
Get an entry from the log- Parameters:
hashedRekordRequest- the entry to find- Returns:
- the entry if found on the log, empty otherwise
- Throws:
java.io.IOExceptionRekorParseException
-
getEntry
java.util.Optional<RekorEntry> getEntry(java.lang.String UUID) throws java.io.IOException, RekorParseException
Get an entry from the log- Parameters:
UUID- the uuid of the log entry- Returns:
- the entry if found on the log, empty otherwise
- Throws:
java.io.IOExceptionRekorParseException
-
searchEntry
java.util.List<java.lang.String> searchEntry(java.lang.String email, java.lang.String hash, java.lang.String publicKeyFormat, java.lang.String publicKeyContent) throws java.io.IOExceptionReturns a list of UUIDs for matching entries for the given search parameters.- Parameters:
email- the OIDC email subjecthash- sha256 hash of the artifactpublicKeyFormat- format of public key (one of 'pgp','x509','minisign', 'ssh', 'tuf')publicKeyContent- public key base64 encoded content- Throws:
java.io.IOException
-
-