public class Certificate
extends java.lang.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(java.io.OutputStream os)
Encodes version of the ClientCertificate message
|
X509CertificateStructure[] |
getCerts() |
boolean |
isEmpty() |
protected static Certificate |
parse(java.io.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(java.io.InputStream is) throws java.io.IOException
is
- The stream where to parse from.java.io.IOException
- If something goes wrong during parsing.protected void encode(java.io.OutputStream os) throws java.io.IOException
os
- stream to write the message tojava.io.IOException
- If something goes wrongpublic X509CertificateStructure[] getCerts()
public boolean isEmpty()