code: @Override
      public final void onCompleted(String pin) {
          resetStatus();
          if ("".equals(firstPin)) {
              firstPin = pin;
              setLabel(getString(R.string.message_confirm_pin));
          } else {
              if (pin.equals(firstPin)) {
                  onPinSet(pin);
                  setResult(SUCCESS);
                  finish();
              } else {
                  setLabel(getString(R.string.message_pin_mismatch));
                  firstPin = "";
              }
          }
          resetStatus();
      }
docs: Implementation of BasePinActivity method
  @param pin PIN value entered by user