| Package | com.hurlant.crypto.cert |
| Class | public class X509CertificateCollection |
| Subclasses | MozillaRootCertificates |
| Method | Defined by | ||
|---|---|---|---|
| X509CertificateCollection | |||
|
addCertificate(cert:X509Certificate):void
Adds a X509 certificate to the collection.
| X509CertificateCollection | ||
|
addPEMCertificate(name:String, subject:String, pem:String):void
Mostly meant for built-in CA loading.
| X509CertificateCollection | ||
|
getCertificate(subject:String):X509Certificate
Returns a X509 Certificate present in the collection, given
a base64 DER encoded X500 Subject principal
| X509CertificateCollection | ||
| X509CertificateCollection | () | constructor |
public function X509CertificateCollection()
| addCertificate | () | method |
public function addCertificate(cert:X509Certificate):voidAdds a X509 certificate to the collection. This call will force the certificate to be parsed.
Parameterscert:X509Certificate — A X509 certificate
|
| addPEMCertificate | () | method |
public function addPEMCertificate(name:String, subject:String, pem:String):voidMostly meant for built-in CA loading. This entry-point allows to index CAs without parsing them.
Parametersname:String — A friendly name. not currently used
|
|
subject:String — base64 DER encoded Subject principal for the Cert
|
|
pem:String — PEM encoded certificate data
|
| getCertificate | () | method |
public function getCertificate(subject:String):X509CertificateReturns a X509 Certificate present in the collection, given a base64 DER encoded X500 Subject principal
Parameterssubject:String — A Base64 DER-encoded Subject principal
|
X509Certificate —
A matching certificate, or null.
|