public class Certificate
extends java.lang.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 Certificate[] |
certificateList |
static Certificate |
EMPTY_CHAIN |
Constructor and Description |
---|
Certificate(Certificate[] certificateList) |
Modifier and Type | Method and Description |
---|---|
protected Certificate[] |
cloneCertificateList() |
void |
encode(java.io.OutputStream output)
Encode this
Certificate to an OutputStream . |
Certificate |
getCertificateAt(int index) |
Certificate[] |
getCertificateList() |
int |
getLength() |
boolean |
isEmpty() |
static Certificate |
parse(java.io.InputStream input)
Parse a
Certificate from an InputStream . |
public static final Certificate EMPTY_CHAIN
protected Certificate[] certificateList
public Certificate(Certificate[] certificateList)
public Certificate[] getCertificateList()
Certificate
representing a certificate
chain.public Certificate getCertificateAt(int index)
public int getLength()
public boolean isEmpty()
true
if this certificate chain contains no certificates, or
false
otherwise.public void encode(java.io.OutputStream output) throws java.io.IOException
Certificate
to an OutputStream
.output
- the OutputStream
to encode to.java.io.IOException
public static Certificate parse(java.io.InputStream input) throws java.io.IOException
Certificate
from an InputStream
.input
- the InputStream
to parse from.Certificate
object.java.io.IOException
protected Certificate[] cloneCertificateList()