Class CTLogInfo

java.lang.Object
org.conscrypt.ct.CTLogInfo

@Internal public class CTLogInfo extends Object
Properties 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.
  • Field Details

    • logId

      private final byte[] logId
    • publicKey

      private final PublicKey publicKey
    • description

      private final String description
    • url

      private final String url
  • Constructor Details

  • Method Details

    • getID

      public byte[] getID()
      Get the log's ID, that is the SHA-256 hash of it's public key
    • getPublicKey

      public PublicKey getPublicKey()
    • getDescription

      public String getDescription()
    • getUrl

      public String getUrl()
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class 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