# getSignatureAlgorithm method

String getSignatureAlgorithm()

Gets the the OID of the certificate's signing algorithm.

return The OID of the certificate's signing algorithm. throws BiosealException An error has occurred during Bioseal Library execution.

## Implementation

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