Class SignedCertificateTimestamp
- java.lang.Object
-
- dev.sigstore.encryption.certificates.transparency.SignedCertificateTimestamp
-
public class SignedCertificateTimestamp extends java.lang.ObjectSignedCertificateTimestamp 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(java.io.InputStream input, SignedCertificateTimestamp.Origin origin)Decode a TLS encoded SignedCertificateTimestamp structure.byte[]encodeTBS(CertificateEntry certEntry)TLS encode the signed part of the SCT, as described by RFC6962 section 3.2.voidencodeTBS(java.io.OutputStream output, 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(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 SerializationExceptionTLS 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
-
-