use of org.jcryptool.crypto.flexiprovider.algorithms.ui.wizards.signature.SignatureWizard in project core by jcryptool.
the class AlgorithmsManager method performSignatureCalled.
private static void performSignatureCalled(IMetaAlgorithm algorithm) {
if (algorithm.getParameterSpecClassName() != null) /*
* && !algorithm. isParameterSpecDisabled ()
*/
{
// $NON-NLS-1$
LogUtil.logInfo("has paramspec: " + algorithm.getParameterSpecClassName());
// open wizard
signatureWizard = new SignatureWizard(algorithm);
dialog = new WizardDialog(shell, signatureWizard);
dialog.setMinimumPageSize(300, 175);
int result = dialog.open();
if (result == Window.OK) {
NewOperationManager.getInstance().fireNewOperation(signatureWizard.getDescriptor());
}
} else {
// $NON-NLS-1$
LogUtil.logInfo("has no paramspec");
NewOperationManager.getInstance().fireNewOperation(new AlgorithmDescriptor(algorithm.getName(), RegistryType.SIGNATURE, null));
}
}
Aggregations