Class CTLogInfo
- java.lang.Object
-
- dev.sigstore.encryption.certificates.transparency.CTLogInfo
-
public class CTLogInfo extends java.lang.ObjectProperties about a Certificate Transparency Log. This object stores information about a CT log, its public key, description and URL. It allows verification of SCTs against the log's public key.
-
-
Constructor Summary
Constructors Constructor Description CTLogInfo(java.security.PublicKey publicKey, java.lang.String description, java.lang.String url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)java.lang.StringgetDescription()byte[]getID()Get the log's ID, that is the SHA-256 hash of it's public keyjava.security.PublicKeygetPublicKey()java.lang.StringgetUrl()inthashCode()VerifiedSCT.StatusverifySingleSCT(SignedCertificateTimestamp sct, CertificateEntry entry)Verify the signature of a signed certificate timestamp for the given certificate entry against the log's public key.
-
-
-
Method Detail
-
getID
public byte[] getID()
Get the log's ID, that is the SHA-256 hash of it's public key
-
getPublicKey
public java.security.PublicKey getPublicKey()
-
getDescription
public java.lang.String getDescription()
-
getUrl
public java.lang.String getUrl()
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
verifySingleSCT
public VerifiedSCT.Status verifySingleSCT(SignedCertificateTimestamp sct, CertificateEntry entry)
Verify the signature of a signed certificate timestamp for the given certificate entry against the log's public key.- Returns:
- the result of the verification
-
-