X.509 Public Key Certificate. More...
#import <BlackBerryDynamics/GD/GDPKI.h>
Objects of this class are used to represent X.509 public key certificates in the BlackBerry Dynamics secure store. Certificates in the store could be used as part of integration with an enterprise public key infrastructure.
The properties of this class correspond to the standard fields of an X.509 public key certificate.
BlackBerry Dynamics can be integrated into a public key infrastructure (PKI) implementation. BlackBerry Dynamics has a number of capabilities for handling the X.509 public key certificates that would be associated with an end user within an enterprise PKI implementation.
The BlackBerry Dynamics runtime maintains a secure certificate store on the device. The application code can be notified when certificates are added to, and removed from, the secure certificate store.
The typical usage of the notification interface is as follows.
NSNotificationCenter
programming interface.The available notifications are:
In all cases, the object of the notification will be an instance of this class that represents the certificate.
The following code snippets illustrate some common tasks.
Instance Methods | |
(instancetype) | - initWithData: |
Initialize from binary DER encoded X.509 certificate data. More... | |
Properties | |
NSData * | binaryX509DER |
Binary DER encoded certificate data. More... | |
NSInteger | version |
X.509 version. More... | |
NSString * | serialNumber |
X.509 Serial Number field. More... | |
NSString * | subjectName |
X.509 Subject field. More... | |
NSString * | subjectAlternativeName |
X.509 Subject Alternative Name field. More... | |
NSString * | issuer |
X.509 Issuer field. More... | |
NSDate * | notBeforeDate |
X.509 Validity: Not Before date and time. More... | |
NSDate * | notAfterDate |
X.509 Validity: Not After date and time. More... | |
NSString * | keyUsage |
X.509 Key Usage field. More... | |
- (instancetype) initWithData: | (NSData *) | x509 |
Call this function to initialize a new object from binary DER encoded X.509 certificate data.
x509 | NSData containing the binary DER encoded X.509 data. |
|
readatomicassign |
Binary DER encoded representation of the X.509 certificate data.
|
readatomicassign |
The X.509 version of the certificate.
|
readatomicassign |
Value of the X.509 Serial Number field of the certificate.
|
readatomicassign |
Value of the X.509 Subject field of the certificate.
|
readatomicassign |
Value of the X.509 Subject Alternative Name field of the certificate.
|
readatomicassign |
Value of the X.509 Issuer field of the certificate.
|
readatomicassign |
Value of the X.509 Validity: Not Before date and time of the certificate.
|
readatomicassign |
Value of the X.509 Validity: Not After date and time of the certificate.
|
readatomicassign |
Value of the X.509 Key Usage field of the certificate.