# getSubjectOrganization method

String getSubjectOrganization()

Gets the the organization (O) of the certificate subject.

return The organization (O) of the certificate subject. throws BiosealException An error has occurred during Bioseal Library execution.

## Implementation

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