ActionScript 3 Cryptography Library | All Packages | All Classes | Index | Frames No Frames |
X509CertificateCollection

Package | com.hurlant.crypto.cert
Class | public class X509CertificateCollection
Inheritance | X509CertificateCollection Object
Subclasses | MozillaRootCertificates

Public Methods

| Method | Defined By
--- | --- | ---
|  | X509CertificateCollection() | 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

Constructor Detail

X509CertificateCollection | () | Constructor

`public function X509CertificateCollection()`

Method Detail

addCertificate | () | method

`public function addCertificate(cert:X509Certificate):void`

Adds a X509 certificate to the collection. This call will force the certificate to be parsed.

Parameters

| `cert:X509Certificate` — A X509 certificate

addPEMCertificate | () | method |

`public function addPEMCertificate(name:String, subject:String, pem:String):void`

Mostly meant for built-in CA loading. This entry-point allows to index CAs without parsing them.

Parameters

| `name: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):X509Certificate`

Returns a X509 Certificate present in the collection, given a base64 DER encoded X500 Subject principal

Parameters

| `subject:String` — A Base64 DER-encoded Subject principal

Returns

| `X509Certificate` — A matching certificate, or null.

Mon May 20 2013, 09:16 PM +02:00