|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.as400.access.AS400 | +--com.ibm.as400.access.SecureAS400
The SecureAS400 class represents a secure iSeries server sign-on. Secure Sockets Layer (SSL) connections are used to provide encrypted communications. This function requires an SSL capable server at OS/400 release V4R4 or later.
Field Summary | |
static int |
CLIENT_TO_PROXY_SERVER
Constant indicating that encryption should only be done on the connection between the client and the proxy server. |
static int |
CLINT_TO_SERVER
Constant indicating that encryption should be done in both the connection between the client and the proxy server and the connection between the proxy server and the server. |
static int |
PROXY_SERVER_TO_SERVER
Constant indicating that encryption should only be done on the connection between the proxy server and the server. |
Fields inherited from class com.ibm.as400.access.AS400 |
CENTRAL, COMMAND, DATABASE, DATAQUEUE, FILE, PRINT, RECORDACCESS, SIGNON, USE_PORT_MAPPER |
Constructor Summary | |
SecureAS400()
Constructs a SecureAS400 object. |
|
SecureAS400(AS400 system)
Constructs a SecureAS400 object. |
|
SecureAS400(java.lang.String systemName)
Constructs a SecureAS400 object. |
|
SecureAS400(java.lang.String systemName,
java.lang.String userId)
Constructs a SecureAS400 object. |
|
SecureAS400(java.lang.String systemName,
java.lang.String userId,
java.lang.String password)
Constructs a SecureAS400 object. |
|
SecureAS400(java.lang.String systemName,
java.lang.String userId,
java.lang.String password,
java.lang.String proxyServer)
Constructs a SecureAS400 object. |
Method Summary | |
static void |
addPasswordCacheEntry(java.lang.String systemName,
java.lang.String userId,
java.lang.String password)
Validates the user ID and password against the system, and if successful, adds the information to the password cache. |
static void |
addPasswordCacheEntry(java.lang.String systemName,
java.lang.String userId,
java.lang.String password,
java.lang.String proxyServer)
Validates the user ID and password against the system, and if successful, adds the information to the password cache. |
java.lang.String |
getKeyRingName()
Returns the key ring class name used for SSL communications with the server. |
int |
getProxyEncryptionMode()
Returns the proxy encryption mode. |
void |
setKeyRingName(java.lang.String keyRingName)
Sets the key ring class name used for SSL communications with the server. |
void |
setKeyRingName(java.lang.String keyRingName,
java.lang.String keyRingPassword)
Sets the key ring class name used for SSL communications with the server. |
void |
setKeyRingPassword(java.lang.String keyRingPassword)
Sets the key ring password used for SSL communications with the server. |
void |
setProxyEncryptionMode(int proxyEncryptionMode)
Sets the proxy encryption mode. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int CLIENT_TO_PROXY_SERVER
public static final int PROXY_SERVER_TO_SERVER
public static final int CLINT_TO_SERVER
Constructor Detail |
public SecureAS400()
public SecureAS400(java.lang.String systemName)
systemName
- The name of the server.public SecureAS400(java.lang.String systemName, java.lang.String userId)
systemName
- The name of the server.userId
- The user profile name to use to authenticate to the server.public SecureAS400(java.lang.String systemName, java.lang.String userId, java.lang.String password)
systemName
- The name of the server.userId
- The user profile name to use to authenticate to the server.password
- The user profile password to use to authenticate to the server.public SecureAS400(java.lang.String systemName, java.lang.String userId, java.lang.String password, java.lang.String proxyServer)
systemName
- The name of the server.userId
- The user profile name to use to authenticate to the server.password
- The user profile password to use to authenticate to the server.proxyServer
- The name and port in the format serverName[:port]
. If no port is specified, a default will be used.public SecureAS400(AS400 system)
system
- A previously instantiated AS400 or SecureAS400 object.Method Detail |
public static void addPasswordCacheEntry(java.lang.String systemName, java.lang.String userId, java.lang.String password) throws AS400SecurityException, java.io.IOException
systemName
- The name of the server.userId
- The user profile name.password
- The user profile password.AS400SecurityException
- If a security or authority error occurs.java.io.IOException
- If an error occurs while communicating with the server.public static void addPasswordCacheEntry(java.lang.String systemName, java.lang.String userId, java.lang.String password, java.lang.String proxyServer) throws AS400SecurityException, java.io.IOException
systemName
- The name of the server.userId
- The user profile name.password
- The user profile password.proxyServer
- The name and port in the format serverName[:port]
. If no port is specified, a default will be used.AS400SecurityException
- If a security or authority error occurs.java.io.IOException
- If an error occurs while communicating with the server.public java.lang.String getKeyRingName()
public int getProxyEncryptionMode()
public void setKeyRingName(java.lang.String keyRingName) throws java.beans.PropertyVetoException
keyRingName
- The key ring class name.java.beans.PropertyVetoException
- If any of the registered listeners vetos the property change.public void setKeyRingName(java.lang.String keyRingName, java.lang.String keyRingPassword) throws java.beans.PropertyVetoException
keyRingName
- The key ring class name.keyRingPassword
- The password for the key ring class.java.beans.PropertyVetoException
- If any of the registered listeners vetos the property change.public void setKeyRingPassword(java.lang.String keyRingPassword)
keyRingPassword
- The password for the key ring class.public void setProxyEncryptionMode(int proxyEncryptionMode) throws java.beans.PropertyVetoException
proxyEncryptionMode
- The proxy encryption mode.java.beans.PropertyVetoException
- If any of the registered listeners vetos the property change.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |