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 Summary
Modifier and TypeMethodDescriptionReturn information about the X.509 certificate associated with this entry.getDisplayName(Locale locale) The name of the cryptographic element.default StringgetNotImportableReason(Locale locale) Returns a localized message indicating why the element is not importable.@NotNull ECryptoImportElementTypegetType()The type of the cryptographic element.default booleanIndicates whether the element is importable.
-
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 benull!- Returns:
- the certificate details, or
nullif not applicable
-
getDisplayName
-
getNotImportableReason
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
nullif the element is importable
-
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:
trueif the element is importable,falseotherwise
-