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 enum
static enum
static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]
private final byte[]
private final SignedCertificateTimestamp.Origin
private final DigitallySigned
private final long
private final SignedCertificateTimestamp.Version
-
Constructor Summary
ConstructorsConstructorDescriptionSignedCertificateTimestamp
(SignedCertificateTimestamp.Version version, byte[] logId, long timestamp, byte[] extensions, DigitallySigned signature, SignedCertificateTimestamp.Origin origin) -
Method Summary
Modifier and TypeMethodDescriptionstatic SignedCertificateTimestamp
decode
(byte[] input, SignedCertificateTimestamp.Origin origin) Decode a TLS encoded SignedCertificateTimestamp structure.static SignedCertificateTimestamp
decode
(InputStream input, SignedCertificateTimestamp.Origin origin) Decode a TLS encoded SignedCertificateTimestamp structure.void
encodeTBS
(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
-
Field Details
-
version
-
logId
private final byte[] logId -
timestamp
private final long timestamp -
extensions
private final byte[] extensions -
signature
-
origin
-
-
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
-