generateNewKeyForDataOwner method

Future<KeyGenerationRequestResult> generateNewKeyForDataOwner(
  1. DataOwnerWithType self
)

The correct initialisation of the crypto API requires that at least 1 verified (or device) key pair is available for each data owner part of the current data owner hierarchy. If no verified key is available for any of the data owner parents the api initialisation will automatically fail, however if there is no verified key for the current data owner you can instead create a new crypto key. @param self the current data owner. @param cryptoPrimitives cryptographic primitives you can use to support the process. @return an instance of KeyGenerationRequestResult specifying how the SDK should behave. @throws Exception you can throw any exception, and it will simply propagate to the api initialisation method.

Implementation

Future<KeyGenerationRequestResult> generateNewKeyForDataOwner(
  DataOwnerWithType self,
) {
  return Future.value(KeyGenerationRequestResult.allow());
}