Package org.bouncycastle.cert.ct
Class SignedCertificateTimestampList
- java.lang.Object
-
- org.bouncycastle.cert.ct.SignedCertificateTimestampList
-
public class SignedCertificateTimestampList extends java.lang.ObjectRFC 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 this class consumes — are the unwrapped contents of the extension's OCTET STRING value (the bytes returned byExtension.getExtnValue().getOctets()), not the OCTET STRING header itself.For RFC 9162 (CT v2), the analogous list type is
TransItemList; the two formats are not interchangeable.- See Also:
X509ObjectIdentifiers.id_ce_ct_embeddedSCTList,X509ObjectIdentifiers.id_ocsp_ct_sctList
-
-
Constructor Summary
Constructors Constructor Description SignedCertificateTimestampList(SignedCertificateTimestamp[] scts)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SignedCertificateTimestampListfromExtensions(org.bouncycastle.asn1.x509.Extensions extensions)Recover the v1 SCT list from theX509ObjectIdentifiers.id_ce_ct_embeddedSCTListcertificate extension, if present.byte[]getEncoded()Serialize the list to its TLS wire form (the bytes that would be carried as the OCTET STRING contents of the embedded-SCT or OCSP-SCT extension's extnValue).static SignedCertificateTimestampListgetInstance(byte[] encoded)Decode a list from its TLS wire form (the bytes of the extension value's OCTET STRING contents).java.util.ListgetSCTs()The decoded SCTs, in wire order.intsize()
-
-
-
Constructor Detail
-
SignedCertificateTimestampList
public SignedCertificateTimestampList(SignedCertificateTimestamp[] scts)
-
-
Method Detail
-
getInstance
public static SignedCertificateTimestampList getInstance(byte[] encoded)
Decode a list from its TLS wire form (the bytes of the extension value's OCTET STRING contents).
-
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
public java.util.List getSCTs()
The decoded SCTs, in wire order.
-
size
public int size()
-
getEncoded
public byte[] getEncoded()
Serialize the list to its TLS wire form (the bytes that would be carried as the OCTET STRING contents of the embedded-SCT or OCSP-SCT extension's extnValue).
-
-