# saidsurucu/uhap-eimza-mac-arm64 architecture

> Architecture diagram of the GitHub repository saidsurucu/uhap-eimza-mac-arm64, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/saidsurucu/uhap-eimza-mac-arm64
- Repository: https://github.com/saidsurucu/uhap-eimza-mac-arm64

## Overview

This repository is an unofficial Apple Silicon packaging port of UHAP İmzalama, not the signing application's source. Its documented user flow is to launch the bundled app, start signing at uhap.com.tr, enter a card PIN, and sign a document through an AKİS smart card. The graph reflects that documented runtime and its configuration; implementation-level calls cannot be verified because no source excerpts were provided.

Main entry points: [`app`](https://github.com/saidsurucu/uhap-eimza-mac-arm64/tree/main/app) (UHAP app), [`app/Ard.ESignature.jar`](https://github.com/saidsurucu/uhap-eimza-mac-arm64/blob/main/app/Ard.ESignature.jar) (ESYA signing), [`app/Assd_api-0.0.1.jar`](https://github.com/saidsurucu/uhap-eimza-mac-arm64/blob/main/app/Assd_api-0.0.1.jar) (Signing API), [`app/config`](https://github.com/saidsurucu/uhap-eimza-mac-arm64/tree/main/app/config) (Signing config)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Signing runtime"]
  node_app["UHAP app"]
  node_java["Java runtime"]
  node_localserver["Local server"]
end

subgraph group_signing["Card signing"]
  node_signature["ESYA signing<br/>[Ard.ESignature.jar]"]
  node_api["Signing API<br/>[Assd_api-0.0.1.jar]"]
  node_pkcs11["SunPKCS11"]
  node_driver["AKİS driver"]
  node_card["AKİS smart card"]
end

subgraph group_trust["Trust configuration"]
  node_config["Signing config"]
  node_certstore[("Trusted certificates")]
  node_validation["Certificate service"]
end

node_user(("User"))
node_browser["Browser"]
node_uhap["UHAP website"]

node_user -->|"launches"| node_app
node_app -->|"runs on"| node_java
node_user -->|"opens"| node_browser
node_browser -->|"starts signing"| node_uhap
node_uhap -->|"uses localhost"| node_localserver
node_app -->|"hosts"| node_localserver
node_localserver -.->|"serves signing"| node_api
node_api -.->|"uses"| node_signature
node_signature -->|"signs through"| node_pkcs11
node_pkcs11 -->|"loads"| node_driver
node_driver -->|"reads"| node_card
node_user -->|"enters PIN"| node_card
node_app -->|"reads"| node_config
node_signature -.->|"uses trust store"| node_certstore
node_signature -->|"validates with"| node_validation

click node_app "https://github.com/saidsurucu/uhap-eimza-mac-arm64/tree/main/app"
click node_localserver "https://github.com/saidsurucu/uhap-eimza-mac-arm64/tree/main/app"
click node_signature "https://github.com/saidsurucu/uhap-eimza-mac-arm64/blob/main/app/Ard.ESignature.jar"
click node_api "https://github.com/saidsurucu/uhap-eimza-mac-arm64/blob/main/app/Assd_api-0.0.1.jar"
click node_pkcs11 "https://github.com/saidsurucu/uhap-eimza-mac-arm64/tree/main/app"
click node_config "https://github.com/saidsurucu/uhap-eimza-mac-arm64/tree/main/app/config"
click node_certstore "https://github.com/saidsurucu/uhap-eimza-mac-arm64/blob/main/app/TrustedCertificates/SertifikaDeposu.svt"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_java,node_localserver,node_user,node_browser toneBlue
class node_signature,node_api,node_pkcs11,node_driver,node_card toneAmber
class node_config,node_certstore,node_validation toneMint
class node_uhap toneIndigo
```

## Components

### Signing runtime

- [UHAP app](https://github.com/saidsurucu/uhap-eimza-mac-arm64/tree/main/app): `app`
- **Java runtime**
- [Local server](https://github.com/saidsurucu/uhap-eimza-mac-arm64/tree/main/app): `app`

### Card signing

- [ESYA signing](https://github.com/saidsurucu/uhap-eimza-mac-arm64/blob/main/app/Ard.ESignature.jar): `app/Ard.ESignature.jar`
- [Signing API](https://github.com/saidsurucu/uhap-eimza-mac-arm64/blob/main/app/Assd_api-0.0.1.jar): `app/Assd_api-0.0.1.jar`
- [SunPKCS11](https://github.com/saidsurucu/uhap-eimza-mac-arm64/tree/main/app): `app`
- **AKİS driver**
- **AKİS smart card**

### Trust configuration

- [Signing config](https://github.com/saidsurucu/uhap-eimza-mac-arm64/tree/main/app/config): `app/config`
- [Trusted certificates](https://github.com/saidsurucu/uhap-eimza-mac-arm64/blob/main/app/TrustedCertificates/SertifikaDeposu.svt): `app/TrustedCertificates/SertifikaDeposu.svt`
- **Certificate service**

### Other components

- **User**
- **Browser**
- **UHAP website**

## Connections

- User → UHAP app: launches (evidence: `README.md`)
- UHAP app → Java runtime: runs on (evidence: `README.md`)
- User → Browser: opens (evidence: `README.md`)
- Browser → UHAP website: starts signing (evidence: `README.md`)
- UHAP website → Local server: uses localhost (evidence: `README.md`)
- UHAP app → Local server: hosts (evidence: `README.md`)
- Local server → Signing API: serves signing
- Signing API → ESYA signing: uses
- ESYA signing → SunPKCS11: signs through (evidence: `README.md`)
- SunPKCS11 → AKİS driver: loads (evidence: `README.md`)
- AKİS driver → AKİS smart card: reads (evidence: `README.md`)
- User → AKİS smart card: enters PIN (evidence: `README.md`)
- UHAP app → Signing config: reads (evidence: `README.md`)
- ESYA signing → Trusted certificates: uses trust store
- ESYA signing → Certificate service: validates with (evidence: `README.md`)
