Interface ICertificateImportModel
-
- All Superinterfaces:
ICryptoImportElement
- All Known Implementing Classes:
CertificateImportModel
public interface ICertificateImportModel extends ICryptoImportElement
Interface for a model representing a certificate that can be imported into a formcycle keystore.- Since:
- 8.5.0
- Author:
- Norman Lorenz
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStreamgetInputStream()Returns an InputStream that provides the data of the certificate to be imported.booleanisMarkedForImport()Returns whether the certificate is marked for import.voidsetMarkedForImport(boolean markedForImport)Sets whether the certificate is marked for import.-
Methods inherited from interface de.xima.fc.certificate.gui.internal.importing.ICryptoImportElement
getCertificateDetails, getDisplayName, getNotImportableReason, getType, isImportable
-
-
-
-
Method Detail
-
getInputStream
InputStream getInputStream()
Returns 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.- Returns:
- an InputStream containing the certificate data
-
isMarkedForImport
boolean isMarkedForImport()
Returns whether the certificate is marked for import.- Returns:
- true if the certificate is marked for import, false otherwise (will be skipped during import)
-
setMarkedForImport
void setMarkedForImport(boolean markedForImport)
Sets whether the certificate is marked for import.- Parameters:
markedForImport- true to mark the certificate for import, false to skip it during import
-
-