1The program TestPGP instantiates a SimplePGPMailerFactory and adds 2 it to the ServiceManager obtained from a running StarOffice. 3Then PGP can be used from within StarOffice. 4 5Prerequisites: 6StarOffice needs an entry in Office/user/sofficerc under the Common 7 section: 8 9 Port2=socket:hamburg-11070:1111 // old style 10as of 569 m 11Connection=socket,hamburg-11070,port=1111;iiop; 12 13Please note the semicolons! 14 15 hamburg-11070 is the host running the office and 1111 is a 16 freely choosable port number. 17 18 19 For the program to run make sure that the office has access 20 to classes.zip, unoil.jar, jurt.jar, pgp.jar and swingall.jar. 21 22 Therefore do the necessary entries in 23 Office/user/config/javarc 24 under SystemClasspath. 25 26There is a bug with jdk1.1.8, therfore use 1.2 instead. 27 28The TestPGP is called without ;iiop; : 29 30java TestPGP "socket,host=localhost,port=1111" 31 32 33 34