Class CertificateImportModel
java.lang.Object
de.xima.fc.certificate.gui.internal.importing.CertificateImportModel
- All Implemented Interfaces:
ICertificateImportModel, ICryptoImportElement
-
Constructor Summary
ConstructorsConstructorDescriptionCertificateImportModel(CertificateDetails certificateDetails, byte[] certificateData) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]Return information about the X.509 certificate associated with this entry.getDisplayName(Locale locale) The name of the cryptographic element.Returns an InputStream that provides the data of the certificate to be imported.Returns the subject of the certificate by selecting the first applicable Subject Alternative Name (SAN) entry.getType()The type of the cryptographic element.inthashCode()booleanReturns whether the certificate is marked for import.voidsetMarkedForImport(boolean markedForImport) Sets whether the certificate is marked for import.toString()Methods inherited from interface ICryptoImportElement
getNotImportableReason, isImportable
-
Constructor Details
-
CertificateImportModel
-
-
Method Details
-
equals
-
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
-
getInputStream
Description copied from interface:ICertificateImportModelReturns an InputStream that provides the data of the certificate to be imported. This stream should be closed by the caller after use to free resources.- Specified by:
getInputStreamin interfaceICertificateImportModel- Returns:
- an InputStream containing the certificate data
-
getSubjectAlternative
Returns the subject of the certificate by selecting the first applicable Subject Alternative Name (SAN) entry.- Returns:
- the subject alternative name as an
X501DistinguishedName, or null if no SAN entries are available.
-
hashCode
-
toString
-
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
-
getCertificateData
public byte[] getCertificateData() -
isMarkedForImport
public boolean isMarkedForImport()Description copied from interface:ICertificateImportModelReturns whether the certificate is marked for import.- Specified by:
isMarkedForImportin interfaceICertificateImportModel- Returns:
- true if the certificate is marked for import, false otherwise (will be skipped during import)
-
setMarkedForImport
public void setMarkedForImport(boolean markedForImport) Description copied from interface:ICertificateImportModelSets whether the certificate is marked for import.- Specified by:
setMarkedForImportin interfaceICertificateImportModel- Parameters:
markedForImport- true to mark the certificate for import, false to skip it during import
-