TwoStepSignStep2.java 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. ///////////////////////////////////////////////////////////////////////////
  2. // Copyright (c) 2018 Intel Corporation. //
  3. // //
  4. // All rights reserved. This program and the accompanying materials //
  5. // are made available under the terms of the Eclipse Public License v1.0 //
  6. // which accompanies this distribution, and is available at //
  7. // http://www.eclipse.org/legal/epl-v10.html //
  8. // //
  9. // Contributors: //
  10. // Intel Corporation - initial implementation and documentation //
  11. ///////////////////////////////////////////////////////////////////////////
  12. package com.intel.sgx.handlers;
  13. import org.eclipse.jface.dialogs.InputDialog;
  14. import com.intel.sgx.dialogs.TwoStepSignStep2Dialog;
  15. // Sign
  16. public class TwoStepSignStep2 extends TwoStepSignHandlerBase {
  17. public TwoStepSignStep2() {
  18. }
  19. @Override
  20. protected Object executeSGXStuff() throws ErrorException, CancelException {
  21. initializeSigntool();
  22. TwoStepSignStep2Dialog dialog = new TwoStepSignStep2Dialog(shell, this);
  23. if(dialog.open() != InputDialog.OK) {
  24. cancel();
  25. }
  26. executeCatSig();
  27. return null;
  28. }
  29. }