• BlackBerry Dynamics
  • Runtime library for Android applications
  • 12.0.1.79
Certificate Class Reference

X.509 Public Key Certificate. More...

Description

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.

See also
RFC 3280 and RFC 5280 on the ietf.org website.
com.good.gd.pki package reference for background on BlackBerry Dynamics PKI integration.

Public Member Functions

byte[] getBinaryX509DER ()
 Get the binary DER encoded certificate data. More...
 
int getBinaryX509DERLength ()
 Get the length of the binary DER encoded certificate data. More...
 
int getVersion ()
 Get the X.509 version. More...
 
String getSerialNumber ()
 Get the X.509 Serial Number field. More...
 
String getSubjectName ()
 Get the X.509 Subject field. More...
 
String getSubjectAlternativeName ()
 Get the X.509 Subject Alternative Name field. More...
 
String getIssuer ()
 Get the X.509 Issuer field. More...
 
Date getNotBeforeDate ()
 Get the X.509 Validity: Not Before date and time. More...
 
Date getNotAfterDate ()
 Get the X.509 Validity: Not After date and time. More...
 
int getDaysUntilExpiry ()
 Get the days remaining until the certificate will expire. More...
 
int getDaysUntilRenewalDue ()
 Get the days remaining until the certificate becomes due for renewal. More...
 
String getKeyUsage ()
 Get the X.509 Key Usage field. More...
 
String getExtendedKeyUsage ()
 Get the X.509 Extended Key Usage field. More...
 
String getPublicKeyMD5 ()
 Get the MD5 hash of the public key. More...
 
String getPublicKeySHA1 ()
 Get the SHA-1 hash of the public key. More...
 
String getCertificateMD5 ()
 Get the MD5 hash of the certificate. More...
 
String getCertificateSHA1 ()
 Get the SHA-1 hash of the certificate. More...
 
String getAlias ()
 Alias name of the the certificate. More...
 

Member Function Documentation

◆ getBinaryX509DER()

byte [] getBinaryX509DER ( )
Returns
byte array containing the binary DER encoded representation of the X.509 certificate data.

◆ getBinaryX509DERLength()

int getBinaryX509DERLength ( )
Returns
int length of the binary DER encoded representation of the certificate, and hence the length of the getBinaryX509DER() return value.

◆ getVersion()

int getVersion ( )
Returns
int representation of the X.509 version of the certificate.

◆ getSerialNumber()

String getSerialNumber ( )
Returns
String containing the value of the X.509 Serial Number field of the certificate.

◆ getSubjectName()

String getSubjectName ( )
Returns
String containing the value of the X.509 Subject field of the certificate.

◆ getSubjectAlternativeName()

String getSubjectAlternativeName ( )
Returns
String containing the value of the X.509 Subject Alternative Name field of the certificate.

◆ getIssuer()

String getIssuer ( )
Returns
String containing the value of the X.509 Issuer field of the certificate.

◆ getNotBeforeDate()

Date getNotBeforeDate ( )
Returns
Date representation of the X.509 Validity: Not Before date and time of the certificate.

◆ getNotAfterDate()

Date getNotAfterDate ( )
Returns
Date representation of the X.509 Validity: Not After date and time of the certificate.

◆ getDaysUntilExpiry()

int getDaysUntilExpiry ( )
Returns
int days remaining before expiry. A negative value indicates days since the certificate has expired.

◆ getDaysUntilRenewalDue()

int getDaysUntilRenewalDue ( )
Returns
int days remaining until due for renewal. A negative value indicates days overdue.

◆ getKeyUsage()

String getKeyUsage ( )
Returns
String containing the value of the X.509 Key Usage field of the certificate.

◆ getExtendedKeyUsage()

String getExtendedKeyUsage ( )
Returns
String containing the value of the X.509 Extended Key Usage field of the certificate.

◆ getPublicKeyMD5()

String getPublicKeyMD5 ( )
Returns
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".

◆ getPublicKeySHA1()

String getPublicKeySHA1 ( )
Returns
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".

◆ getCertificateMD5()

String getCertificateMD5 ( )
Returns
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".

◆ getCertificateSHA1()

String getCertificateSHA1 ( )
Returns
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".

◆ getAlias()

String getAlias ( )

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 the iOS Keychain.