File: qgsauthmanager.sip.in

package info (click to toggle)
qgis 3.40.11%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,183,800 kB
  • sloc: cpp: 1,595,841; python: 372,637; xml: 23,474; sh: 3,761; perl: 3,664; ansic: 2,257; sql: 2,137; yacc: 1,068; lex: 577; javascript: 540; lisp: 411; makefile: 154
file content (984 lines) | stat: -rw-r--r-- 26,539 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/core/auth/qgsauthmanager.h                                       *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/







class QgsAuthManager : QObject
{
%Docstring(signature="appended")
Singleton offering an interface to manage the authentication
configuration database and to utilize configurations through various
authentication method plugins

:py:class:`QgsAuthManager` should not usually be directly created, but
rather accessed through :py:func:`QgsApplication.authManager()`.
%End

%TypeHeaderCode
#include "qgsauthmanager.h"
%End
  public:

    enum MessageLevel /BaseType=IntEnum/
    {
      INFO,
      WARNING,
      CRITICAL
    };

 bool init( const QString &pluginPath = QString(),  const QString &authDatabasePath = QString() ) /Deprecated/;
%Docstring
init initialize QCA, prioritize qca-ossl plugin and optionally set up
the authentication database

:param pluginPath: the plugin path
:param authDatabasePath: the authentication DB path

:return: ``True`` on success

.. seealso:: :py:func:`QgsApplication.pluginPath`

.. seealso:: :py:func:`QgsApplication.qgisAuthDatabaseFilePath`

.. deprecated:: 3.36

   Use :py:func:`~QgsAuthManager.setup` or :py:func:`~QgsAuthManager.ensureInitialized` instead.
%End

    void setup( const QString &pluginPath = QString(),  const QString &authDatabasePath = QString() );
%Docstring
Sets up the authentication manager configuration.

This method does not initialize the authentication framework, instead
that is deferred to lazy-initialize when required.

:param pluginPath: the plugin path
:param authDatabasePath: the authentication DB URI (or just the file
                         path for SQLite)

.. seealso:: :py:func:`ensureInitialized`
%End

    bool ensureInitialized() const;
%Docstring
Performs lazy initialization of the authentication framework, if it has
not already been done.

.. seealso:: :py:func:`setup`

.. versionadded:: 3.40
%End

    ~QgsAuthManager();

    QgsAuthConfigurationStorageRegistry *authConfigurationStorageRegistry() const;
%Docstring
Returns the authentication configuration storage registry.

.. versionadded:: 3.40
%End

 QSqlDatabase authDatabaseConnection() const /Deprecated/;
%Docstring
Sets up the application instance of the authentication database
connection

.. deprecated:: 3.40

   Direct access to the DB is not allowed, use :py:class:`QgsAuthConfigurationStorage` API instead.
%End

 const QString authDatabaseConfigTable() const /Deprecated/;
%Docstring
Name of the authentication database table that stores configs

.. deprecated:: 3.40

   Direct access to the DB is not allowed, use :py:func:`~QgsAuthManager.methodConfigTableName` instead.
%End

    const QString methodConfigTableName() const;
%Docstring
Returns the database table from the first ready storage that stores
authentication configs, or an empty string if none available. The table
is prefixed with schema and escaped if necessary.

.. versionadded:: 3.40
%End

 const QString authDatabaseServersTable() const /Deprecated/;
%Docstring
Name of the authentication database table that stores server
exceptions/configs

.. deprecated:: 3.40

   Direct access to the DB is not allowed, use :py:class:`QgsAuthConfigurationStorage` API instead.
%End


    bool isDisabled() const;
%Docstring
Whether QCA has the qca-ossl plugin, which a base run-time requirement
%End

    const QString disabledMessage() const;
%Docstring
Standard message for when QCA's qca-ossl plugin is missing and system is
disabled
%End

 const QString authenticationDatabasePath() const;
%Docstring
The standard authentication database file in ~/.qgis3/ or defined
location

.. seealso:: :py:func:`QgsApplication.qgisAuthDatabaseFilePath`

.. deprecated:: 3.40

   Use :py:func:`~QgsAuthManager.authenticationDatabaseUri` instead.
%End

