Package dev.sigstore.trustroot
Interface TransparencyLog
-
@Immutable public interface TransparencyLog
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static java.util.Optional<TransparencyLog>find(java.util.List<TransparencyLog> all, byte[] logId, java.time.Instant time)Find a log by validity time and logId.static TransparencyLogfrom(TransparencyLogInstance proto)java.net.URIgetBaseUrl()java.lang.StringgetHashAlgorithm()LogIdgetLogId()PublicKeygetPublicKey()
-
-
-
Method Detail
-
getBaseUrl
java.net.URI getBaseUrl()
-
getHashAlgorithm
java.lang.String getHashAlgorithm()
-
getLogId
LogId getLogId()
-
getPublicKey
PublicKey getPublicKey()
-
from
static TransparencyLog from(TransparencyLogInstance proto)
-
find
static java.util.Optional<TransparencyLog> find(java.util.List<TransparencyLog> all, byte[] logId, java.time.Instant time)
Find a log by validity time and logId. This will find the first log with matching log id that was valid at the time.- Parameters:
logId- the logId of the logtime- the time the log was expected to be valid- Returns:
- the first log that was valid at
timewith logIdlogId
-
-