libQuotient
A Qt library for building matrix clients
Quotient::SSSSHandler Class Reference

#include <sssshandler.h>

Inheritance diagram for Quotient::SSSSHandler:
Collaboration diagram for Quotient::SSSSHandler:

Public Types

enum  Error {
  WrongKeyError , NoKeyError , DecryptionError , InvalidSignatureError ,
  UnsupportedAlgorithmError
}
 

Signals

void keyBackupUnlocked ()
 
void error (Error error)
 
void connectionChanged ()
 
void finished ()
 Emitted after keys are loaded. More...
 

Public Member Functions

Q_INVOKABLE void unlockSSSSWithPassphrase (const QString &passphrase)
 Unlock the secret backup from the given passprhase. More...
 
Q_INVOKABLE void unlockSSSSFromCrossSigning ()
 Unlock the secret backup by requesting the decryption keys from other devices. More...
 
Q_INVOKABLE void unlockSSSSFromSecurityKey (const QString &encodedKey)
 Unlock the secret backup from the given security key. More...
 
Connectionconnection () const
 
void setConnection (Connection *connection)
 

Properties

Quotient::Connectionconnection
 

Detailed Description

Definition at line 14 of file sssshandler.h.

Member Enumeration Documentation

◆ Error

Enumerator
WrongKeyError 
NoKeyError 
DecryptionError 
InvalidSignatureError 
UnsupportedAlgorithmError 

Definition at line 20 of file sssshandler.h.

Member Function Documentation

◆ connection()

Connection* Quotient::SSSSHandler::connection ( ) const

◆ connectionChanged

void Quotient::SSSSHandler::connectionChanged ( )
signal

◆ error

void Quotient::SSSSHandler::error ( Error  error)
signal

◆ finished

void Quotient::SSSSHandler::finished ( )
signal

Emitted after keys are loaded.

◆ keyBackupUnlocked

void Quotient::SSSSHandler::keyBackupUnlocked ( )
signal

◆ setConnection()

void Quotient::SSSSHandler::setConnection ( Connection connection)

◆ unlockSSSSFromCrossSigning()

Q_INVOKABLE void Quotient::SSSSHandler::unlockSSSSFromCrossSigning ( )

Unlock the secret backup by requesting the decryption keys from other devices.

◆ unlockSSSSFromSecurityKey()

Q_INVOKABLE void Quotient::SSSSHandler::unlockSSSSFromSecurityKey ( const QString &  encodedKey)

Unlock the secret backup from the given security key.

◆ unlockSSSSWithPassphrase()

Q_INVOKABLE void Quotient::SSSSHandler::unlockSSSSWithPassphrase ( const QString &  passphrase)

Unlock the secret backup from the given passprhase.

Property Documentation

◆ connection

Quotient::Connection* Quotient::SSSSHandler::connection
readwrite

Definition at line 1 of file sssshandler.h.


The documentation for this class was generated from the following file: