A Java-based backend service designed to verify Android device attestations. This project uses Jakarta Servlet API for handling requests and Bouncy Castle for cryptographic verification.
- Java 17 or higher
- Maven 3.6 or higher
To get a local copy of the source code, clone the repository using Git:
git clone https://github.com/paadevelopments/attestation_app_backend.git
cd attestation_app/backendMaven will automatically handle the installation of dependencies like Bouncy Castle and Jackson. Run the following command to build the project and download all necessary libraries:
mvn clean install
The project is configured with the jetty-maven-plugin, allowing you to run the server quickly without a manual Tomcat installation.
- Run the following command:
mvn jetty:run
- The server will start on http://localhost:8080.
- The attestation endpoint will be available at
http://localhost:8080/attestation(or as configured in your servlet mapping).
- Build the WAR file:
mvn clean package
- Find the generated
attestation.warfile in thetarget/directory. - Copy
attestation.warto thewebappsfolder of your Tomcat installation. - Start Tomcat. The application will be accessible at
http://localhost:8080/attestation/.
src/main/java: Contains the core logic for the Attestation Engine and Servlets.src/main/resources: Contains configuration files and trusted root certificates.pom.xml: Maven configuration file defining dependencies and build plugins.
This project is licensed under the MIT License - see the LICENSE file for details.