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 Details

  • Method Details

    • 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: CryptoImportBean
      Starts 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:
      startCryptoFileImport in interface CryptoImportBean
      Parameters:
      params - The parameters for starting the crypto import process, including the file data and a callback for the import result.
      Returns:
      true if the import process was started successfully, false otherwise.
    • startKeyStoreImport

      public boolean startKeyStoreImport(KeyStoreImportStartParams params)
      Description copied from interface: CryptoImportBean
      Optional. 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:
      startKeyStoreImport in interface CryptoImportBean
      Parameters:
      params - The parameters for starting the keystore import process, including the keystore file data, password, and a callback for the import result.
      Returns:
      true if the import process was started successfully, false otherwise.
    • 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()