michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: package org.mozilla.gecko.fxa.login; michael@0: michael@0: import org.mozilla.gecko.fxa.login.FxAccountLoginStateMachine.ExecuteDelegate; michael@0: import org.mozilla.gecko.fxa.login.FxAccountLoginTransition.PasswordRequired; michael@0: michael@0: michael@0: public class Separated extends State { michael@0: public Separated(String email, String uid, boolean verified) { michael@0: super(StateLabel.Separated, email, uid, verified); michael@0: } michael@0: michael@0: @Override michael@0: public void execute(final ExecuteDelegate delegate) { michael@0: delegate.handleTransition(new PasswordRequired(), this); michael@0: } michael@0: michael@0: @Override michael@0: public Action getNeededAction() { michael@0: return Action.NeedsPassword; michael@0: } michael@0: }