Class SignedCertificateTimestampList
java.lang.Object
org.bouncycastle.cert.ct.SignedCertificateTimestampList
RFC 6962 (CT v1)
SignedCertificateTimestampList: the TLS-encoded
structure carried inside the embedded-SCT certificate extension and the
OCSP SCT-list extension.
opaque SerializedSCT<1..2^16-1>;
struct {
SerializedSCT sct_list<1..2^16-1>;
} SignedCertificateTimestampList;
The list bytes - i.e. what getInstance(byte[]) consumes and
getEncoded() produces - are the bare TLS encoding. In a certificate
or OCSP extension RFC 6962 sec. 3.3 encodes the list as an ASN.1 OCTET STRING,
which is then carried in the extension's extnValue, so the list bytes
are the contents of an OCTET STRING nested inside extnValue;
fromExtensions(Extensions) removes that inner OCTET STRING.
For RFC 9162 (CT v2), the analogous list type is
TransItemList; the two formats are not interchangeable.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromExtensions(org.bouncycastle.asn1.x509.Extensions extensions) Recover the v1 SCT list from theX509ObjectIdentifiers.id_ce_ct_embeddedSCTListcertificate extension, if present.byte[]Serialize the list to its TLS wire form.getInstance(byte[] encoded) Decode a list from its TLS wire form.getSCTs()The decoded SCTs, in wire order.intsize()
-
Constructor Details
-
SignedCertificateTimestampList
-
-
Method Details
-
getInstance
Decode a list from its TLS wire form. -
fromExtensions
public static SignedCertificateTimestampList fromExtensions(org.bouncycastle.asn1.x509.Extensions extensions) Recover the v1 SCT list from theX509ObjectIdentifiers.id_ce_ct_embeddedSCTListcertificate extension, if present. Returnsnullwhen the extension is absent. -
getSCTs
The decoded SCTs, in wire order. -
size
public int size() -
getEncoded
public byte[] getEncoded()Serialize the list to its TLS wire form. To carry it in the embedded-SCT or OCSP-SCT extension, wrap it in an OCTET STRING and use that as the extension value (RFC 6962 sec. 3.3).
-