Package org.conscrypt.ct
Class SignedCertificateTimestamp
- java.lang.Object
-
- org.conscrypt.ct.SignedCertificateTimestamp
-
public class SignedCertificateTimestamp extends Object
SignedCertificateTimestamp structure, as defined by RFC6962 Section 3.2.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSignedCertificateTimestamp.Originstatic classSignedCertificateTimestamp.SignatureTypestatic classSignedCertificateTimestamp.Version
-
Constructor Summary
Constructors Constructor Description SignedCertificateTimestamp(SignedCertificateTimestamp.Version version, byte[] logId, long timestamp, byte[] extensions, DigitallySigned signature, SignedCertificateTimestamp.Origin origin)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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[]getExtensions()byte[]getLogID()SignedCertificateTimestamp.OrigingetOrigin()DigitallySignedgetSignature()longgetTimestamp()SignedCertificateTimestamp.VersiongetVersion()
-
-
-
Constructor Detail
-
SignedCertificateTimestamp
public SignedCertificateTimestamp(SignedCertificateTimestamp.Version version, byte[] logId, long timestamp, byte[] extensions, DigitallySigned signature, SignedCertificateTimestamp.Origin origin)
-
-
Method Detail
-
getVersion
public SignedCertificateTimestamp.Version getVersion()
-
getLogID
public byte[] getLogID()
-
getTimestamp
public long getTimestamp()
-
getExtensions
public byte[] getExtensions()
-
getSignature
public DigitallySigned getSignature()
-
getOrigin
public SignedCertificateTimestamp.Origin 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
public byte[] encodeTBS(CertificateEntry certEntry) throws SerializationException
TLS encode the signed part of the SCT, as described by RFC6962 section 3.2.- Throws:
SerializationException
-
-