add


Description:

public void add (Certificate certificate)

Add certificate to the chain.

The order of certificates in the chain are important. The first certificate should be the endpoint certificate, and then come the signers ( certificate authorities) each in turn. If a root certificate authority is present, it should come last.

Adding a certificate an already built chain (see build) resets the type of the certificate chain to gcr_certificate_chain_unknown

Parameters:

this

the CertificateChain

certificate

a Certificate to add to the chain