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< keys) → Future<DelegationDto> >Set< String> > -
override
-
decryptHcPartyKeys(
Map< String, String> hcpKeys, String myId, RSAPrivateKey myPrivateKey) → Future<Map< String, Tuple2< >String, Uint8List> > -
decryptServices(
String myId, Uint8List? contactKey, List< ServiceDto> services) → Future<List< DecryptedServiceDto> > -
Available on Crypto, provided by the CryptoContact extension
-
encryptAESKeyForHcp(
String myId, String delegateId, String objectId, String secretKey) → Future< Tuple2< String, DataOwnerDto?> > -
override
-
encryptRSAKeyUsing(
String publicKey, String rsaPrivateKey) → Future< String> -
override
-
encryptServices(
String myId, Set< String> delegations, Uint8List? contactKey, List<DecryptedServiceDto> services) → Future<List< ServiceDto> > -
Available on Crypto, provided by the CryptoContact extension
-
encryptValueForHcp(
String myId, String delegateId, String objectId, String secret) → Future< Tuple2< String, DataOwnerDto?> > -
override
-
findAndDecryptPotentiallyUnknownKeysForDelegate(
String myId, String delegateId, Map< String, Set< keys) → Future<DelegationDto> >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