Class 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
    • Method Detail

      • close

        public void close()
      • getDisplayName

        public String getDisplayName​(Locale locale)
        Description copied from interface: ICryptoImportElement
        The name of the cryptographic element. This is used to identify the element in the user interface.
        Specified by:
        getDisplayName in interface ICryptoImportElement
        Returns:
        the name of the cryptographic element
      • getPasswordStyleClass

        public String getPasswordStyleClass()
      • isImportable

        public boolean isImportable()
        Description copied from interface: ICryptoImportElement
        Indicates whether the element is importable. This is used to determine whether the element can be imported into a keystore.
        Specified by:
        isImportable in interface ICryptoImportElement
        Returns:
        true if the element is importable, false otherwise
      • setImportable

        public void setImportable​(Boolean importable)
      • getAlias

        public String getAlias()
      • getCertificateDetails

        public CertificateDetails getCertificateDetails()
        Description copied from interface: ICryptoImportElement
        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!
        Specified by:
        getCertificateDetails in interface ICryptoImportElement
        Returns:
        the certificate details, or null if 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object