Chapter 11. Writing a Secure Math Service

In this chapter we will add security to our MathService example. We will see that, once we have configured GSI, adding basic security to a service is very simple. The example in this chapter will highlight the changes necessary to make a service secure. In particular, the code will be similar to the singleton example seen in Chapter 4, Singleton resources. In the following chapters, we will continue to build on this example as we take a closer look at more elaborate security scenarios.


This chapter assumes that you have set up security in GT4 as explained in the official installation guide. In particular, to work through all the following examples, you will need to make sure you have two separate users: a special globus account and a normal user account which we will call globus4user (this can be your normal user account). The user account must have a valid digital certificate.