LocalCrypto class

Implemented types
Available Extensions

Constructors

LocalCrypto(DataOwnerResolver dataOwnerResolver, Map<String, RSAKeypair> rsaKeyPairs)

Properties

dataOwnerResolver DataOwnerResolver
getter/setter pair
delegateHcpartyKeysCache Map<String, Future<Uint8List?>>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
rsaKeyPairs Map<String, RSAKeypair>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearCachesFor(String dataOwnerId) → void
override
decryptEncryptionKeys(String myId, Map<String, Set<DelegationDto>> keys) Future<Set<String>>
override
decryptHcPartyKeys(Map<String, String> hcpKeys, String myId, RSAPrivateKey myPrivateKey) Future<Map<String, Tuple2<String, Uint8List>>>
encryptAESKeyForHcp(String myId, String delegateId, String objectId, String secretKey) Future<Tuple2<String, DataOwnerDto?>>
override
encryptRSAKeyUsing(String publicKey, String rsaPrivateKey) Future<String>
override
encryptValueForHcp(String myId, String delegateId, String objectId, String secret) Future<Tuple2<String, DataOwnerDto?>>
override
findAndDecryptPotentiallyUnknownKeysForDelegate(String myId, String delegateId, Map<String, Set<DelegationDto>> keys) Future<Set<String>>
override
findKeysToDecrypt(DataOwnerDto? dataOwner) Iterable<MapEntry<String, String>>
getDelegateHcPartyKey(String delegateId, String ownerId, RSAPrivateKey? myPrivateKey) Future<Uint8List?>
getHcPartyKeyByOwner(String delegateId, String ownerId, RSAPrivateKey? myPrivateKey) Future<Uint8List?>
getOrCreateHcPartyKey(String myId, String delegateId, {RSAPrivateKey? privateKey, RSAPublicKey? publicKey}) Future<Tuple2<Uint8List, DataOwnerDto?>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited