Package org.conscrypt.ct
Class SignedCertificateTimestamp
- java.lang.Object
-
- org.conscrypt.ct.SignedCertificateTimestamp
-
@Internal public class SignedCertificateTimestamp extends java.lang.Object
SignedCertificateTimestamp structure, as defined by RFC6962 Section 3.2.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SignedCertificateTimestamp.Origin
static class
SignedCertificateTimestamp.SignatureType
static class
SignedCertificateTimestamp.Version
-
Field Summary
Fields Modifier and Type Field Description private byte[]
extensions
private byte[]
logId
private SignedCertificateTimestamp.Origin
origin
private DigitallySigned
signature
private long
timestamp
private SignedCertificateTimestamp.Version
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 SignedCertificateTimestamp
decode(byte[] input, SignedCertificateTimestamp.Origin origin)
Decode a TLS encoded SignedCertificateTimestamp structure.static SignedCertificateTimestamp
decode(java.io.InputStream input, SignedCertificateTimestamp.Origin origin)
Decode a TLS encoded SignedCertificateTimestamp structure.void
encodeTBS(java.io.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.Origin
getOrigin()
DigitallySigned
getSignature()
long
getTimestamp()
SignedCertificateTimestamp.Version
getVersion()
-
-
-
Field Detail
-
version
private final SignedCertificateTimestamp.Version version
-
logId
private final byte[] logId
-
timestamp
private final long timestamp
-
extensions
private final byte[] extensions
-
signature
private final DigitallySigned signature
-
origin
private final SignedCertificateTimestamp.Origin origin
-
-
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(java.io.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(java.io.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
-
-