Whenever you're ready, walk me through how you'd approach this.
Explain the process of securing a Java-based REST API against common vulnerabilities.