Class GetWarFileFingerprint

All Implemented Interfaces:
Servlet, ServletConfig, Serializable

public class GetWarFileFingerprint extends HttpServlet
Gets the WAR file MD5 fingerprint. This is used to verify the final deployed artifact matches the expected content.

We choose MD5 over SHA-256 because Jenkins uses MD5 for fingerprints. This allows to directly search and find exactly which build deployed the running application.

Find the WAR file based on the path the application is deployed to. Uses ServletContext.getRealPath("/") then appends ".war". This might be specific to Tomcat installations, and should not be assumed to apply generally.

See Also: