-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathownDevice.plantuml
More file actions
33 lines (30 loc) · 883 Bytes
/
ownDevice.plantuml
File metadata and controls
33 lines (30 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@startuml Sequence
skinparam backgroundColor transparent
hide footbox
box "D2D Client"
participant S as "Web App\n(running in the browser)"
participant C as "Service\n(local or remote host)"
end box
box "plgd hub"
participant CA as "Certificate Authority"
end box
alt GetConfiguration.device_authentication_mode == X509
alt remote_provisioning.mode == USER_AGENT
S -> C++: Own device\n(User token)
activate S
C -> S: Identity certificate challenge\n(Device Identity CSR, state)
S -> CA ++: Sign Device Identity CSR\n(CSR, User token)
return Identity Certificate Chain
S -> C: Finish Own\n(Identity Certificate Chain, User token, state)
return Device owned
deactivate C
deactivate S
else SELF
S -> C++: Own device\n(User token)
return Device owned
end
else PRE_SHARED_KEY
S -> C ++: Own device
return Device owned
end
@enduml