# getCertificateAuthorityReference method

String getCertificateAuthorityReference()

Gets the the issuing reference of the certificate authority.

return The issuing reference of the certificate authority. throws BiosealException An error has occurred during Bioseal Library execution.

## Implementation

    String getCertificateAuthorityReference() {
      Pointer<Char> pCertificateAuthorityReference = nullptr;
      Pointer<Int> pCertificateAuthorityReferenceSize = calloc.allocate(1);
      pCertificateAuthorityReferenceSize[0] = -1;
      try {
        var err = biosealSDK.id3Bioseal_GetCertificateAuthorityReference(_pHandle.value, pCertificateAuthorityReference, pCertificateAuthorityReferenceSize);
        if (err == BiosealError.insufficientBuffer.value) {
          pCertificateAuthorityReference = calloc.allocate(pCertificateAuthorityReferenceSize.value);
          err = biosealSDK.id3Bioseal_GetCertificateAuthorityReference(_pHandle.value, pCertificateAuthorityReference, pCertificateAuthorityReferenceSize);
          if (err != BiosealError.success.value) {
            throw BiosealException(err);
          }
        }
        final vCertificateAuthorityReference = utf8.decode(Uint8List.fromList(pCertificateAuthorityReference.cast<Uint8>().asTypedList(pCertificateAuthorityReferenceSize.value)));
        return vCertificateAuthorityReference;
      } finally {
        calloc.free(pCertificateAuthorityReference);
        calloc.free(pCertificateAuthorityReferenceSize);
      }
    }