|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.as400.access.AS400
com.ibm.as400.access.SecureAS400
public class SecureAS400 extends AS400
Represents a secure system sign-on. Secure Sockets Layer (SSL) connections are used to provide encrypted communications. This function requires an SSL capable system at release V4R4 or later.
| Modifier and Type | Field and Description |
|---|---|
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 |
CLIENT_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 system. |
static int |
CLINT_TO_SERVER
Deprecated. Use CLIENT_TO_SERVER instead. |
static int |
PROXY_SERVER_TO_SERVER
Constant indicating that encryption should only be done on the connection between the proxy server and the system. |
| Fields inherited from class com.ibm.as400.access.AS400 |
|---|
AUTHENTICATION_SCHEME_GSS_TOKEN, AUTHENTICATION_SCHEME_IDENTITY_TOKEN, AUTHENTICATION_SCHEME_PASSWORD, AUTHENTICATION_SCHEME_PROFILE_TOKEN, CENTRAL, COMMAND, DATABASE, DATAQUEUE, FILE, GSS_OPTION_FALLBACK, GSS_OPTION_MANDATORY, GSS_OPTION_NONE, PRINT, RECORDACCESS, SIGNON, USE_PORT_MAPPER |
| Constructor and Description |
|---|
SecureAS400()
Constructs a SecureAS400 object. |
SecureAS400(AS400 system)
Constructs a SecureAS400 object. |
SecureAS400(String systemName)
Constructs a SecureAS400 object. |
SecureAS400(String systemName,
ProfileTokenCredential profileToken)
Constructs a SecureAS400 object. |
SecureAS400(String systemName,
String userId)
Constructs a SecureAS400 object. |
SecureAS400(String systemName,
String userId,
String password)
Constructs a SecureAS400 object. |
SecureAS400(String systemName,
String userId,
String password,
String proxyServer)
Constructs a SecureAS400 object. |
| Modifier and Type | Method and Description |
|---|---|
static void |
addPasswordCacheEntry(String systemName,
String userId,
String password)
Validates the user ID and password against the system, and if successful, adds the information to the password cache. |
static void |
addPasswordCacheEntry(String systemName,
String userId,
String password,
String proxyServer)
Validates the user ID and password against the system, and if successful, adds the information to the password cache. |
String |
getKeyRingName()
Returns the key ring class name used for SSL communications with the system. |
int |
getProxyEncryptionMode()
Returns the proxy encryption mode. |
void |
setKeyRingName(String keyRingName)
Sets the key ring class name used for SSL communications with the system. |
void |
setKeyRingName(String keyRingName,
String keyRingPassword)
Sets the key ring class name used for SSL communications with the system. |
void |
setKeyRingPassword(String keyRingPassword)
Sets the key ring password used for SSL communications with the system. |
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
public static final int CLIENT_TO_SERVER
| Constructor Detail |
|---|
public SecureAS400()
public SecureAS400(String systemName)
systemName - The name of the system.
public SecureAS400(String systemName,
String userId)
systemName - The name of the system.userId - The user profile name to use to authenticate to the system.
public SecureAS400(String systemName,
ProfileTokenCredential profileToken)
systemName - The name of the system. Use localhost to access data locally.profileToken - The profile token to use to authenticate to the system.
public SecureAS400(String systemName,
String userId,
String password)
systemName - The name of the system.userId - The user profile name to use to authenticate to the system.password - The user profile password to use to authenticate to the system.
public SecureAS400(String systemName,
String userId,
String password,
String proxyServer)
systemName - The name of the system.userId - The user profile name to use to authenticate to the system.password - The user profile password to use to authenticate to the system.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(String systemName,
String userId,
String password)
throws AS400SecurityException,
IOException
systemName - The name of the system.userId - The user profile name.password - The user profile password.AS400SecurityException - If a security or authority error occurs.IOException - If an error occurs while communicating with the system.
public static void addPasswordCacheEntry(String systemName,
String userId,
String password,
String proxyServer)
throws AS400SecurityException,
IOException
systemName - The name of the system.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.IOException - If an error occurs while communicating with the system.public String getKeyRingName()
public int getProxyEncryptionMode()
public void setKeyRingName(String keyRingName)
throws PropertyVetoException
keyRingName - The key ring class name.PropertyVetoException - If any of the registered listeners vetos the property change.
public void setKeyRingName(String keyRingName,
String keyRingPassword)
throws PropertyVetoException
keyRingName - The key ring class name.keyRingPassword - The password for the key ring class.PropertyVetoException - If any of the registered listeners vetos the property change.public void setKeyRingPassword(String keyRingPassword)
keyRingPassword - The password for the key ring class.
public void setProxyEncryptionMode(int proxyEncryptionMode)
throws PropertyVetoException
CLIENT_TO_PROXY_SERVER - encrypt between client and proxy server.
PROXY_SERVER_TO_SERVER - encrypt between proxy server and IBM i system.
CLIENT_TO_SERVER - encrypt both portions of connection.
proxyEncryptionMode - The proxy encryption mode.PropertyVetoException - If any of the registered listeners vetos the property change.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||