Skip to content

Commit

Permalink
update 2.1.0-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-cristea committed Jan 23, 2024
1 parent c43e7d9 commit 9a4e28d
Showing 1 changed file with 32 additions and 16 deletions.
48 changes: 32 additions & 16 deletions 2.1.0-SNAPSHOT/api_class_diagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ package "calypso.card" as calypsoCard {
FCI_FOR_CURRENT_DF
EF_LIST
TRACEABILITY_INFORMATION
<color:blue>CARD_PUB ???
<color:blue>CARD_CERT ???
<color:blue>CA_CERT ???
<color:blue>CARD_PUBLIC_KEY
<color:blue>CARD_CERTIFICATE
<color:blue>CA_CERTIFICATE
}
package "card" as card {
+interface "<<<back:yellow>CardSelectionExtension</back>>>\nCalypsoCardSelectionExtension" as CalypsoCardSelectionExtension <<blue>> {
Expand Down Expand Up @@ -136,9 +136,9 @@ package "card" as card {

+byte[] getTraceabilityInformation ()

+<color:blue>byte[] getCardPublicKey () ???
+<color:blue>byte[] getCardCert () ???
+<color:blue>byte[] getCaCert () ???
+<color:blue>byte[] getCardPublicKey ()
+<color:blue>byte[] getCardCertificate ()
+<color:blue>byte[] getCaCertificate ()

+DirectoryHeader getDirectoryHeader ()
+ElementaryFile getFileBySfi (byte sfi)
Expand Down Expand Up @@ -299,12 +299,12 @@ package "transaction" as transaction {
}
+interface "<color:blue>PkiPersonalizationTransactionManager" as PkiPersonalizationTransactionManager <<blue>> extends TransactionManager {
+<color:blue>PkiPersonalizationTransactionManager prepareGenerateAsymmetricKeyPair ()
+<color:blue>PkiPersonalizationTransactionManager prepareLoadCardCert (CardCertParams params)
+<color:blue>PkiPersonalizationTransactionManager prepareLoadCardCert (byte[] cardCert)
+<color:blue>PkiPersonalizationTransactionManager prepareLoadCaCert (byte[] caCert)
}
+interface "<color:blue>CardCertParams" as CardCertParams <<blue>> {
+<color:blue>CardCertParams useExternalSigner (CardCertProviderSpi cardCertProviderSpi)
+<color:blue>CardCertParams useInternalSigner (AsymmetricCryptoCardTransactionManagerFactory cryptoCardTransactionManagerFactory, byte[] issuerKeyPriv, byte[] issuerKeyReference)
+<color:blue>CardCertParams useInternalSigner (CardCertificateFactory cardCertificateFactory, byte[] issuerKeyPriv, byte[] issuerKeyReference)

+<color:blue>CardCertParams useExistingCardKeyPair ()
+<color:blue>CardCertParams generateCardKeyPair ()
Expand Down Expand Up @@ -348,13 +348,12 @@ package "transaction" as transaction {
DO
UNDO
}
together {
+interface "<color:blue>AsymmetricCryptoSecuritySetting" as AsymmetricCryptoSecuritySetting <<blue>> {
+<color:blue>AsymmetricCryptoSecuritySetting addPrimaryCertificationAuthorityCertificate (String certificateAlias, byte[] pcaPubRef)
+<color:blue>AsymmetricCryptoSecuritySetting addPrimaryCertificationAuthorityCertificate (X509Certificate certificate, byte[] pcaPubRef)
+<color:blue>AsymmetricCryptoSecuritySetting addPrimaryCertificationAuthorityPublicKey (byte[] pcaPub, byte[] pcaPubRef)
+<color:blue>AsymmetricCryptoSecuritySetting addPcaCertificate (PcaCertificate pcaCertificate)
+<color:blue>AsymmetricCryptoSecuritySetting addCaCertificate (CaCertificate caCertificate)

+<color:blue>AsymmetricCryptoSecuritySetting enableCacheForCertificationAuthority ()
+<color:blue>AsymmetricCryptoSecuritySetting addCaCertificateFactory (CaCertificateFactory caCertificateFactory)
+<color:blue>AsymmetricCryptoSecuritySetting addCardCertificateFactory (CardCertificateFactory cardCertificateFactory)
}
+interface "SymmetricCryptoSecuritySetting" as SymmetricCryptoSecuritySetting <<blue>> {
+SymmetricCryptoSecuritySetting enableMultipleSession ()
Expand All @@ -376,7 +375,6 @@ package "transaction" as transaction {

+void initCryptoContextForNextTransaction ()
}
}
+interface SearchCommandData <<blue>> {
+SearchCommandData setSfi (byte sfi)
+SearchCommandData startAtRecord (int recordNumber)
Expand Down Expand Up @@ -406,6 +404,14 @@ package "transaction" as transaction {
package "spi" as spi {
+interface "AsymmetricCryptoCardTransactionManagerFactory" as AsymmetricCryptoCardTransactionManagerFactory <<red>> {
}
+interface "CaCertificateFactory" as CaCertificateFactory <<red>> {
}
+interface "CardCertificateFactory" as CardCertificateFactory <<red>> {
}
+interface "PcaCertificate" as PcaCertificate <<red>> {
}
+interface "CaCertificate" as CaCertificate <<red>> {
}
+interface "SymmetricCryptoCardTransactionManagerFactory" as SymmetricCryptoCardTransactionManagerFactory <<red>> {
}
+interface "CardTransactionCryptoExtension" as CardTransactionCryptoExtension <<red>> {
Expand All @@ -430,7 +436,7 @@ TransactionManager .right.> SearchCommandData #C_USE : use >
PkiPersonalizationTransactionManager ..> CardCertParams #C_USE : use >

CardCertParams ..> CardCertProviderSpi #C_USE : use >
CardCertParams ..> AsymmetricCryptoCardTransactionManagerFactory #C_USE : use >
CardCertParams ..> CardCertificateFactory #C_USE : use >

SecureTransactionManager .....> CardTransactionCryptoExtension #C_LINK : provide >

Expand All @@ -440,6 +446,11 @@ SecureSymmetricCryptoTransactionManager .left.> SvAction #C_USE : use >

SymmetricCryptoSecuritySetting .up.> WriteAccessLevel #C_USE : use >

AsymmetricCryptoSecuritySetting .up.> PcaCertificate #C_USE : use >
AsymmetricCryptoSecuritySetting .up.> CaCertificate #C_USE : use >
AsymmetricCryptoSecuritySetting .up.> CaCertificateFactory #C_USE : use >
AsymmetricCryptoSecuritySetting .up.> CardCertificateFactory #C_USE : use >

CalypsoCardSelectionExtension .up.> SelectFileControl #C_USE : use >
CalypsoCardSelectionExtension .up.> GetDataTag #C_USE : use >
CalypsoCardSelectionExtension .up.> WriteAccessLevel #C_USE : use >
Expand All @@ -461,9 +472,14 @@ FileHeader .up.> FileType #C_LINK : provide >

' == LAYOUT ==

SymmetricCryptoSecuritySetting -[hidden]- AsymmetricCryptoSecuritySetting
'SymmetricCryptoSecuritySetting -[hidden]- AsymmetricCryptoSecuritySetting
AsymmetricCryptoSecuritySetting -[hidden]---- RuntimeException

AsymmetricCryptoCardTransactionManagerFactory -[hidden]- PcaCertificate
PcaCertificate -[hidden]- CaCertificate
CaCertificate -[hidden]- CaCertificateFactory
CaCertificateFactory -[hidden]- CardCertificateFactory

' == STYLE ==

package calypsoCard #C_GREY1 {}
Expand Down

0 comments on commit 9a4e28d

Please sign in to comment.