code: public String getPublicCertificateHash()
              throws CertificateEncodingException, NoSuchAlgorithmException {
          return Base64.encodeBase64String(AsymmetricKeyCredential
                  .getHash(this.publicCertificate.getEncoded()));
      }
docs: Base64 encoded hash of the the public certificate.
  
  @return base64 encoded string
  @throws CertificateEncodingException if an encoding error occurs
  @throws NoSuchAlgorithmException if requested algorithm is not available in the environment