run-policy-evaluation-sample.sh revision fbb37289e2100511fbb9c5a5667903af04c3e434
0N/A#!/bin/sh
3855N/A#
0N/A#------------------------------------------------------------------------------
0N/A#README file for OpenAM stand alone client sdk
0N/A#policy evaluation sample
0N/A#------------------------------------------------------------------------------
0N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
0N/A#
0N/A#Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
0N/A#
0N/A#The contents of this file are subject to the terms
0N/A#of the Common Development and Distribution License
0N/A#(the License). You may not use this file except in
0N/A#compliance with the License.
2362N/A#
0N/A#You can obtain a copy of the License at
0N/A#https://opensso.dev.java.net/public/CDDLv1.0.html or
0N/A#opensso/legal/CDDLv1.0.txt
0N/A#See the License for the specific language governing
0N/A#permission and limitations under the License.
0N/A#
0N/A#When distributing Covered Code, include this CDDL
0N/A#Header Notice in each file and include the License file
0N/A#at opensso/legal/CDDLv1.0.txt.
0N/A#If applicable, add the following below the CDDL Header,
0N/A#with the fields enclosed by brackets [] replaced by
0N/A#your own identifying information:
0N/A#"Portions Copyrighted [year] [name of copyright owner]"
0N/A#
0N/A#$Id: run-policy-evaluation-sample.sh,v 1.6 2008/08/19 19:11:25 veiming Exp $
0N/A#
4378N/A# Portions Copyrighted 2013-2014 ForgeRock AS
4378N/A#------------------------------------------------------------------------------
4378N/A#
4378N/A#Runs the client policy evaluation sample
4378N/A#
4378N/A#Requires one parameter: the name of the resource file that defines
4378N/A#property values used by the sample
4378N/A#Default is policyEvaluationSamples
4378N/A#The corresponding file that would be read from classpath
3855N/A#is policyEvaluationSample.properites
0N/A#from classpath.
0N/A#A default template is included
0N/A#at ../resources/policyEvaluationSample.properties
0N/A#See the template for more information on the properties
3855N/A#Please update it to match your deployment
0N/A#You have to create user and policy at the server to get right policy decision
0N/A#see ../resources/policyEvaluationSample.properties for more information
0N/A#
0N/A#Requires ../resources/AMConfig.properties
0N/A#
0N/A#Must run "setup.sh" once to configure the client to find the OpenAM server.
0N/A#
3855N/A# Then, run this script
3855N/Ajava -classpath resources:lib/openam-clientsdk-${project.version}.jar:lib/servlet-api-${servlet-api.version}.jar:lib/openam-example-clientsdk-cli-${project.version}.jar samples.policy.PolicyEvaluationSample policyEvaluationSample
3855N/A