public class TransItemList
extends java.lang.Object
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 and Description |
|---|
TransItemList(TransItem[] items) |
| Modifier and Type | Method and Description |
|---|---|
static TransItemList |
fromExtensions(org.bouncycastle.asn1.x509.Extensions extensions)
Recover the v2 TransItem list from the
X509ObjectIdentifiers.id_ce_ct_transparencyInformation
certificate extension, if present. |
byte[] |
getEncoded() |
static TransItemList |
getInstance(byte[] encoded) |
java.util.List |
getItems()
The decoded TransItems, in wire order.
|
int |
size() |
public TransItemList(TransItem[] items)
public static TransItemList getInstance(byte[] encoded)
public static TransItemList fromExtensions(org.bouncycastle.asn1.x509.Extensions extensions)
X509ObjectIdentifiers.id_ce_ct_transparencyInformation
certificate extension, if present. Returns null when the
extension is absent.public java.util.List getItems()
public int size()
public byte[] getEncoded()