Interface ICertificateImportModel
- All Superinterfaces:
ICryptoImportElement
- All Known Implementing Classes:
CertificateImportModel
Interface for a model representing a certificate that can be imported into a formcycle keystore.
- Since:
- 8.5.0
- Author:
- Norman Lorenz
-
Method Summary
Modifier and TypeMethodDescriptionReturns an InputStream that provides the data of the certificate to be imported.booleanReturns whether the certificate is marked for import.voidsetMarkedForImport(boolean markedForImport) Sets whether the certificate is marked for import.Methods inherited from interface ICryptoImportElement
getCertificateDetails, getDisplayName, getNotImportableReason, getType, isImportable
-
Method Details
-
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
-