Class CryptoImportBeanImpl
java.lang.Object
de.xima.fc.certificate.gui.internal.importing.CryptoImportBeanImpl
- All Implemented Interfaces:
CryptoImportBean, Serializable
@Named("cryptoImportBean")
@ViewScoped
public class CryptoImportBeanImpl
extends Object
implements CryptoImportBean
Bean for importing cryptographic credentials (certificates and keystores). This bean handles the file upload,
validation, and import process.
- Since:
- 8.5.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCryptoImportBeanImpl(SessionUserManager userManager, KeyStoreManagementService keyStoreManagementService, CertificateManagementService certificateManagementService, CryptoFileAnalyzer fileAnalyzerService, CryptoSettingsService cryptoSettingsService, ViewContextBean viewContextBean, LocaleBean localeBean, ICertificateLocalizer localizer) -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()voidvoidgetFile()List<? extends ICryptoImportElement> char[]The password for the keystore if the uploaded file is a keystore.The context for which files are imported.The selected keystore for the import.getStep()voidgoBack()voidhandleClose(org.primefaces.event.CloseEvent event) voidhandleFileUpload(org.primefaces.event.FileUploadEvent event) voidbooleanbooleanbooleanvoidsetKeystorePassword(char[] keystorePassword) The password for the keystore if the uploaded file is a keystore.booleanStarts the crypto import process with the given parameters.booleanOptional.
-
Constructor Details
-
CryptoImportBeanImpl
@Inject public CryptoImportBeanImpl(SessionUserManager userManager, KeyStoreManagementService keyStoreManagementService, CertificateManagementService certificateManagementService, CryptoFileAnalyzer fileAnalyzerService, CryptoSettingsService cryptoSettingsService, ViewContextBean viewContextBean, LocaleBean localeBean, ICertificateLocalizer localizer)
-
-
Method Details
-
cleanup
@PreDestroy public void cleanup() -
continueWithKeystoreEntries
public void continueWithKeystoreEntries() -
continueWithKeystorePassword
public void continueWithKeystorePassword() -
getImportElements
-
getSelectKeyStoreEntriesSubtitle
-
getSelectKeyStoreSubtitle
-
getSelectKeyStoreTitle
-
goBack
public void goBack() -
handleClose
public void handleClose(org.primefaces.event.CloseEvent event) -
handleFileUpload
public void handleFileUpload(org.primefaces.event.FileUploadEvent event) -
importUploadedFile
public void importUploadedFile() -
isHasImportableElementsMarkedForImport
public boolean isHasImportableElementsMarkedForImport() -
isShowKeystoreEntriesToolbar
public boolean isShowKeystoreEntriesToolbar() -
isShowKeystoreSelection
public boolean isShowKeystoreSelection() -
startCryptoFileImport
Description copied from interface:CryptoImportBeanStarts the crypto import process with the given parameters. Opens the crypto import dialog.If there are errors during the import process, they will be shown in the UI.
- Specified by:
startCryptoFileImportin interfaceCryptoImportBean- Parameters:
params- The parameters for starting the crypto import process, including the file data and a callback for the import result.- Returns:
trueif the import process was started successfully,falseotherwise.
-
startKeyStoreImport
Description copied from interface:CryptoImportBeanOptional. Starts the keystore import process with the given file data and password. The file data is expected to be a keystore file. Opens the import dialog for the keystore.If there are errors during the import process, they will be shown in the UI.
- Specified by:
startKeyStoreImportin interfaceCryptoImportBean- Parameters:
params- The parameters for starting the keystore import process, including the keystore file data, password, and a callback for the import result.- Returns:
trueif the import process was started successfully,falseotherwise.
-
getKeyStoreScope
The context for which files are imported. -
getSelectKeyStoreModel
The selected keystore for the import. This is either an existing keystore or a new keystore that should be created. -
getKeystorePassword
public char[] getKeystorePassword()The password for the keystore if the uploaded file is a keystore. -
setKeystorePassword
public void setKeystorePassword(char[] keystorePassword) The password for the keystore if the uploaded file is a keystore. -
getFile
-
getKeystoreLayout
-
getImportResult
-
getStep
-