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 CryptoImportBeanBean 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CryptoImportBeanImpl(SessionUserManager userManager, KeyStoreManagementService keyStoreManagementService, CertificateManagementService certificateManagementService, CryptoFileAnalyzer fileAnalyzerService, CryptoSettingsService cryptoSettingsService, ViewContextBean viewContextBean, LocaleBean localeBean, ICertificateLocalizer localizer)
-
Method Summary
-
-
-
Constructor Detail
-
CryptoImportBeanImpl
@Inject public CryptoImportBeanImpl(SessionUserManager userManager, KeyStoreManagementService keyStoreManagementService, CertificateManagementService certificateManagementService, CryptoFileAnalyzer fileAnalyzerService, CryptoSettingsService cryptoSettingsService, ViewContextBean viewContextBean, LocaleBean localeBean, ICertificateLocalizer localizer)
-
-
Method Detail
-
cleanup
@PreDestroy public void cleanup()
-
continueWithKeystoreEntries
public void continueWithKeystoreEntries()
-
continueWithKeystorePassword
public void continueWithKeystorePassword()
-
getImportElements
public List<? extends ICryptoImportElement> getImportElements()
-
getSelectKeyStoreEntriesSubtitle
public String getSelectKeyStoreEntriesSubtitle()
-
getSelectKeyStoreSubtitle
public String getSelectKeyStoreSubtitle()
-
getSelectKeyStoreTitle
public String 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
public boolean startCryptoFileImport(CryptoImportStartParams params)
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
public boolean startKeyStoreImport(KeyStoreImportStartParams params)
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
public KeyStoreScope getKeyStoreScope()
The context for which files are imported.
-
getSelectKeyStoreModel
public SelectKeyStoreModel 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
public IFileData getFile()
-
getKeystoreLayout
public KeystoreImportLayout getKeystoreLayout()
-
getImportResult
public FileImportResult getImportResult()
-
getStep
public ECryptoImportStep getStep()
-
-