Class KeystoreImportEntry
- java.lang.Object
-
- de.xima.fc.certificate.gui.internal.importing.KeystoreImportEntry
-
- All Implemented Interfaces:
ICryptoImportElement
public class KeystoreImportEntry extends Object implements 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
Constructors Constructor Description KeystoreImportEntry(String alias, ECryptoImportElementType type, CertificateDetails certificateDetails)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)voidclose()booleanequals(Object o)StringgetAlias()CertificateDetailsgetCertificateDetails()Return information about the X.509 certificate associated with this entry.StringgetDisplayName(Locale locale)The name of the cryptographic element.BooleangetImportable()char[]getPassword()The password for the keystore entry.StringgetPasswordStyleClass()BooleangetPasswordValid()Indicates whether the password is valid.ECryptoImportElementTypegetType()The type of the cryptographic element.inthashCode()booleanisImportable()Indicates whether the element is importable.booleanisMarkedForImport()voidsetImportable(Boolean importable)voidsetMarkedForImport(boolean markedForImport)voidsetPassword(char[] password)The password for the keystore entry.voidsetPasswordValid(Boolean passwordValid)Indicates whether the password is valid.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.xima.fc.certificate.gui.internal.importing.ICryptoImportElement
getNotImportableReason
-
-
-
-
Constructor Detail
-
KeystoreImportEntry
public KeystoreImportEntry(String alias, ECryptoImportElementType type, CertificateDetails certificateDetails)
-
-
Method Detail
-
close
public void close()
-
getDisplayName
public String getDisplayName(Locale locale)
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
public String 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
public void setImportable(Boolean importable)
-
getAlias
public String getAlias()
-
getType
public ECryptoImportElementType 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
public CertificateDetails 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
public Boolean 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
public Boolean 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
public void setPasswordValid(Boolean passwordValid)
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
-
canEqual
protected boolean canEqual(Object other)
-
-