Package org.conscrypt.ct
Class CTLogInfo
- java.lang.Object
-
- org.conscrypt.ct.CTLogInfo
-
@Internal public class CTLogInfo extends java.lang.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 Summary
Fields Modifier and Type Field Description private java.lang.String
description
private byte[]
logId
private java.security.PublicKey
publicKey
private java.lang.String
url
-
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 boolean
equals(java.lang.Object other)
java.lang.String
getDescription()
byte[]
getID()
Get the log's ID, that is the SHA-256 hash of it's public keyjava.security.PublicKey
getPublicKey()
java.lang.String
getUrl()
int
hashCode()
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.
-
-
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in 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
-
-