Search in sources :

Example 1 with SignatureWizard

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));
    }
}
Also used : SignatureWizard(org.jcryptool.crypto.flexiprovider.algorithms.ui.wizards.signature.SignatureWizard) WizardDialog(org.eclipse.jface.wizard.WizardDialog) BlockCipherWizardDialog(org.jcryptool.crypto.flexiprovider.algorithms.ui.wizards.blockcipher.BlockCipherWizardDialog) AlgorithmDescriptor(org.jcryptool.crypto.flexiprovider.descriptors.algorithms.AlgorithmDescriptor)

Aggregations

WizardDialog (org.eclipse.jface.wizard.WizardDialog)1 BlockCipherWizardDialog (org.jcryptool.crypto.flexiprovider.algorithms.ui.wizards.blockcipher.BlockCipherWizardDialog)1 SignatureWizard (org.jcryptool.crypto.flexiprovider.algorithms.ui.wizards.signature.SignatureWizard)1 AlgorithmDescriptor (org.jcryptool.crypto.flexiprovider.descriptors.algorithms.AlgorithmDescriptor)1