Package org.conscrypt.ct
Class SignedCertificateTimestamp
java.lang.Object
org.conscrypt.ct.SignedCertificateTimestamp
SignedCertificateTimestamp structure, as defined by RFC6962 Section 3.2.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionSignedCertificateTimestamp(SignedCertificateTimestamp.Version version, byte[] logId, long timestamp, byte[] extensions, DigitallySigned signature, SignedCertificateTimestamp.Origin origin) -
Method Summary
Modifier and TypeMethodDescriptionstatic SignedCertificateTimestampdecode(byte[] input, SignedCertificateTimestamp.Origin origin) Decode a TLS encoded SignedCertificateTimestamp structure.static SignedCertificateTimestampdecode(InputStream input, SignedCertificateTimestamp.Origin origin) Decode a TLS encoded SignedCertificateTimestamp structure.voidencodeTBS(OutputStream output, CertificateEntry certEntry) TLS encode the signed part of the SCT, as described by RFC6962 section 3.2.byte[]encodeTBS(CertificateEntry certEntry) TLS encode the signed part of the SCT, as described by RFC6962 section 3.2.byte[]byte[]getLogID()long
-
Constructor Details
-
SignedCertificateTimestamp
public SignedCertificateTimestamp(SignedCertificateTimestamp.Version version, byte[] logId, long timestamp, byte[] extensions, DigitallySigned signature, SignedCertificateTimestamp.Origin origin)
-
-
Method Details
-
getVersion
-
getLogID
public byte[] getLogID() -
getTimestamp
public long getTimestamp() -
getExtensions
public byte[] getExtensions() -
getSignature
-
getOrigin
-
decode
public static SignedCertificateTimestamp decode(InputStream input, SignedCertificateTimestamp.Origin origin) throws SerializationException Decode a TLS encoded SignedCertificateTimestamp structure.- Throws:
SerializationException
-
decode
public static SignedCertificateTimestamp decode(byte[] input, SignedCertificateTimestamp.Origin origin) throws SerializationException Decode a TLS encoded SignedCertificateTimestamp structure.- Throws:
SerializationException
-
encodeTBS
public void encodeTBS(OutputStream output, CertificateEntry certEntry) throws SerializationException TLS encode the signed part of the SCT, as described by RFC6962 section 3.2.- Throws:
SerializationException
-
encodeTBS
TLS encode the signed part of the SCT, as described by RFC6962 section 3.2.- Throws:
SerializationException
-