ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzahh_5.4.0.1/ssl.htm

75 lines
4.6 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?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="reference" />
<meta name="DC.Title" content="SecureAS400 Class" />
<meta name="abstract" content="When an AS400 object communicates with the server, user data (except the user password) is sent unencrypted to the server. So, IBM Toolbox for Java objects associated with an AS400 object exchange data with the server over a normal connection." />
<meta name="description" content="When an AS400 object communicates with the server, user data (except the user password) is sent unencrypted to the server. So, IBM Toolbox for Java objects associated with an AS400 object exchange data with the server over a normal connection." />
<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="ssl" />
<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>SecureAS400 Class</title>
</head>
<body id="ssl"><a name="ssl"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">SecureAS400 Class</h1>
<div><p>When an AS400 object communicates with the server, user data (except
the user password) is sent unencrypted to the server. So, IBM<sup>®</sup> Toolbox for Java™ objects
associated with an AS400 object exchange data with the server over a normal
connection.</p>
<div class="section"><p>When you want to use IBM Toolbox for Java to exchange sensitive data with the
server, you can encrypt data by using Secure Sockets Layer (SSL). Use the <a href="javadoc/com/ibm/as400/access/SecureAS400.html#NAVBAR_TOP"> SecureAS400</a> object to designate which data you want
to encrypt. IBM Toolbox
for Java objects
associated with a SecureAS400 object exchange data with the server over a
secure connection.</p>
</div>
<div class="section"><p>For more information, see <a href="ssljsse.htm#ssljsse">Secure
Sockets Layer and Java Secure Socket Extension</a>.</p>
</div>
<div class="section"><p>The <a href="javadoc/com/ibm/as400/access/SecureAS400.html"> SecureAS400 class</a> is a subclass of the <a href="javadoc/com/ibm/as400/access/AS400.html">AS400 class</a>.</p>
</div>
<div class="section"><p>You can set up a secure server connection by <a href="javadoc/com/ibm/as400/access/SecureAS400.html#CONSTRUCTOR_SUMMARY"> creating
an instance of a SecureAS400</a> object in the following ways:</p>
</div>
<div class="section"><ul><li><a href="javadoc/com/ibm/as400/access/SecureAS400.html#SECUREAS400(JAVA.LANG.STRING, JAVA.LANG.STRING)"> SecureAS400(String systemName, String userID)</a> prompts
you for sign-on information</li>
<li><a href="javadoc/com/ibm/as400/access/SecureAS400.html#SECUREAS400(JAVA.LANG.STRING, JAVA.LANG.STRING, JAVA.LANG.STRING)"> SecureAS400(String systemName, String userID, String password)</a> does
not prompt you for sign-on information</li>
</ul>
</div>
<div class="section"><p><span class="synph" id="ssl__sslexample"><a name="ssl__sslexample"><!-- --></a><span class="kwd"></span></span>The following example
shows you how to use CommandCall to send commands to the iSeries™ server
using a secure connection:</p>
</div>
<div class="section"><div class="p"><pre> // Create a secure AS400 object. This is the only statement that changes
// from the non-SSL case.
SecureAS400 sys = new SecureAS400("mySystem.myCompany.com");
// Create a command call object
CommandCall cmd = new CommandCall(sys, "myCommand");
// Run the commands. A secure connection is made when the
// command is run. All the information that passes between the
// client and server is encrypted.
cmd.run();</pre>
</div>
</div>
</div>
</body>
</html>