Class KeystoreImportEntry
java.lang.Object
de.xima.fc.certificate.gui.internal.importing.KeystoreImportEntry
- All Implemented Interfaces:
ICryptoImportElement
Represents an entry in a keystore that is to be imported. This class encapsulates details such as the alias, the type
of the keystore entry, and its certificate usage information.
- Since:
- 8.5.0
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
ConstructorsConstructorDescriptionKeystoreImportEntry(String alias, ECryptoImportElementType type, CertificateDetails certificateDetails) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanvoidclose()booleangetAlias()Return information about the X.509 certificate associated with this entry.getDisplayName(Locale locale) The name of the cryptographic element.char[]The password for the keystore entry.Indicates whether the password is valid.getType()The type of the cryptographic element.inthashCode()booleanIndicates whether the element is importable.booleanvoidsetImportable(Boolean importable) voidsetMarkedForImport(boolean markedForImport) voidsetPassword(char[] password) The password for the keystore entry.voidsetPasswordValid(Boolean passwordValid) Indicates whether the password is valid.toString()Methods inherited from interface ICryptoImportElement
getNotImportableReason
-
Constructor Details
-
KeystoreImportEntry
public KeystoreImportEntry(String alias, ECryptoImportElementType type, CertificateDetails certificateDetails)
-
-
Method Details
-
close
public void close() -
getDisplayName
Description copied from interface:ICryptoImportElementThe name of the cryptographic element. This is used to identify the element in the user interface.- Specified by:
getDisplayNamein interfaceICryptoImportElement- Returns:
- the name of the cryptographic element
-
getPasswordStyleClass
-
isImportable
public boolean isImportable()Description copied from interface:ICryptoImportElementIndicates whether the element is importable. This is used to determine whether the element can be imported into a keystore.- Specified by:
isImportablein interfaceICryptoImportElement- Returns:
trueif the element is importable,falseotherwise
-
setImportable
-
getAlias
-
getType
Description copied from interface:ICryptoImportElementThe type of the cryptographic element. This indicates whether the element is a private key, a certificate, or another type.- Specified by:
getTypein interfaceICryptoImportElement- Returns:
- the type of the cryptographic element
-
getCertificateDetails
Description copied from interface:ICryptoImportElementReturn 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!- Specified by:
getCertificateDetailsin interfaceICryptoImportElement- Returns:
- the certificate details, or
nullif not applicable
-
getImportable
-
isMarkedForImport
public boolean isMarkedForImport() -
getPassword
public char[] getPassword()The password for the keystore entry. This is used to access the private key or certificate. This only applies to entries with a private key, e.g.ECryptoImportElementType.KEY_PAIR -
getPasswordValid
Indicates whether the password is valid. This is set to null if the password has not been validated yet. This only applies to entries with a private key, e.g.ECryptoImportElementType.KEY_PAIR -
setMarkedForImport
public void setMarkedForImport(boolean markedForImport) -
setPassword
public void setPassword(char[] password) The password for the keystore entry. This is used to access the private key or certificate. This only applies to entries with a private key, e.g.ECryptoImportElementType.KEY_PAIR -
setPasswordValid
Indicates whether the password is valid. This is set to null if the password has not been validated yet. This only applies to entries with a private key, e.g.ECryptoImportElementType.KEY_PAIR -
equals
-
canEqual
-
hashCode
-
toString
-