org.bouncycastle.crypto.tls

Class Certificate


public class Certificate
extends java.lang.Object

A representation for a certificate chain as used by an tls server.

Field Summary

protected X509CertificateStructure[]
certs
The certificates.

Method Summary

X509CertificateStructure[]
getCerts()
protected static Certificate
parse(InputStream is)
Parse the ServerCertificate message.

Field Details

certs

protected X509CertificateStructure[] certs
The certificates.

Method Details

getCerts

public X509CertificateStructure[] getCerts()
Returns:
An array which contains the certs, this chain contains.

parse

protected static Certificate parse(InputStream is)
            throws IOException
Parse the ServerCertificate message.
Parameters:
is - The stream where to parse from.
Returns:
A Certificate object with the certs, the server has sended.