    static bool isFilesystemBasedDatabase( const QString &uri );
%Docstring
Returns the ``True`` if the ``uri`` is a filesystem-based database
(SQLite).
%End


    const QString authenticationDatabaseUri() const;
%Docstring
Returns the authentication database connection URI.

.. versionadded:: 3.40
%End

    const QString authenticationDatabaseUriStripped() const;
%Docstring
Returns the authentication database connection URI with the password
stripped.

.. versionadded:: 3.40
%End

    bool setMasterPassword( bool verify = false );
%Docstring
Main call to initially set or continually check master password is set

.. note::

   If it is not set, the user is asked for its input

:param verify: Whether password's hash was saved in authentication
               database
%End

    bool setMasterPassword( const QString &password, bool verify = false );
%Docstring
Overloaded call to reset master password or set it initially without
user interaction

.. note::

   Only use this in trusted reset functions, unit tests or user/app setup scripts!

:param password: Password to use
:param verify: Whether password's hash was saved in authentication
               database
%End

    bool verifyMasterPassword( const QString &compare = QString() );
%Docstring
Verify the supplied master password against any existing hash in
authentication database

.. note::

   Do not emit verification signals when only comparing

:param compare: Password to compare against
%End

    bool masterPasswordIsSet() const;
%Docstring
Whether master password has be input and verified, i.e. authentication
database is accessible
%End

    bool masterPasswordHashInDatabase() const;
%Docstring
Verify a password hash existing in authentication database
%End

    void clearMasterPassword();
%Docstring
Clear supplied master password

.. note::

   This will not necessarily clear authenticated connections cached in network connection managers
%End

    bool masterPasswordSame( const QString &password ) const;
%Docstring
Check whether supplied password is the same as the one already set

:param password: Password to verify
%End

    bool resetMasterPassword( const QString &newpass, const QString &oldpass, bool keepbackup, QString *backuppath /In,Out/ = 0 );
%Docstring
Reset the master password to a new one, then re-encrypt all previous
configs in a new database file, optionally backup current database

:param newpass: New master password to replace existing
:param oldpass: Current master password to replace existing
:param keepbackup: Whether to keep the generated backup of current
                   database
:param backuppath: Where the backup is located, if kept
%End



    void setScheduledAuthDatabaseEraseRequestEmitted( bool emitted );
%Docstring
Re-emit a signal to schedule an optional erase of authentication
database.

.. note::

   This can be called from the slot connected to a previously emitted scheduling signal,
   so that the slot can ask for another emit later, if the slot noticies the current GUI
   processing state is not ready for interacting with the user, e.g. project is still loading

:param emitted: Setting to ``False`` will cause signal to be emitted by
                the schedule timer. Setting to ``True`` will stop any
                emitting, but will not stop the schedule timer.
%End

    QString authManTag() const;
%Docstring
Simple text tag describing authentication system for message logs
%End

    bool registerCoreAuthMethods();
%Docstring
Instantiate and register existing C++ core authentication methods from
plugins
%End

    QgsAuthMethodConfigsMap availableAuthMethodConfigs( const QString &dataprovider = QString() );
%Docstring
Gets mapping of authentication config ids and their base configs (not
decrypted data)
%End

    void updateConfigAuthMethods();
%Docstring
Sync the confg/authentication method cache with what is in database
%End

    QgsAuthMethod *configAuthMethod( const QString &authcfg );
%Docstring
Gets authentication method from the config/provider cache

:param authcfg: Authentication config id
%End

    QString configAuthMethodKey( const QString &authcfg ) const;
%Docstring
Gets key of authentication method associated with config ID

:param authcfg: 
%End

    QStringList authMethodsKeys( const QString &dataprovider = QString() );
%Docstring
Gets keys of supported authentication methods
%End

    QgsAuthMethod *authMethod( const QString &authMethodKey );
%Docstring
Gets authentication method from the config/provider cache via its key

:param authMethodKey: Authentication method key
%End



%If (HAVE_GUI)

    QWidget *authMethodEditWidget( const QString &authMethodKey, QWidget *parent );
%Docstring
Gets authentication method edit widget via its key

:param authMethodKey: Authentication method key
:param parent: Parent widget
%End
%End

