Search in sources :

Example 1 with CertGenerator

use of de.carne.certmgr.certs.spi.CertGenerator in project certmgr by hdecarne.

the class CertOptionsController method resetSigAlgOptions.

private void resetSigAlgOptions(@Nullable Issuer issuer) {
    CertGenerator generator = this.ctlGeneratorOption.getValue();
    KeyPairAlgorithm keyPairAlgorithm = this.ctlKeyAlgOption.getValue();
    resetSigAlgOptions(generator, keyPairAlgorithm, issuer);
}
Also used : KeyPairAlgorithm(de.carne.certmgr.certs.security.KeyPairAlgorithm) CertGenerator(de.carne.certmgr.certs.spi.CertGenerator)

Example 2 with CertGenerator

use of de.carne.certmgr.certs.spi.CertGenerator in project certmgr by hdecarne.

the class CertOptionsController method onCmdGenerate.

@SuppressWarnings("unused")
@FXML
void onCmdGenerate(ActionEvent evt) {
    try {
        String alias = validateAndGetAlias();
        CertGenerator generator = validateAndGetGenerator();
        GenerateCertRequest generateRequest = validateAndGetGenerateRequest(generator);
        getExecutorService().submit(new GenerateEntryTask(generator, generateRequest, alias));
    } catch (ValidationException e) {
        ValidationAlerts.error(e).showAndWait();
    }
}
Also used : CertGenerator(de.carne.certmgr.certs.spi.CertGenerator) ValidationException(de.carne.jfx.util.validation.ValidationException) GenerateCertRequest(de.carne.certmgr.certs.x509.GenerateCertRequest) FXML(javafx.fxml.FXML)

Example 3 with CertGenerator

use of de.carne.certmgr.certs.spi.CertGenerator in project certmgr by hdecarne.

the class CertOptionsController method resetSigAlgOptions.

private void resetSigAlgOptions(@Nullable KeyPairAlgorithm keyPairAlgorithm) {
    CertGenerator generator = this.ctlGeneratorOption.getValue();
    Issuer issuer = this.ctlIssuerInput.getValue();
    resetSigAlgOptions(generator, keyPairAlgorithm, issuer);
}
Also used : CertGenerator(de.carne.certmgr.certs.spi.CertGenerator) Issuer(de.carne.certmgr.certs.x509.generator.Issuer)

Aggregations

CertGenerator (de.carne.certmgr.certs.spi.CertGenerator)3 KeyPairAlgorithm (de.carne.certmgr.certs.security.KeyPairAlgorithm)1 GenerateCertRequest (de.carne.certmgr.certs.x509.GenerateCertRequest)1 Issuer (de.carne.certmgr.certs.x509.generator.Issuer)1 ValidationException (de.carne.jfx.util.validation.ValidationException)1 FXML (javafx.fxml.FXML)1