Class CryptoImportStartParams

java.lang.Object
de.xima.fc.certificate.gui.importing.CryptoImportStartParams

public final class CryptoImportStartParams extends Object
Parameters for starting the import process of crypto files such as keystores or certificates. This model defines the necessary data and callback for when the import process is completed.
Since:
22.08.25
Author:
Norman Lorenz
  • Method Details

    • builder

      public static CryptoImportStartParams.Builder builder()
    • toBuilder

      public CryptoImportStartParams.Builder toBuilder()
    • getCryptoFileData

      public byte[] getCryptoFileData()
      Required. The crypto file data to be imported. This can be a keystore, certificate, or any other crypto-related file.
    • getImportResultCallback

      public Consumer<FileImportResult> getImportResultCallback()
      Optional. A callback that will be invoked with the result of the import process. This callback is executed after all necessary steps of the import process have been completed, including any user interactions in the crypto import dialog.
    • getKeyStoreScope

      public KeyStoreScope getKeyStoreScope()
      Optional. The scope in which the crypto file is being imported, such as whether it is client or system scope. This is used to determine the keystore options of the import process. If not provided, the current scope of the view will be used.
    • getKeyStoreSelector

      public KeyStoreSelector getKeyStoreSelector()
      Optional. A selector for the keystore where the crypto element should be imported into. If not provided, the import will require user interaction to select the keystore. If a selector is provided, the import process will be started immediately with the selected keystore if set to do so and if possible (i.e. no further user interaction is required, such as password prompts).
      See Also:
      • continueWithKeyStoreSelector
    • isContinueWithKeyStoreSelector

      public boolean isContinueWithKeyStoreSelector()
      Optional. Whether to continue the import process should continue automatically if a keystore selector is provided. If set to true, the import process will proceed without user interaction when a keystore selector is set. If set to false, the user will be prompted to confirm the selected keystore before proceeding with the import.
      See Also:
      • keyStoreSelector
    • isKeyStoreSelectionDisabled

      public boolean isKeyStoreSelectionDisabled()
      Optional. Indicates whether the user should be allowed to select a different keystore during the import process. If true, the keystore selection will be disabled and the import will proceed with the default or provided keystore. If false, the user will be able to choose from available keystores. Default is false.
    • isPrivateKeyImportAllowed

      public boolean isPrivateKeyImportAllowed()
      Optional. Indicates whether the import of private keys is allowed. If true, private keys can be imported along with certificates. If false, only public certificates can be imported. Default is false.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object