public class C509Extensions
extends java.lang.Object
Extensions = [ * Extension ] / intAn omitted X.509 extensions field is an empty CBOR array. When the only extension present is an int-coded keyUsage, the array is elided and the field is a single CBOR int whose absolute value is the keyUsage value and whose sign is the criticality.
| Modifier and Type | Method and Description |
|---|---|
static C509Extensions |
fromX509Extensions(org.bouncycastle.asn1.x509.Extensions x509Extensions)
Build the C509 form of a set of X.509 extensions.
|
C509Extension |
getExtension(int index)
Return the extension at the given index, in certificate order.
|
int |
size()
Return the number of extensions.
|
org.bouncycastle.asn1.x509.Extensions |
toX509Extensions()
Return the X.509 view of the extensions, or null when there are none (an
omitted X.509 extensions field).
|
public static C509Extensions fromX509Extensions(org.bouncycastle.asn1.x509.Extensions x509Extensions)
public int size()
public C509Extension getExtension(int index)
public org.bouncycastle.asn1.x509.Extensions toX509Extensions()