Interface ICryptoImportElement
-
- All Known Subinterfaces:
ICertificateImportModel
- All Known Implementing Classes:
CertificateImportModel,KeystoreImportEntry
public interface ICryptoImportElementCommon 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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CertificateDetailsgetCertificateDetails()Return information about the X.509 certificate associated with this entry.StringgetDisplayName(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 booleanisImportable()Indicates whether the element is importable.
-
-
-
Method Detail
-
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
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
nullif 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:
trueif the element is importable,falseotherwise
-
-