    QgsAuthMethod::Expansions supportedAuthMethodExpansions( const QString &authcfg );
%Docstring
Gets supported authentication method expansion(s), e.g. NetworkRequest |
DataSourceURI, as flags

:param authcfg: 
%End

    const QString uniqueConfigId() const;
%Docstring
Gets a unique generated 7-character string to assign to as config id
%End

    bool configIdUnique( const QString &id ) const;
%Docstring
Verify if provided authentication id is unique

:param id: Id to check
%End

    static bool hasConfigId( const QString &txt );
%Docstring
Returns whether a string includes an authcfg ID token

:param txt: String to check
%End

    QString configIdRegex() const;
%Docstring
Returns the regular expression for authcfg=.{7} key/value token for
authentication ids
%End

    QStringList configIds() const;
%Docstring
Gets list of authentication ids from database
%End

    bool storeAuthenticationConfig( QgsAuthMethodConfig &mconfig /In,Out/, bool overwrite = false );
%Docstring
Store an authentication config in the database

:param mconfig: Associated authentication config id
:param overwrite: If set to ``True``, pre-existing authentication
                  configurations will be overwritten

:return: Whether operation succeeded
%End

    bool updateAuthenticationConfig( const QgsAuthMethodConfig &config );
%Docstring
Update an authentication config in the database

:param config: Associated authentication config id

:return: Whether operation succeeded
%End

    bool loadAuthenticationConfig( const QString &authcfg, QgsAuthMethodConfig &mconfig /In,Out/, bool full = false );
%Docstring
Load an authentication config from the database into subclass

:param authcfg: Associated authentication config id
:param mconfig: Subclassed config to load into
:param full: Whether to decrypt and populate all sensitive data in
             subclass

:return: Whether operation succeeded
%End

    bool removeAuthenticationConfig( const QString &authcfg );
%Docstring
Remove an authentication config in the database

:param authcfg: Associated authentication config id

:return: Whether operation succeeded
%End

    bool exportAuthenticationConfigsToXml( const QString &filename, const QStringList &authcfgs, const QString &password = QString() );
%Docstring
Export authentication configurations to an XML file

:param filename: The file path to save the XML content to
:param authcfgs: The list of configuration IDs to export
:param password: A password string to encrypt the XML content

.. versionadded:: 3.20
%End

    bool importAuthenticationConfigsFromXml( const QString &filename, const QString &password = QString(), bool overwrite = false );
%Docstring
Import authentication configurations from an XML file

:param filename: The file path from which the XML content will be read
:param password: A password string to decrypt the XML content
:param overwrite: If set to ``True``, pre-existing authentication
                  configurations will be overwritten

.. versionadded:: 3.20
%End

    bool removeAllAuthenticationConfigs();
%Docstring
Clear all authentication configs from table in database and from
provider caches

:return: Whether operation succeeded
%End

    bool backupAuthenticationDatabase( QString *backuppath /In,Out/ = 0 );
%Docstring
Close connection to current authentication database and back it up

:return: Path to backup
%End

    bool eraseAuthenticationDatabase( bool backup, QString *backuppath /In,Out/ = 0 );
%Docstring
Erase all rows from all tables in authentication database

:param backup: Whether to backup of current database
:param backuppath: Where the backup is locate

:return: Whether operation succeeded
%End



    bool updateNetworkRequest( QNetworkRequest &request /In,Out/, const QString &authcfg,
                               const QString &dataprovider = QString() );
%Docstring
Provider call to update a QNetworkRequest with an authentication config

:param request: The QNetworkRequest
:param authcfg: Associated authentication config id
:param dataprovider: Provider key filter, offering logic branching in
                     authentication method

:return: Whether operation succeeded
%End

    bool updateNetworkReply( QNetworkReply *reply, const QString &authcfg,
                             const QString &dataprovider = QString() );
%Docstring
Provider call to update a QNetworkReply with an authentication config
(used to skip known SSL errors, etc.)

:param reply: The QNetworkReply
:param authcfg: Associated authentication config id
:param dataprovider: Provider key filter, offering logic branching in
                     authentication method

:return: Whether operation succeeded
%End

