Newer
Older
## API Module
The API-module contains interfaces and domain model value
classes that provide the basic functionality to build an sdk-client.
The SDk is set up as a maven multi module to separate the (internal) API from implementation details
##### API Module
The api module consists of all domain model classes and (api-) public interfaces needed to build an sdk-client
#### Client Module
Factories and Helper to create Sender and Subscriber. It acts as the actual user client.
#### Impl Module
Interface implementations
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
### Service Architecture
```mermaid
classDiagram
class CryptoService{
+ decryptString
+ decryptBytes
+ encryptString
+ encryptBytes
}
class CertificateValidator{
+ validatePublicKey
}
class MetadataValidator{
+ validateMetadataSchema
+ validateMetadataHashValues
}
class MetadataService{
+ createMetadata
}
class OAuthService{
+ authenticate
}
class Sender {
+ retrieveOAuthToken
+ validatePublicKey
+ encryptSubmissionData
+ encryptAttachment
+ MetadataService
+ createMetadata
}
class Subscriber {
+ retrieveOAuthToken
+ decryptSubmissionData
+ decryptAttachment
+ validateMetadataSchema
+ validateMetadataHashValues
}
Subscriber
}
class SdkClientFactory {
SdkModule (Guice DI)
SdkClientFactory ..> SenderClient : Creates
SdkClientFactory ..> SubscriberClient : Creates
SenderClient ..> Sender : Uses
SubscriberClient ..> Subscriber : Uses
Sender ..> CertificateValidator : Uses
Sender ..> MetadataService : Uses
Sender ..> OAuthService : Uses
Sender ..> CryptoService : Uses
Subscriber ..> OAuthService : Uses
Subscriber ..> CryptoService : Uses
Subscriber ..> MetadataValidator : Uses
```