SealdEncryptionSession class SealdEncryptionSession
Represents an encryption session, with which you can then encrypt / decrypt multiple messages / files. This should not be created directly, and should be retrieved with SealdSdk.retrieveEncryptionSession.
- Implemented types
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String
-
The ID of this encryption session.
latefinal
- retrievalDetails ↔ SealdEncryptionSessionRetrievalDetails
-
Details about how this session was retrieved: through a group, a proxy, or directly.
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addMultipleTmrAccesses(
List< SealdTmrRecipientWithRights> recipients) → Map<String, SealdActionStatus> - Add multiple TMR accesses to this session for the given authentication factors.
-
addMultipleTmrAccessesAsync(
List< SealdTmrRecipientWithRights> recipients) → Future<Map< String, SealdActionStatus> > - Add multiple TMR accesses to this session for the given authentication factors.
-
addProxySession(
String proxySessionId, [SealdRecipientRights? rights]) → void - Add a proxy session as a recipient of this session. Any recipient of the proxy session will also be able to retrieve this session. The current user has to be a direct recipient of the proxy session.
-
addProxySessionAsync(
String proxySessionId, [SealdRecipientRights? rights]) → Future< void> - Add a proxy session as a recipient of this session. Any recipient of the proxy session will also be able to retrieve this session. The current user has to be a direct recipient of the proxy session.
-
addRecipients(
List< SealdRecipientWithRights> recipients) → Map<String, SealdActionStatus> - Adds new recipients to this session. These recipients will be able to read all encrypted messages of this session.
-
addRecipientsAsync(
List< SealdRecipientWithRights> recipients) → Future<Map< String, SealdActionStatus> > - Adds new recipients to this session. These recipients will be able to read all encrypted messages of this session.
-
addTmrAccess(
SealdTmrRecipientWithRights recipient) → String - Add a TMR access to this session for the given authentication factor.
-
addTmrAccessAsync(
SealdTmrRecipientWithRights recipient) → Future< String> - Add a TMR access to this session for the given authentication factor.
-
decryptFile(
Uint8List encryptedFile) → SealdClearFile - Decrypts an encrypted file into the corresponding clear-text file.
-
decryptFileAsync(
Uint8List encryptedFile) → Future< SealdClearFile> - Decrypts an encrypted file into the corresponding clear-text file.
-
decryptFileFromPath(
String encryptedFilePath) → String - Decrypts an encrypted file into the corresponding clear-text file.
-
decryptFileFromPathAsync(
String encryptedFilePath) → Future< String> - Decrypts an encrypted file into the corresponding clear-text file.
-
decryptMessage(
String encryptedMessage) → String - Decrypts an encrypted message string into the corresponding clear-text string.
-
decryptMessageAsync(
String encryptedMessage) → Future< String> - Decrypts an encrypted message string into the corresponding clear-text string.
-
encryptFile(
Uint8List clearFile, String filename) → Uint8List - Encrypt a clear-text file into an encrypted file, for the recipients of this session.
-
encryptFileAsync(
Uint8List clearFile, String filename) → Future< Uint8List> - Encrypt a clear-text file into an encrypted file, for the recipients of this session.
-
encryptFileFromPath(
String clearFilePath) → String - Encrypt a clear-text file into an encrypted file, for the recipients of this session.
-
encryptFileFromPathAsync(
String clearFilePath) → Future< String> - Encrypt a clear-text file into an encrypted file, for the recipients of this session.
-
encryptMessage(
String clearMessage) → String - Encrypts a clear-text string into an encrypted message, for the recipients of this session.
-
encryptMessageAsync(
String clearMessage) → Future< String> - Encrypts a clear-text string into an encrypted message, for the recipients of this session.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
revokeAll(
) → SealdRevokeResult - Revokes this session entirely.
-
revokeAllAsync(
) → Future< SealdRevokeResult> - Revokes this session entirely.
-
revokeOthers(
) → SealdRevokeResult - Revokes all recipients besides yourself from this session.
-
revokeOthersAsync(
) → Future< SealdRevokeResult> - Revokes all recipients besides yourself from this session.
-
revokeRecipients(
{List< String> ? recipientsIds, List<String> ? proxySessionsIds}) → SealdRevokeResult - Revokes some recipients or proxy sessions from this session. If you want to revoke all recipients, see SealdEncryptionSession.revokeAll instead. If you want to revoke all recipients besides yourself, see SealdEncryptionSession.revokeOthers.
-
revokeRecipientsAsync(
{List< String> ? recipientsIds, List<String> ? proxySessionsIds}) → Future<SealdRevokeResult> - Revokes some recipients or proxy sessions from this session. If you want to revoke all recipients, see SealdEncryptionSession.revokeAll instead. If you want to revoke all recipients besides yourself, see SealdEncryptionSession.revokeOthers.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited