Interface LegacySamApiFactory
public interface LegacySamApiFactory
Legacy SAM API Factory.
- Since:
- 0.3.0
-
Method Summary
Modifier and TypeMethodDescriptioncreateAsyncTransactionCreatorManager
(String targetSamContext, SecuritySetting securitySetting) Returns a new instance ofAsyncTransactionCreatorManager
.createAsyncTransactionExecutorManager
(org.eclipse.keypop.reader.CardReader samReader, LegacySam sam, String samCommands) Returns a new instance ofAsyncTransactionExecutorManager
.Returns a new instance ofBasicSignatureComputationData
.Returns a new instance ofBasicSignatureVerificationData
.createFreeTransactionManager
(org.eclipse.keypop.reader.CardReader samReader, LegacySam sam) Returns a new instance ofFreeTransactionManager
.Returns a new instance ofKeyPairContainer
.Returns a new instance ofLegacyCardCertificateComputationData
.Returns a new instance ofLegacySamSelectionExtension
.Returns a new instance ofSecuritySetting
.org.eclipse.keypop.calypso.card.transaction.spi.SymmetricCryptoCardTransactionManagerFactory
createSymmetricCryptoCardTransactionManagerFactory
(org.eclipse.keypop.reader.CardReader samReader, LegacySam sam) Returns a new instance ofSymmetricCryptoCardTransactionManagerFactory
to be used to secure a card transaction.Returns a new instance ofTraceableSignatureComputationData
.Returns a new instance ofTraceableSignatureVerificationData
.
-
Method Details
-
createLegacySamSelectionExtension
LegacySamSelectionExtension createLegacySamSelectionExtension()Returns a new instance ofLegacySamSelectionExtension
.- Returns:
- A new instance of
LegacySamSelectionExtension
. - Since:
- 0.3.0
-
createSymmetricCryptoCardTransactionManagerFactory
org.eclipse.keypop.calypso.card.transaction.spi.SymmetricCryptoCardTransactionManagerFactory createSymmetricCryptoCardTransactionManagerFactory(org.eclipse.keypop.reader.CardReader samReader, LegacySam sam) Returns a new instance ofSymmetricCryptoCardTransactionManagerFactory
to be used to secure a card transaction.- Parameters:
samReader
- The reader to use to communicate with the SAM.sam
- The associated control SAM to be used with the card transaction.- Returns:
- A new instance of
SymmetricCryptoCardTransactionManagerFactory
to be used to secure a card transaction. - Throws:
IllegalArgumentException
- If an argument is null or invalid.- Since:
- 0.3.0
-
createSecuritySetting
SecuritySetting createSecuritySetting()Returns a new instance ofSecuritySetting
.- Returns:
- A new instance of
SecuritySetting
. - Since:
- 0.3.0
-
createFreeTransactionManager
FreeTransactionManager createFreeTransactionManager(org.eclipse.keypop.reader.CardReader samReader, LegacySam sam) Returns a new instance ofFreeTransactionManager
.- Parameters:
samReader
- The reader to use to communicate with the SAM.sam
- The SAM image.- Returns:
- A new instance of
FreeTransactionManager
. - Throws:
IllegalArgumentException
- If an argument is null or invalid.- Since:
- 0.3.0
-
createAsyncTransactionCreatorManager
AsyncTransactionCreatorManager createAsyncTransactionCreatorManager(String targetSamContext, SecuritySetting securitySetting) Returns a new instance ofAsyncTransactionCreatorManager
.The target SAM context can be retrieved with the method
FreeTransactionManager.exportTargetSamContextForAsyncTransaction()
.- Parameters:
targetSamContext
- The target SAM context.securitySetting
- The security settings.- Returns:
- A new instance of
AsyncTransactionCreatorManager
. - Throws:
IllegalArgumentException
- If an argument is null or invalid.- Since:
- 0.3.0
-
createAsyncTransactionExecutorManager
AsyncTransactionExecutorManager createAsyncTransactionExecutorManager(org.eclipse.keypop.reader.CardReader samReader, LegacySam sam, String samCommands) Returns a new instance ofAsyncTransactionExecutorManager
.The commands must be prepared using a
AsyncTransactionCreatorManager
.- Parameters:
samReader
- The reader to use to communicate with the SAM.sam
- The SAM image.samCommands
- A string containing the prepared commands.- Returns:
- A new instance of
AsyncTransactionExecutorManager
. - Throws:
IllegalArgumentException
- If an argument is null or invalid.- Since:
- 0.3.0
-
createKeyPairContainer
KeyPairContainer createKeyPairContainer()Returns a new instance ofKeyPairContainer
.- Returns:
- A new instance of
KeyPairContainer
. - Since:
- 0.5.0
-
createLegacyCardCertificateComputationData
LegacyCardCertificateComputationData createLegacyCardCertificateComputationData()Returns a new instance ofLegacyCardCertificateComputationData
.- Returns:
- A new instance of
LegacyCardCertificateComputationData
. - Since:
- 0.5.0
-
createBasicSignatureComputationData
BasicSignatureComputationData createBasicSignatureComputationData()Returns a new instance ofBasicSignatureComputationData
.- Returns:
- A new instance of
BasicSignatureComputationData
. - Since:
- 0.3.0
-
createTraceableSignatureComputationData
TraceableSignatureComputationData createTraceableSignatureComputationData()Returns a new instance ofTraceableSignatureComputationData
.- Returns:
- A new instance of
TraceableSignatureComputationData
. - Since:
- 0.3.0
-
createBasicSignatureVerificationData
BasicSignatureVerificationData createBasicSignatureVerificationData()Returns a new instance ofBasicSignatureVerificationData
.- Returns:
- A new instance of
BasicSignatureVerificationData
. - Since:
- 0.3.0
-
createTraceableSignatureVerificationData
TraceableSignatureVerificationData createTraceableSignatureVerificationData()Returns a new instance ofTraceableSignatureVerificationData
.- Returns:
- A new instance of
TraceableSignatureVerificationData
. - Since:
- 0.3.0
-