-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a4e28d
commit bced6c1
Showing
4 changed files
with
65 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 59 additions & 0 deletions
59
2.1.0-SNAPSHOT/api_sequence_diagram_asymmetric_security_setting.puml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
@startuml | ||
title | ||
<img:../assets/logo.svg{scale=0.2}> | ||
|
||
AsymmetricSecuritySetting (2024-01-23) | ||
end title | ||
|
||
participant "App" as app | ||
participant "AsymmetricSecuritySetting" as setting | ||
participant "PcaCertificate" as pca | ||
participant "CaCertificate" as ca | ||
|
||
== addPcaCertificate == | ||
|
||
activate app | ||
|
||
app -> setting : addPcaCertificate (pcaCertificate) | ||
activate setting | ||
|
||
setting -> pca : extractPublicKey () | ||
activate pca | ||
setting <-- pca : publicKeySpi | ||
deactivate pca | ||
|
||
setting -> setting : savePublicKey (publicKeySpi) | ||
note right | ||
map.put(publicKeySpi.getReference(), publicKeySpi.getValue()) | ||
end note | ||
|
||
app <-- setting | ||
deactivate setting | ||
|
||
== addCaCertificate == | ||
|
||
app -> setting : addCaCertificate (caCertificate) | ||
activate setting | ||
|
||
setting -> ca : getIssuerPublicKeyReference () | ||
activate ca | ||
setting <-- ca : issuerPublicKeyReference | ||
deactivate ca | ||
|
||
setting -> setting : issuerPublicKey := findPublicKey (issuerPublicKeyReference) | ||
|
||
setting -> ca : extractPublicKey (issuerPublicKey.getPublicKey ()) | ||
activate ca | ||
setting <-- ca : publicKeySpi | ||
deactivate ca | ||
|
||
setting -> setting : savePublicKey (publicKeySpi) | ||
note right | ||
map.put(publicKeySpi.getReference(), publicKeySpi.getValue()) | ||
end note | ||
|
||
app <-- setting | ||
deactivate setting | ||
|
||
|
||
@enduml |
Oops, something went wrong.