    bool updateDataSourceUriItems( QStringList &connectionItems /In,Out/, const QString &authcfg,
                                   const QString &dataprovider = QString() );
%Docstring
Provider call to update a :py:class:`QgsDataSourceUri` with an
authentication config

:param connectionItems: The connection items, e.g. username=myname, of
                        :py:class:`QgsDataSourceUri`
:param authcfg: Associated authentication config id
:param dataprovider: Provider key filter, offering logic branching in
                     authentication method

:return: Whether operation succeeded
%End

    bool updateNetworkProxy( QNetworkProxy &proxy /In,Out/, const QString &authcfg,
                             const QString &dataprovider = QString() );
%Docstring
Provider call to update a QNetworkProxy with an authentication config

:param proxy: the QNetworkProxy
:param authcfg: Associated authentication config id
:param dataprovider: Provider key filter, offering logic branching in
                     authentication method

:return: Whether operation succeeded
%End


    bool storeAuthSetting( const QString &key, const QVariant &value, bool encrypt = false );
%Docstring
Store an authentication setting (stored as string via QVariant( value
).toString() )
%End

    QVariant authSetting( const QString &key, const QVariant &defaultValue = QVariant(), bool decrypt = false );
%Docstring
authSetting get an authentication setting (retrieved as string and
returned as QVariant( QString ))

:param key: setting key
:param defaultValue: 
:param decrypt: if the value needs decrypted

:return: QVariant( QString ) authentication setting
%End

    bool existsAuthSetting( const QString &key );
%Docstring
Check if an authentication setting exists
%End

    bool removeAuthSetting( const QString &key );
%Docstring
Remove an authentication setting
%End


    bool initSslCaches();
%Docstring
Initialize various SSL authentication caches
%End

    bool storeCertIdentity( const QSslCertificate &cert, const QSslKey &key );
%Docstring
Store a certificate identity
%End

    const QSslCertificate certIdentity( const QString &id );
%Docstring
certIdentity get a certificate identity by ``id`` (sha hash)

:param id: sha hash of the cert

:return: the certificate
%End


    const QStringList certIdentityBundleToPem( const QString &id );
%Docstring
certIdentityBundleToPem get a certificate identity bundle by ``id`` (sha
hash) returned as PEM text

:param id: sha hash

:return: a list of strings
%End

    const QList<QSslCertificate> certIdentities();
%Docstring
certIdentities get certificate identities

:return: list of certificates
%End


    QStringList certIdentityIds() const;
%Docstring
certIdentityIds get list of certificate identity ids from database

:return: list of certificate ids
%End

    bool existsCertIdentity( const QString &id );
%Docstring
Check if a certificate identity exists
%End

    bool removeCertIdentity( const QString &id );
%Docstring
Remove a certificate identity
%End


    bool storeSslCertCustomConfig( const QgsAuthConfigSslServer &config );
%Docstring
Store an SSL certificate custom config
%End

    const QgsAuthConfigSslServer sslCertCustomConfig( const QString &id, const QString &hostport );
%Docstring
sslCertCustomConfig get an SSL certificate custom config by ``id`` (sha
hash) and ``hostport`` (host:port)

:param id: sha hash
:param hostport: string host:port

:return: a SSL certificate custom config
%End

    const QgsAuthConfigSslServer sslCertCustomConfigByHost( const QString &hostport );
%Docstring
sslCertCustomConfigByHost get an SSL certificate custom config by
``hostport`` (host:port)

:param hostport: host:port

:return: a SSL certificate custom config
%End

    const QList<QgsAuthConfigSslServer> sslCertCustomConfigs();
%Docstring
sslCertCustomConfigs get SSL certificate custom configs

:return: list of SSL certificate custom config
%End

    bool existsSslCertCustomConfig( const QString &id, const QString &hostport );
%Docstring
Check if SSL certificate custom config exists
%End

    bool removeSslCertCustomConfig( const QString &id, const QString &hostport );
%Docstring
Remove an SSL certificate custom config
%End


    void dumpIgnoredSslErrorsCache_();
%Docstring
Utility function to dump the cache for debug purposes
%End

