# getPasswordFieldName method

String getPasswordFieldName()

Gets the the name of the payload field containing the password value.

return The name of the payload field containing the password value. throws BiosealException An error has occurred during Bioseal Library execution.

## Implementation

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