org.bouncycastle.crypto.tls

Class Certificate

public class Certificate extends 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 Certificateparse(InputStream is)
Parse the ServerCertificate message.

Field Detail

certs

protected X509CertificateStructure[] certs
The certificates.

Method Detail

getCerts

public X509CertificateStructure[] getCerts()

Returns: An array which contains the certs, this chain contains.

parse

protected static Certificate parse(InputStream is)
Parse the ServerCertificate message.

Parameters: is The stream where to parse from.

Returns: A Certificate object with the certs, the server has sended.

Throws: IOException If something goes wrong during parsing.