Bouncy Castle Cryptography Library 1.87

org.bouncycastle.cert.ct
Class TransItemList

java.lang.Object
  extended byorg.bouncycastle.cert.ct.TransItemList

public class TransItemList
extends java.lang.Object

RFC 9162 (CT v2) : 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 getInstance(byte[]) consumes and getEncoded() produces - are the bare TLS encoding. RFC 9162 sec. 7.1 requires the list to be wrapped in an additional OCTET STRING () which is then put in the extension's , so the list bytes are the contents of an OCTET STRING nested inside ; fromExtensions(Extensions) removes that inner OCTET STRING.

For RFC 6962 (CT v1), the analogous list type is SignedCertificateTimestampList; the two formats are not interchangeable.


Constructor Summary
TransItemList(TransItem[] items)
           
 
Method Summary
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 the X509ObjectIdentifiers.id_ce_ct_transparencyInformation certificate extension, if present. Returns when the extension is absent.


getItems

public java.util.List getItems()
The decoded TransItems, in wire order.


size

public int size()

getEncoded

public byte[] getEncoded()

Bouncy Castle Cryptography Library 1.87