public interface ICertificateService
IMozillaBrowserCanvas
that exposes the
browser's advanced certificate-management functionality.Modifier and Type | Method and Description |
---|---|
void |
importCertificateAuthorityCertificate(X509Certificate certificate)
Adds a Certificate Authority certificate to the browser's certificate
database.
|
void |
importPkcs12File(File file,
String password)
Imports the contents of a PKCS#12 file, typically a client certificate
and corresponding private key.
|
void importCertificateAuthorityCertificate(X509Certificate certificate)
The given certificate must be one that can safely be encoded using
Certificate.getEncoded()
. This should be true of any certificate
created from an encoded representation.
certificate
- the CA certificate to importIllegalArgumentException
- if the certificate could not be encoded