verifyDelegatePublicKeys method

Future<List<CardinalRsaPublicKey>> verifyDelegatePublicKeys(
  1. CryptoActorStubWithType delegate,
  2. List<CardinalRsaPublicKey> publicKeys,
  3. String? groupId
)

Verifies if the public keys of a data owner which will be the delegate of a new exchange key do actually belong to the person the data owner represents. This method is not called when the delegate would be the current data owner for the api.

The user will have to obtain the verified public keys of the delegate from outside iCure, for example by email with another hcp, by checking the personal website of the other user, or by scanning verification qr codes at the doctor office...

As long as one of the public keys is verified the creation of a new exchange key will succeed. If no public key is verified the operation will fail. @param delegate the potential data owner delegate. @param publicKeys public keys requiring verification, in spki hex-encoded format. @param cryptoPrimitives cryptographic primitives you can use to support the process. @param groupId the id of the data owner's group, or null if the data owner is in the same group as the current user @return all verified public keys, in spki hex-encoded format.

Implementation

Future<List<CardinalRsaPublicKey>> verifyDelegatePublicKeys(
  CryptoActorStubWithType delegate,
  List<CardinalRsaPublicKey> publicKeys,
  String? groupId
) {
  return Future.value(publicKeys);
}