80 lines
4.8 KiB
HTML
80 lines
4.8 KiB
HTML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<!DOCTYPE html
|
||
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
<html lang="en-us" xml:lang="en-us">
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
|
<meta name="security" content="public" />
|
||
|
<meta name="Robots" content="index,follow" />
|
||
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
||
|
<meta name="DC.Type" content="task" />
|
||
|
<meta name="DC.Title" content="Samples: Running the sample programs" />
|
||
|
<meta name="abstract" content="After you download and modify the source code, you can run one of the samples." />
|
||
|
<meta name="description" content="After you download and modify the source code, you can run one of the samples." />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzahajgssdownloadsource.htm" />
|
||
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2006" />
|
||
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2006" />
|
||
|
<meta name="DC.Format" content="XHTML" />
|
||
|
<meta name="DC.Identifier" content="rzahajgssdownloadsource30" />
|
||
|
<meta name="DC.Language" content="en-us" />
|
||
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
||
|
<!-- US Government Users Restricted Rights -->
|
||
|
<!-- Use, duplication or disclosure restricted by -->
|
||
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
||
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
||
|
<title>Samples: Running the sample programs</title>
|
||
|
</head>
|
||
|
<body id="rzahajgssdownloadsource30"><a name="rzahajgssdownloadsource30"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Samples: Running the sample programs</h1>
|
||
|
<div><p>After you download and modify the source code, you can run one
|
||
|
of the samples.</p>
|
||
|
<div class="section"><p>Before modifying or running the samples, read the <a href="rzahajgsssamp.htm">description
|
||
|
of the sample programs</a>.</p>
|
||
|
<p>To run a sample, you must start the server
|
||
|
program first. The server program must be running and ready to receive connections
|
||
|
before you start the client program. The server is ready to receive connections
|
||
|
when you see <tt class="sysout">listening on port <server_port></tt>.
|
||
|
Make sure to remember or write down the <server_port >, which is the
|
||
|
port number that you need to specify when you start the client.</p>
|
||
|
<p>Use
|
||
|
the following command to start a sample program:</p>
|
||
|
<pre> java [-Dproperty1=value1 ... -DpropertyN=valueN] com.ibm.security.jgss.test.<program> [options]</pre>
|
||
|
<p>where</p>
|
||
|
<ul><li>[-DpropertyN=valueN] is one or more optional Java™ properties, including the names of
|
||
|
the configuration and policy files, JGSS debug options, and the security manager.
|
||
|
For more information, see the following example and <a href="rzahajgssuse.htm">Running
|
||
|
JGSS applications</a>.</li>
|
||
|
<li><program> is a required parameter that specifies the sample program
|
||
|
that you want to run (either <tt class="sysout">Client</tt>, <tt class="sysout">Server</tt>, <tt class="sysout">JAASClient</tt>,
|
||
|
or <tt class="sysout">JAASServer</tt>).</li>
|
||
|
<li>[options] is an optional parameter for the sample program that you want
|
||
|
to run. To display a list of supported options, use the following command:
|
||
|
<pre> java com.ibm.security.jgss.test.<program> -?</pre>
|
||
|
|
||
|
</li>
|
||
|
</ul>
|
||
|
<div class="note"><span class="notetitle">Note:</span> Turn off the JAAS features in a JGSS-enabled sample by setting
|
||
|
the Java property
|
||
|
javax.security.auth.useSubjectCredsOnly to false. Of course, the default value
|
||
|
of the JAAS-enabled samples is to turn on JAAS, meaning that the property
|
||
|
value is true. The non-JAAS client and server programs set the property to
|
||
|
false, unless you have explicitly set the property value.</div>
|
||
|
<p><strong>Related
|
||
|
information</strong></p>
|
||
|
<p>You may want to read about related tasks or look at
|
||
|
an example:</p>
|
||
|
<ul><li><a href="rzahajgssdownloadsource20.htm#rzahajgssdownloadsource20">Samples: Preparing to run the sample programs</a></li>
|
||
|
<li><a href="rzahajgssdownloadsource10.htm#rzahajgssdownloadsource10">Samples: Downloading the IBM JGSS samples</a></li>
|
||
|
<li><a href="rzahajgssdownloadsourceexmp.htm#rzahajgssdownloadsourceexmp">Example: Running the non-JAAS sample</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzahajgssdownloadsource.htm" title="This topic contains instructions for downloading and running the sample javadoc information.">Samples: Downloading and running the sample programs</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|