KeyPairRecoverer class
Allows to recover user keypairs using builtin recovery mechanisms. This interface includes recovery methods that require some input from your application (e.g. a recovery key created from a different device). Other recovery methods (such as transfer keys) are used automatically by the sdk when available and don't require any input from your application.
Constructors
- KeyPairRecoverer.internal(String _nativeId)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recoverWithRecoveryKey(
RecoveryDataKey recoveryKey, bool autoDelete) → Future< RecoveryResult< Map< >String, Map< >CardinalRsaPublicKey, CardinalRsaPrivateKey> > - Recover a keypair using a recovery key created in the past using the {@link IccRecoveryXApi.createRecoveryInfoForAvailableKeyPairs} method. @param recoveryKey the result of a past call to {@link IccRecoveryXApi.createRecoveryInfoForAvailableKeyPairs}. @param autoDelete if true, the recovery data will be deleted from the server after it could be used successfully. This will prevent the recovery key from being used again. @return a recovery result, which, if successful, contains a map dataOwnerId -> publicKeySpki -> keyPair, where:
-
toString(
) → String -
A string representation of this object.
inherited
-
waitForRecoveryKey(
RecoveryDataKey recoveryKey, bool autoDelete, int waitSeconds) → CancellableFuture< RecoveryResult< Map< >String, Map< >CardinalRsaPublicKey, CardinalRsaPrivateKey> > -
Equivalent to recoverWithRecoveryKey except that if there is no recovery data for the provided key it waits for
up to
waitSeconds
seconds for it to be created. If the data wasn't created within the provided time frame this method will return aRecoveryResult.Failure
result withRecoveryDataUseFailureReason.Missing
at the end of the waiting period.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited