README revision 4fe4e4f798a84a46e567f64ceadd3648eb0582d4
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw------------------------------------------------------------------------------
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwREADME file for OpenSSO stand alone client sdk samples
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw------------------------------------------------------------------------------
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCopyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwThe contents of this file are subject to the terms
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwof the Common Development and Distribution License
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw(the License). You may not use this file except in
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwcompliance with the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwYou can obtain a copy of the License at
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwhttps://opensso.dev.java.net/public/CDDLv1.0.html or
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwopensso/legal/CDDLv1.0.txt
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwSee the License for the specific language governing
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwpermission and limitations under the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwWhen distributing Covered Code, include this CDDL
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwHeader Notice in each file and include the License file
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwat opensso/legal/CDDLv1.0.txt.
cb174861876aea6950a7ab4ce944aff84b1914cdjoyce mcintoshIf applicable, add the following below the CDDL Header,
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwwith the fields enclosed by brackets [] replaced by
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwyour own identifying information:
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw"Portions Copyrighted [year] [name of copyright owner]"
bbf6f00c25b6a2bed23c35eac6d62998ecdb338cJordan Brown
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw$Id: README,v 1.6 2008/10/30 19:12:18 bigfatrat Exp $
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as------------------------------------------------------------------------------
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
b1352070d318187b41b088da3533692976f3f225Alan Wright
b1352070d318187b41b088da3533692976f3f225Alan WrightThis README file provides brief instructions on running OpenSSO
b1352070d318187b41b088da3533692976f3f225Alan Wrightclient sdk samples that would run in a stand alone JVM, outside of any
b1352070d318187b41b088da3533692976f3f225Alan Wrightcontainer.
b1352070d318187b41b088da3533692976f3f225Alan Wright
b1352070d318187b41b088da3533692976f3f225Alan Wright1. Unzip the opensso-client.zip. You would find a directory samples/sdk.
b1352070d318187b41b088da3533692976f3f225Alan Wright This directory has all that is required to try out OpenSSO
b1352070d318187b41b088da3533692976f3f225Alan Wright client sdk samples.
b1352070d318187b41b088da3533692976f3f225Alan Wright
b1352070d318187b41b088da3533692976f3f225Alan Wright The directory is laid out as below:
b1352070d318187b41b088da3533692976f3f225Alan Wright + sdk
b1352070d318187b41b088da3533692976f3f225Alan Wright |- source (contains source files that require compilation)
b1352070d318187b41b088da3533692976f3f225Alan Wright |- scripts (contains scripts to compile and run samples)
bbf6f00c25b6a2bed23c35eac6d62998ecdb338cJordan Brown |- resources (contains resources required to run the samples)
bbf6f00c25b6a2bed23c35eac6d62998ecdb338cJordan Brown |- lib (contains jar files required to use the OpenSSO clientsdk)
bbf6f00c25b6a2bed23c35eac6d62998ecdb338cJordan Brown |- classes (contains the compiled classes from the source files)
bbf6f00c25b6a2bed23c35eac6d62998ecdb338cJordan Brown
bbf6f00c25b6a2bed23c35eac6d62998ecdb338cJordan Brown2. To compile the samples:
bbf6f00c25b6a2bed23c35eac6d62998ecdb338cJordan Brown -- Make scripts/compile-samples.sh executable using chmod command for
b1352070d318187b41b088da3533692976f3f225Alan Wright UNIX system.
bbf6f00c25b6a2bed23c35eac6d62998ecdb338cJordan Brown -- Execute scripts/compile-samples.sh
037cac007b685e7ea79f6ef7e8e62bfd342a4d56joyce mcintosh
b1352070d318187b41b088da3533692976f3f225Alan Wright3. To run the sample:
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw -- Make all sh scripts under "scripts" directory executable,
bbf6f00c25b6a2bed23c35eac6d62998ecdb338cJordan Brown e.g. chmod 755 scripts/*.sh
bbf6f00c25b6a2bed23c35eac6d62998ecdb338cJordan Brown -- Run scripts/setup.sh (or setup.bat)
bbf6f00c25b6a2bed23c35eac6d62998ecdb338cJordan Brown This will setup AMConfig.properties to point to the OpenSSO server.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw This only need to be run this once for the all client SDK samples.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw -- Run individual client SDK samples by executing the shell or bat scripts
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw under "scripts" directory, e.g. scripts/run-xacml-client-sample.sh
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw Sample runtime may require additional property files to be correctly set
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw up under resoruces directory. This would be specifically mentioned in the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw comments included in corresponding scripts.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw