public class Certificate extends Object
Modifier and Type | Field and Description |
---|---|
protected X509CertificateStructure[] |
certs
The certificates.
|
static Certificate |
EMPTY_CHAIN |
Constructor and Description |
---|
Certificate(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
|
X509CertificateStructure[] |
getCerts() |
boolean |
isEmpty() |
protected static Certificate |
parse(InputStream is)
Parse the ServerCertificate message.
|
public static final Certificate EMPTY_CHAIN
protected X509CertificateStructure[] certs
public Certificate(X509CertificateStructure[] certs)
certs
- The certs the chain should contain.protected 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 X509CertificateStructure[] getCerts()
public boolean isEmpty()
Copyright © 2015. All rights reserved.