Case study
TextSpectacles Secure App
Secure messaging for field agents (academic)
An academic Java EE web app (INT316D Internet Programming) that lets field agents send encrypted messages to managers at HQ.
The problem
Field agents and HQ managers need to exchange sensitive messages securely.
Who it serves
- Field agents
- HQ managers
Key features
Key management
Agents generate, view and store a secret key.
Encrypted messages
Messages are encrypted with DESede (Triple DES), with a ciphertext preview before sending.
Priority levels
Messages are classed Low, High or Critical; managers see them ordered Critical → High → Low.
Retract messages
Agents can remove a specific ciphertext from HQ.
Manager insights
Managers read messages decrypted and can see the worst-performing agent.
Error handling
Handles unauthenticated and unauthorised access, missing resources and invalid 3-digit agent IDs.
What I built and how
- Role-based authentication and authorisation.
- Messages encrypted with DESede (Triple DES); business logic in EJB session beans; MySQL persistence.
- Servlets as controllers, EJB session beans for business logic, DAOs over JDBC and MySQL.
- Role-based security through a GlassFish / Payara file realm.
- JSP and HTML front end with session-based conversational state.
- Java EE
- JSP
- Servlets
- EJB
- JDBC
- MySQL
Source: the TextSpectaclesSecureApp README on GitHub.