User guide

Chapter 7: Developing Applications
7-46
Example
AuthorizationCredential ・・・
Dn cn=user002,ou=User,ou=interstage,o=fujitsu,dc=com
Uid user002
Role Admin
ClientAddress /10.34.157.109
AuthMethod basicAuth
AuthTime Tue Sep 30 18:15:12 JST 2003
Expiration Tue Sep 30 18:45:12 JST 2003
Principal user002
Principal CN=user002,OU=User,OU=interstage,O=fujitsu,DC=com
Principal Admin
Application that Uses a User ID/Password for Authentication and Authorization
Outline of Sample Code
This sample code is for an application using a user ID/password entered from the business server
window for authentication and executing authorization according to a security policy.
Sample Code Storage Location
The sample code is stored in the following directories (hereafter referred to as the sample directories).
Interstage install directory: C:\Interstage
C:\Interstage\F3FMsso\ssoatzag\sample\javaapi
/opt/FJSVssoaz/sample/javaapi
The table below lists the files required to execute the sample code.
Table 7-25 Sample Code
File Explanation
ISSsoJaas.java Sample Java source (class for authentication and authorization)
ISSsoAction.java Sample Java source (class for accessing protection resource)
isssojaaslogin.conf Login configuration file sample
isssojaas.policy Sample of security policy file used for JDK1.3
isssojaasauth.policy Sample of principal base security policy file used for JDK1.3
isssojaas14.policy Sample of security policy file used for JDK1.4