public class Certificate extends Object
opaque ASN.1Cert<2^24-1>; struct { ASN.1Cert certificate_list<0..2^24-1>; } Certificate;
Certificate
Modifier and Type | Field and Description |
---|---|
protected org.bouncycastle.asn1.x509.Certificate[] |
certificateList |
static Certificate |
EMPTY_CHAIN |
Constructor and Description |
---|
Certificate(org.bouncycastle.asn1.x509.Certificate[] certificateList) |
Modifier and Type | Method and Description |
---|---|
protected org.bouncycastle.asn1.x509.Certificate[] |
cloneCertificateList() |
void |
encode(OutputStream output)
Encode this
Certificate to an OutputStream . |
org.bouncycastle.asn1.x509.Certificate |
getCertificateAt(int index) |
org.bouncycastle.asn1.x509.Certificate[] |
getCertificateList() |
int |
getLength() |
boolean |
isEmpty() |
static Certificate |
parse(InputStream input)
Parse a
Certificate from an InputStream . |
public static final Certificate EMPTY_CHAIN
protected org.bouncycastle.asn1.x509.Certificate[] certificateList
public Certificate(org.bouncycastle.asn1.x509.Certificate[] certificateList)
public org.bouncycastle.asn1.x509.Certificate[] getCertificateList()
Certificate
representing a certificate
chain.public org.bouncycastle.asn1.x509.Certificate getCertificateAt(int index)
public int getLength()
public boolean isEmpty()
true
if this certificate chain contains no certificates, or
false
otherwise.public void encode(OutputStream output) throws IOException
Certificate
to an OutputStream
.output
- the OutputStream
to encode to.IOException
public static Certificate parse(InputStream input) throws IOException
Certificate
from an InputStream
.input
- the InputStream
to parse from.Certificate
object.IOException
protected org.bouncycastle.asn1.x509.Certificate[] cloneCertificateList()