SCM iOS API
|
This class describes a certificate object. Inherits from TokenObject. More...
Instance Methods | |
(NSString *) | - getSubject |
(NSString *) | - getNotBefore |
(NSString *) | - getNotAfter |
(NSString *) | - getIssuer |
(void) | - getSerial: |
(void) | - getSecCertificate: |
![]() | |
(NSString *) | - getType |
(NSString *) | - getCkLabel |
(NSString *) | - getCkId |
(Token *) | - getParent |
(NSUInteger) | - getPinNumber |
This class describes a certificate object. Inherits from TokenObject.
Note that the constructor is not intended to be called by user code. Such objects are constructed internally by the API.
- (NSString *) getIssuer |
Gets the issuer name of the certificate.
The string is obtained by using the same rules as for the Certificate#getSubject string.
- (NSString *) getNotAfter |
Gets the certificate end of validity date.
- (NSString *) getNotBefore |
Gets the certificate start of validity date.
- (void) getSecCertificate: | (void(^)(SecCertificateRef ref, NSError *error)) | completionHandler |
Gets a SecCertificateRef Object created from Certificate.
completionHandler | the completion handler block to be called as soon as the SecCertificateRef is created. The completion handler is executed on the main queue, and takes the following parameters :
|
- (void) getSerial: | (void(^)(NSString *serial, NSError *error)) | completionHandler |
Gets the certificate serial number.
completionHandler | the completion handler block to be called as soon as the serial number is retrieved. The completion handler is executed on the main queue, and takes the following parameters :
|
- (NSString *) getSubject |
Gets the subject name of the certificate.
The string is extracted from the last (most specific) occurrence of common name field.
If no such field is defined, the implementation falls back on the first organizational unit name field
, or the first organization name field
, or the first email address field (in this order).