X.509 Public Key Certificate. More...
#include <BlackBerryDynamics/GD/GDCredential.h>
This structure is be used to represent X.509 public key certificates in the BlackBerry Dynamics secure store.
A GDCredential structure will contain one or more instances of this structure.
The properties of this class correspond to the standard fields of an X.509 public key certificate.
Public Attributes | |
| char * | issuer |
| X.509 Issuer field. More... | |
| char * | subject |
| X.509 Subject field. More... | |
| char * | subjectAlternativeName |
| X.509 Subject Alternative Name field. More... | |
| char * | serialNumber |
| X.509 Serial Number field. More... | |
| char * | publicKeyMD5 |
| MD5 hash of the public key. More... | |
| char * | publicKeySHA1 |
| SHA-1 hash of the public key. More... | |
| char * | certificateMD5 |
| MD5 hash of the public key. More... | |
| char * | certificateSHA1 |
| SHA-1 hash of the certificate. More... | |
| time_t | notBefore |
| X.509 Validity: Not Before date and time. More... | |
| time_t | notAfter |
| X.509 Validity: Not After date and time. More... | |
| bool | valid |
| Returns certificate validity. More... | |
| char * | keyUsage |
| Key usage of the certificate. More... | |
| char * | extendedKeyUsage |
| Extended key usage of the certificate. More... | |
| char * | alias |
| Alias name of the certificate if from device storage. More... | |
| struct GDData | x509 |
| Binary DER encoded certificate data. More... | |
| char* issuer |
Null-terminated string containing the value of the X.509 Issuer field of the certificate. The value will be a distinguished name, for example: "C=NO, O=Green AS, OU=Green Certificate Authority, CN=Green TLS CA".
| char* subject |
Null-terminated string containing the value of the X.509 Subject field of the certificate. The value will be a distinguished name, for example: "C=NO, O=Telenor AS, OU=Support, CN=Barney Rubble".
| char* subjectAlternativeName |
Null-terminated string containing the value of the X.509 Subject Alternative Name field of the certificate. The value will be a distinguished name, for example: "C=NO, O=Telenor AS, OU=Support, CN=Barney Rubble".
| char* serialNumber |
Null-terminated string containing the value of the X.509 Serial Number field of the certificate. The value will be in hexadecimal with capital letters and no spaces. For example: "1F2B3C4D5E6F".
| char* publicKeyMD5 |
Null-terminated string containing the MD5 hash of the certificate's public key. The value will be in two-digit hexadecimal format with capital letters and no spaces. It will always be 32 characters. For example: "A6144ABF4B87B7B912BC30A80FEB54B5".
| char* publicKeySHA1 |
Null-terminated string containing the SHA-1 hash of the certificate's public key. The value will be in two-digit hexadecimal format with capital letters and no spaces. It will always be 40 characters. For example: "CBED42E4E4817F19321D871AF58BA042E3B0FA5B".
| char* certificateMD5 |
Null-terminated string containing the MD5 hash of the certificate itself. The value will be in two-digit hexadecimal format with capital letters and no spaces. It will always be 32 characters. For example: "DDEBD17E31AB4515083593A754F8CF6C".
| char* certificateSHA1 |
Null-terminated string containing the SHA-1 hash of the certificate itself. The value will be in two-digit hexadecimal format with capital letters and no spaces. It will always be 40 characters. For example: "114230620A17CBB6F478FF3C3AF5C38A2CACF116".
| time_t notBefore |
Value of the X.509 Validity: Not Before date and time of the certificate. The value is represented as a time_t timestamp, which is a number of seconds elapsed since 00:00 hours, January 1st, 1970 UTC.
| time_t notAfter |
Value of the X.509 Validity: Not After date and time of the certificate. The value is represented as a time_t timestamp, which is a number of seconds elapsed since 00:00 hours, January 1st, 1970 UTC.
| bool valid |
Returns true if the system time falls within the certicates notBefore and notAfter dates and times.
| char* keyUsage |
Null-terminated string containing the intended key usage attributes of the certificate.
| char* extendedKeyUsage |
Null-terminated string containing the intended extended key usage attributes of the certificate.
| char* alias |
Null-terminated string containing the alias for the certificate and private key pair if the certificate is stored externally to Dynamics, such as in Andorid credential storage or iOS Keychain.
| struct GDData x509 |
Binary DER encoded representation of the X.509 ASN1 certificate data, encapsulated in a GDData structure.