Package org.bouncycastle.cert.ct
Class TransItemList
- java.lang.Object
-
- org.bouncycastle.cert.ct.TransItemList
-
public class TransItemList extends java.lang.ObjectRFC 9162 (CT v2)TransItemList: the TLS-encoded structure carried inside the Transparency Information X.509v3 extension (X509ObjectIdentifiers.id_ce_ct_transparencyInformation).opaque SerializedTransItem<1..2^16-1>; struct { SerializedTransItem trans_item_list<1..2^16-1>; } TransItemList;The list bytes — i.e. what this class consumes — are the unwrapped contents of the extension's OCTET STRING value, not the OCTET STRING header itself.For RFC 6962 (CT v1), the analogous list type is
SignedCertificateTimestampList; the two formats are not interchangeable.
-
-
Constructor Summary
Constructors Constructor Description TransItemList(TransItem[] items)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TransItemListfromExtensions(org.bouncycastle.asn1.x509.Extensions extensions)Recover the v2 TransItem list from theX509ObjectIdentifiers.id_ce_ct_transparencyInformationcertificate extension, if present.byte[]getEncoded()static TransItemListgetInstance(byte[] encoded)java.util.ListgetItems()The decoded TransItems, in wire order.intsize()
-
-
-
Constructor Detail
-
TransItemList
public TransItemList(TransItem[] items)
-
-
Method Detail
-
getInstance
public static TransItemList getInstance(byte[] encoded)
-
fromExtensions
public static TransItemList fromExtensions(org.bouncycastle.asn1.x509.Extensions extensions)
Recover the v2 TransItem list from theX509ObjectIdentifiers.id_ce_ct_transparencyInformationcertificate extension, if present. Returnsnullwhen the extension is absent.
-
getItems
public java.util.List getItems()
The decoded TransItems, in wire order.
-
size
public int size()
-
getEncoded
public byte[] getEncoded()
-
-