Updated PKI REST API with javadocs.