extract method

  1. @override
Future<RsaKeyPairData> extract()
override

Reads the private key into memory.

Throws UnsupportedError if extraction is not possible.

Implementation

@override
Future<RsaKeyPairData> extract() {
  if (hasBeenDestroyed) {
    throw StateError('Key has been destroyed');
  }
  return Future<RsaKeyPairData>.value(this);
}