public class Certificate extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.bouncycastle.asn1.x509.X509CertificateStructure[] |
certs
The certificates.
|
| Constructor and Description |
|---|
Certificate(org.bouncycastle.asn1.x509.X509CertificateStructure[] certs)
Private constructor from a cert array.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
encode(OutputStream os)
Encodes version of the ClientCertificate message
|
org.bouncycastle.asn1.x509.X509CertificateStructure[] |
getCerts() |
static Certificate |
parse(InputStream is)
Parse the ServerCertificate message.
|
protected org.bouncycastle.asn1.x509.X509CertificateStructure[] certs
public Certificate(org.bouncycastle.asn1.x509.X509CertificateStructure[] certs)
certs - The certs the chain should contain.public static Certificate parse(InputStream is) throws IOException
is - The stream where to parse from.IOException - If something goes wrong during parsing.protected void encode(OutputStream os) throws IOException
os - stream to write the message toIOException - If something goes wrongpublic org.bouncycastle.asn1.x509.X509CertificateStructure[] getCerts()
Copyright © 2017. All rights reserved.