/** * <p>Begin the "wipe device" use case</p> */ public void beginWipeDeviceUseCase() { log.debug("Begin 'wipe device' use case"); // Clear relevant information resetAllButFeatures(); // Track the use case currentUseCase = ContextUseCase.WIPE_DEVICE; // Set the event receiving state currentState = HardwareWalletStates.newConfirmWipeState(); // Issue starting message to elicit the event client.wipeDevice(); }
/** * <p>Begin the "load wallet" use case</p> * * @param specification The specification describing the use of PIN, seed strength etc */ public void beginLoadWallet(LoadWalletSpecification specification) { log.debug("Begin 'load wallet' use case"); // Clear relevant information resetAllButFeatures(); // Track the use case currentUseCase = ContextUseCase.LOAD_WALLET; // Store the overall context parameters this.loadWalletSpecification = Optional.fromNullable(specification); // Set the event receiving state currentState = HardwareWalletStates.newConfirmWipeState(); // Issue starting message to elicit the event client.wipeDevice(); }
/** * <p>Begin the "create wallet on device" use case</p> * * @param specification The specification describing the use of PIN, seed strength etc */ public void beginCreateWallet(CreateWalletSpecification specification) { log.debug("Begin 'create wallet on device' use case"); // Clear relevant information resetAllButFeatures(); // Track the use case currentUseCase = ContextUseCase.CREATE_WALLET; // Store the overall context parameters this.createWalletSpecification = Optional.fromNullable(specification); // Set the event receiving state currentState = HardwareWalletStates.newConfirmWipeState(); // Issue starting message to elicit the event client.wipeDevice(); }