Interface ICryptoImportElement

All Known Subinterfaces:
ICertificateImportModel
All Known Implementing Classes:
CertificateImportModel, KeystoreImportEntry

public interface ICryptoImportElement
Common interface for cryptographic elements, that can be imported into a keystore, such as certificates or keystore entries.
Since:
8.5.0
Author:
XIMA MEDIA GmbH
  • Method Details

    • getCertificateDetails

      CertificateDetails getCertificateDetails()
      Return information about the X.509 certificate associated with this entry. This includes details such as the subject name, fingerprint, and usage information of the certificate. Could be null!
      Returns:
      the certificate details, or null if not applicable
    • getDisplayName

      String getDisplayName(Locale locale)
      The name of the cryptographic element. This is used to identify the element in the user interface.
      Returns:
      the name of the cryptographic element
    • getNotImportableReason

      default String getNotImportableReason(Locale locale)
      Returns a localized message indicating why the element is not importable. This is used to inform the user about the reason why the element cannot be imported into a keystore.
      Parameters:
      locale - the locale to use for localization
      Returns:
      a localized message indicating why the element is not importable, or null if the element is importable
    • getType

      @NotNull @NotNull ECryptoImportElementType getType()
      The type of the cryptographic element. This indicates whether the element is a private key, a certificate, or another type.
      Returns:
      the type of the cryptographic element
    • isImportable

      default boolean isImportable()
      Indicates whether the element is importable. This is used to determine whether the element can be imported into a keystore.
      Returns:
      true if the element is importable, false otherwise