    bool updateIgnoredSslErrorsCacheFromConfig( const QgsAuthConfigSslServer &config );
%Docstring
Update ignored SSL error cache with possible ignored SSL errors, using
server config
%End

    bool updateIgnoredSslErrorsCache( const QString &shahostport, const QList<QSslError> &errors );
%Docstring
Update ignored SSL error cache with possible ignored SSL errors, using
sha:host:port key
%End

    bool rebuildIgnoredSslErrorCache();
%Docstring
Rebuild ignoredSSL error cache
%End


    bool storeCertAuthorities( const QList<QSslCertificate> &certs );
%Docstring
Store multiple certificate authorities
%End

    bool storeCertAuthority( const QSslCertificate &cert );
%Docstring
Store a certificate authority
%End


    const QSslCertificate certAuthority( const QString &id );
%Docstring
certAuthority get a certificate authority by ``id`` (sha hash)

:param id: sha hash

:return: a certificate
%End

    bool existsCertAuthority( const QSslCertificate &cert );
%Docstring
Check if a certificate authority exists
%End

    bool removeCertAuthority( const QSslCertificate &cert );
%Docstring
Remove a certificate authority
%End

    static const QList<QSslCertificate> systemRootCAs();
%Docstring
systemRootCAs get root system certificate authorities

:return: list of certificate authorities
%End

    const QList<QSslCertificate> extraFileCAs();
%Docstring
extraFileCAs extra file-based certificate authorities

:return: list of certificate authorities
%End

    const QList<QSslCertificate> databaseCAs();
%Docstring
databaseCAs get database-stored certificate authorities

:return: list of certificate authorities
%End

    const QMap<QString, QSslCertificate> mappedDatabaseCAs();
%Docstring
mappedDatabaseCAs get sha1-mapped database-stored certificate
authorities

:return: sha1-mapped certificate authorities
%End


    bool rebuildCaCertsCache();
%Docstring
Rebuild certificate authority cache
%End

    bool storeCertTrustPolicy( const QSslCertificate &cert, QgsAuthCertUtils::CertTrustPolicy policy );
%Docstring
Store user trust value for a certificate
%End

    QgsAuthCertUtils::CertTrustPolicy certTrustPolicy( const QSslCertificate &cert );
%Docstring
certTrustPolicy get whether certificate ``cert`` is trusted by user

:param cert: 

:return: DefaultTrust if certificate sha not in trust table, i.e.
         follows default trust policy
%End

    bool removeCertTrustPolicies( const QList<QSslCertificate> &certs );
%Docstring
Remove a group certificate authorities
%End

    bool removeCertTrustPolicy( const QSslCertificate &cert );
%Docstring
Remove a certificate authority
%End

    QgsAuthCertUtils::CertTrustPolicy certificateTrustPolicy( const QSslCertificate &cert );
%Docstring
certificateTrustPolicy get trust policy for a particular certificate
``cert``

:param cert: 

:return: DefaultTrust if certificate sha not in trust table, i.e.
         follows default trust policy
%End

    bool setDefaultCertTrustPolicy( QgsAuthCertUtils::CertTrustPolicy policy );
%Docstring
Sets the default certificate trust policy preferred by user
%End

    QgsAuthCertUtils::CertTrustPolicy defaultCertTrustPolicy();
%Docstring
Gets the default certificate trust policy preferred by user
%End

    const QMap<QgsAuthCertUtils::CertTrustPolicy, QStringList > certTrustCache();
%Docstring
certTrustCache get cache of certificate sha1s, per trust policy

:return: trust-policy-mapped certificate sha1s
%End

    bool rebuildCertTrustCache();
%Docstring
Rebuild certificate authority cache
%End

    const QList<QSslCertificate> trustedCaCerts( bool includeinvalid = false );
%Docstring
trustedCaCerts get list of all trusted CA certificates

:param includeinvalid: whether invalid certs needs to be returned

:return: list of certificates
%End

    const QList<QSslCertificate> untrustedCaCerts( QList<QSslCertificate> trustedCAs = QList<QSslCertificate>() );
%Docstring
untrustedCaCerts get list of untrusted certificate authorities

:return: list of certificates
%End

