Class: QgsAuthImportCertDialog

class qgis.gui.QgsAuthImportCertDialog(parent: QWidget = None, filter: QgsAuthImportCertDialog.CertFilter = QgsAuthImportCertDialog.NoFilter, input: QgsAuthImportCertDialog.CertInput = QgsAuthImportCertDialog.AllInputs)

Bases: PyQt5.QtWidgets.QDialog

Construct a dialog for importing certificates

Parameters
  • parent (QWidget = None) – Parent widget

  • filter (QgsAuthImportCertDialog.CertFilter = QgsAuthImportCertDialog.NoFilter) – Certificate type filter to apply to dialog

  • input (QgsAuthImportCertDialog.CertInput = QgsAuthImportCertDialog.AllInputs) – Type of input(s) for certificates

Widget for importing a certificate into the authentication database

Methods

actionEvent

allowInvalidCerts

Whether to allow importation of invalid certificates (so trust policy can be overridden)

certFileToImport

Gets the file path to a certificate to import

certTextToImport

Gets certificate text to import

certTrustPolicy

Defined trust policy for imported certificates

certificatesToImport

Gets list of certificate objects to import

changeEvent

childEvent

closeEvent

connectNotify

contextMenuEvent

create

customEvent

destroy

disconnectNotify

dragEnterEvent

dragLeaveEvent

dragMoveEvent

dropEvent

enterEvent

event

eventFilter

focusInEvent

focusNextChild

focusNextPrevChild

focusOutEvent

focusPreviousChild

hideEvent

initPainter

inputMethodEvent

isSignalConnected

keyPressEvent

keyReleaseEvent

leaveEvent

metric

mouseDoubleClickEvent

mouseMoveEvent

mousePressEvent

mouseReleaseEvent

moveEvent

nativeEvent

paintEvent

receivers

resizeEvent

sender

senderSignalIndex

sharedPainter

showEvent

tabletEvent

timerEvent

updateMicroFocus

wheelEvent

Attributes

AllInputs

CaFilter

FileInput

NoFilter

TextInput

AllInputs = 1
CaFilter = 2
class CertFilter

Bases: int

class CertInput

Bases: int

FileInput = 2
NoFilter = 1
TextInput = 3
actionEvent(self, QActionEvent)
allowInvalidCerts(self) → bool

Whether to allow importation of invalid certificates (so trust policy can be overridden)

Return type

bool

certFileToImport(self) → str

Gets the file path to a certificate to import

Return type

str

certTextToImport(self) → str

Gets certificate text to import

Return type

str

certTrustPolicy(self) → QgsAuthCertUtils.CertTrustPolicy

Defined trust policy for imported certificates

Return type

QgsAuthCertUtils.CertTrustPolicy

certificatesToImport(self) → List[QSslCertificate]

Gets list of certificate objects to import

Return type

List[QSslCertificate]

changeEvent(self, QEvent)
childEvent(self, QChildEvent)
closeEvent(self, QCloseEvent)
connectNotify(self, QMetaMethod)
contextMenuEvent(self, QContextMenuEvent)
create(self, window: sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)
customEvent(self, QEvent)
destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)
disconnectNotify(self, QMetaMethod)
dragEnterEvent(self, QDragEnterEvent)
dragLeaveEvent(self, QDragLeaveEvent)
dragMoveEvent(self, QDragMoveEvent)
dropEvent(self, QDropEvent)
enterEvent(self, QEvent)
event(self, QEvent) → bool
eventFilter(self, QObject, QEvent) → bool
focusInEvent(self, QFocusEvent)
focusNextChild(self) → bool
focusNextPrevChild(self, bool) → bool
focusOutEvent(self, QFocusEvent)
focusPreviousChild(self) → bool
hideEvent(self, QHideEvent)
initPainter(self, QPainter)
inputMethodEvent(self, QInputMethodEvent)
isSignalConnected(self, QMetaMethod) → bool
keyPressEvent(self, QKeyEvent)
keyReleaseEvent(self, QKeyEvent)
leaveEvent(self, QEvent)
metric(self, QPaintDevice.PaintDeviceMetric) → int
mouseDoubleClickEvent(self, QMouseEvent)
mouseMoveEvent(self, QMouseEvent)
mousePressEvent(self, QMouseEvent)
mouseReleaseEvent(self, QMouseEvent)
moveEvent(self, QMoveEvent)
nativeEvent(self, Union[QByteArray, bytes, bytearray], sip.voidptr) → Tuple[bool, int]
paintEvent(self, QPaintEvent)
receivers(self, PYQT_SIGNAL) → int
resizeEvent(self, QResizeEvent)
sender(self) → QObject
senderSignalIndex(self) → int
sharedPainter(self) → QPainter
showEvent(self, QShowEvent)
tabletEvent(self, QTabletEvent)
timerEvent(self, QTimerEvent)
updateMicroFocus(self)
wheelEvent(self, QWheelEvent)