This procedure documents compiling the command line samples as well as running them. It uses the scripts for the Solaris and Linux operating systems. opensso-client-zip-root refers to the directory in which you decompressed the appropriate Client SDK WAR.
Be sure to run all the scripts discussed one level up from the directory in which they are found.
This procedure assumes you have completed To Install the Client SDK by Deploying the Sample WAR and the successful configuration screen is still displayed.
On the command line of the machine on which the Client SDK is installed, change to opensso-client-zip-root/sdk/scripts and run chmod to make the scripts executable.
# cd opensso-client-zip-root/sdk/scripts # chmod 755 *.sh
Execute compile-samples.sh to compile the scripts.
# cd ../ # scripts/compile-samples.sh
Run the setup script to initialize the command line samples.
# cd ../ # scripts/setup.sh
Use setup.bat on Windows systems.
The script uses Main.java and creates AMConfig.properties with a pointer to the opensso-client-zip-root/sdk/resources directory.
Run the individual Client SDK samples by executing the rest of the scripts in the /scripts directory.
Uses Login.java to log in and log out a user.
Uses CommandLineSSO.java to retrieve a user profile.
Uses its myriad source files to perform operations on the identity data store. For example, create an identity, delete an identity, and search or select an identity.
Uses its myriad source files (including LogSample.java) to demonstrate the login process and write a log record of a successful authentication. You will need to authenticate two identities: the subject of the LogRecord and the logger (amadmin).
to verify an SSOToken. Uses SSOTokenSample.java to demonstrate this and other functions of the session API.
Before running this sample, you will need an SSO Token ID. You can get this by running the Service Configuration Sample in To Run the Client SDK Web-based Samples and copying the ID that is displayed.
Returns a policy decision based on console created user and configured policy. Uses the code sourced in the policy directory on opensso.dev.jave.net.
Uses XACMLClientSample.java to construct a XACML request, to make an authorization query, receive the decision, and print out the response.
At run time, a sample might require additional property files to be setup in the /resources directory. Check the comments included in each individual script for more information.