PPT PPTX ODP
Aspose.Slides  for Java

Lock or Password Protect PowerPoint and OpenOffice documents using Java

Build your own Java apps to set a password to presentations using server-side APIs.