dataflow.wsd 790 B

1234567891011121314151617181920212223242526272829
  1. @startuml
  2. participant ChargeStation as cs
  3. participant CrazyCarge as cc
  4. autonumber
  5. note over cs, cc
  6. ChargeStation(CS) requesting CrazyCharge(CC) webhook
  7. vice versa with CrazyCharge requesting ChargeStation API
  8. end note
  9. cs -> cc ++: Request Access token with payload \nOperatorID & OperatorSecret
  10. cc -> cs --: Response Access token
  11. activate cs
  12. cs -> cs: Encrypt Data using AES with \n`DataSecret` & `DataSecretIV`
  13. cs -> cs: Sign using HMAC-MD5 with \nOperatorSecret+Data+TimeStamp+Seq
  14. cs -> cs: Encrypt payload using RSA with \npublic_key.pem
  15. cs->cc: Request webhooks with encrypted payload
  16. deactivate
  17. activate cc
  18. cc -> cc: Decrypt payload using RSA with \nprivate_key.pem
  19. cc -> cc: Verify signature using HMAC-MD5
  20. cc -> cc: Decrypt Data using AES
  21. cc -> cs: Response Success
  22. deactivate