    bool rebuildTrustedCaCertsCache();
%Docstring
Rebuild trusted certificate authorities cache
%End

    const QList<QSslCertificate> trustedCaCertsCache();
%Docstring
trustedCaCertsCache cache of trusted certificate authorities, ready for
network connections

:return: list of certificates
%End

    const QByteArray trustedCaCertsPemText();
%Docstring
trustedCaCertsPemText get concatenated string of all trusted CA
certificates

:return: bye array with all PEM encoded trusted CAs
%End




    static bool passwordHelperEnabled();
%Docstring
Password helper enabled getter

.. note::

   Available in Python bindings since QGIS 3.8.0
%End

    void setPasswordHelperEnabled( bool enabled );
%Docstring
Password helper enabled setter

.. note::

   Available in Python bindings since QGIS 3.8.0
%End



    bool passwordHelperSync();
%Docstring
Store the password manager into the wallet

.. note::

   Available in Python bindings since QGIS 3.8.0
%End

    static const QString AUTH_PASSWORD_HELPER_DISPLAY_NAME;

    static const QString AUTH_MAN_TAG;


  signals:

    void passwordHelperFailure();
%Docstring
Signals emitted on password helper failure, mainly used in the tests to
exit main application loop
%End

    void passwordHelperSuccess();
%Docstring
Signals emitted on password helper success, mainly used in the tests to
exit main application loop
%End

 void messageOut( const QString &message, const QString &tag = QgsAuthManager::AUTH_MAN_TAG, QgsAuthManager::MessageLevel level = QgsAuthManager::INFO ) const /Deprecated/;
%Docstring
Custom logging signal to relay to console output and
:py:class:`QgsMessageLog`

:param message: Message to send
:param tag: Associated tag (title)
:param level: Message log level

.. seealso:: :py:class:`QgsMessageLog`

.. deprecated:: 3.40

   Use :py:func:`~QgsAuthManager.messageLog` instead.
%End

    void messageLog( const QString &message, const QString &tag = QgsAuthManager::AUTH_MAN_TAG, Qgis::MessageLevel level = Qgis::MessageLevel::Info ) const;
%Docstring
Custom logging signal to relay to console output and
:py:class:`QgsMessageLog`

:param message: Message to send
:param tag: Associated tag (title)
:param level: Message log level

.. seealso:: :py:class:`QgsMessageLog`

.. versionadded:: 3.40
%End

 void passwordHelperMessageOut( const QString &message, const QString &tag = QgsAuthManager::AUTH_MAN_TAG, QgsAuthManager::MessageLevel level = QgsAuthManager::INFO ) /Deprecated/;
%Docstring
Custom logging signal to inform the user about master password <->
password manager interactions

:param message: Message to send
:param tag: Associated tag (title)
:param level: Message log level

.. seealso:: :py:class:`QgsMessageLog`

.. deprecated:: 3.40

   Use :py:func:`~QgsAuthManager.passwordHelperMessageLog` instead.
%End

    void passwordHelperMessageLog( const QString &message, const QString &tag = QgsAuthManager::AUTH_MAN_TAG, Qgis::MessageLevel level = Qgis::MessageLevel::Info );
%Docstring
Custom logging signal to inform the user about master password <->
password manager interactions

:param message: Message to send
:param tag: Associated tag (title)
:param level: Message log level

.. seealso:: :py:class:`QgsMessageLog`

.. versionadded:: 3.40
%End

    void masterPasswordVerified( bool verified );
%Docstring
Emitted when a password has been verify (or not)

:param verified: The state of password's verification
%End

    void authDatabaseEraseRequested();
%Docstring
Emitted when a user has indicated they may want to erase the
authentication db.
%End

    void authDatabaseChanged();
%Docstring
Emitted when the authentication db is significantly changed, e.g. large
record removal, erased, etc.
%End

  public slots:
    void clearAllCachedConfigs();
%Docstring
Clear all authentication configs from authentication method caches
%End

    void clearCachedConfig( const QString &authcfg );
%Docstring
Clear an authentication config from its associated authentication method
cache
%End

  protected:



  public:
  protected:

};

/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/core/auth/qgsauthmanager.h                                       *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/