Interface CryptoImportBean
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
CryptoImportBeanImpl
public interface CryptoImportBean extends Serializable
Common interface for interacting with the crypto import process via the crypto import wizard (dialog). This is aview-scopedCDI bean that provides methods to start the import process for crypto files, such as keystores or certificates.Note: This is a GUI-specific interface that is used to interact with the crypto import process, therefore it is necessary that
cryptoImportDialog.xhtmlis included in the view, wich is included by default in/WEB-INF/xfc/templates/dialogs.xhtml.- Since:
- 8.6.0
- Author:
- Norman Lorenz
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static CryptoImportBeangetInstance()Returns an instance of theCryptoImportBeanusing CDI.booleanstartCryptoFileImport(CryptoImportStartParams params)Starts the crypto import process with the given parameters.booleanstartKeyStoreImport(KeyStoreImportStartParams params)Optional.
-
-
-
Method Detail
-
getInstance
static CryptoImportBean getInstance()
Returns an instance of theCryptoImportBeanusing CDI.This method should be used with caution, as it relies on CDI and works only during JSF lifecycle phases, where there is a
FacesContextavailable.- Returns:
- An instance of
CryptoImportBean. - Throws:
javax.enterprise.context.ContextNotActiveException- if called outside a JSF context.
-
startCryptoFileImport
boolean startCryptoFileImport(CryptoImportStartParams params)
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.
- 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
boolean startKeyStoreImport(KeyStoreImportStartParams params)
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.
- 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.
-
-