Class LogInfo

java.lang.Object
org.conscrypt.ct.LogInfo

@Internal public class LogInfo 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

    • STATE_UNKNOWN

      public static final int STATE_UNKNOWN
      See Also:
    • STATE_PENDING

      public static final int STATE_PENDING
      See Also:
    • STATE_QUALIFIED

      public static final int STATE_QUALIFIED
      See Also:
    • STATE_USABLE

      public static final int STATE_USABLE
      See Also:
    • STATE_READONLY

      public static final int STATE_READONLY
      See Also:
    • STATE_RETIRED

      public static final int STATE_RETIRED
      See Also:
    • STATE_REJECTED

      public static final int STATE_REJECTED
      See Also:
    • logId

      private final byte[] logId
    • publicKey

      private final PublicKey publicKey
    • state

      private final int state
    • stateTimestamp

      private final long stateTimestamp
    • description

      private final String description
    • url

      private final String url
    • operator

      private final String operator
  • 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()
    • getState

      public int getState()
    • getStateAt

      public int getStateAt(long when)
    • getStateTimestamp

      public long getStateTimestamp()
    • getOperator

      public String getOperator()
    • 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