MYCertificateInfo Class Reference

A parsed X.509 certificate; provides access to the names and metadata. More...

Inherited by MYCertificateRequest.

List of all members.

Public Member Functions

(id) - initWithCertificateData:error:
 Initialize by parsing X.509 certificate data.
(BOOL) - verifySignatureWithKey:
 Verifies the certificate's signature, using the given public key.
(NSData *) - subjectPublicKeyData
(MYPublicKey *) - subjectPublicKey
(NSData *) - signedData
(MYOID *) - signatureAlgorithmID
(NSData *) - signature

Properties

NSDate * validFrom
 The date/time at which the certificate first becomes valid.
NSDate * validTo
 The date/time at which the certificate expires.
MYCertificateNamesubject
 Information about the identity of the owner of this certificate.
MYCertificateNameissuer
 Information about the identity that signed/authorized this certificate.
MYCertificateExtensionsextensions
BOOL isRoot
 Returns YES if the issuer is the same as the subject.

Detailed Description

A parsed X.509 certificate; provides access to the names and metadata.


Member Function Documentation

- (id) initWithCertificateData: (NSData*)  data
error: (NSError**)  outError 

Initialize by parsing X.509 certificate data.

(More commonly you'll get an instance via MYCertificate's 'info' property.)

- (BOOL) verifySignatureWithKey: (MYPublicKey*)  issuerPublicKey  

Verifies the certificate's signature, using the given public key.

If the certificate is root/self-signed, use the cert's own subject public key.


Property Documentation

- (BOOL) isRoot [read, assign]

Returns YES if the issuer is the same as the subject.

(Aka a "self-signed" certificate.)

- (MYCertificateName *) issuer [read, assign]

Information about the identity that signed/authorized this certificate.

- (MYCertificateName *) subject [read, assign]

Information about the identity of the owner of this certificate.

- (NSDate *) validFrom [read, retain]

The date/time at which the certificate first becomes valid.

Reimplemented in MYCertificateRequest.

- (NSDate *) validTo [read, retain]

The date/time at which the certificate expires.

Reimplemented in MYCertificateRequest.


The documentation for this class was generated from the following files:
Generated on Sun Apr 17 12:23:58 2011 for MYCrypto by  doxygen 1.6.3