Serializable
, AutoCloseable
public class SecureAS400 extends AS400
Modifier and Type | Field | Description |
---|---|---|
static boolean |
changeCipherSuites |
Indicate whether the cipher suites changed by the caller.
|
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 String[] |
newCipherSuites |
|
static int |
PROXY_SERVER_TO_SERVER |
Constant indicating that encryption should only be done on the connection between the proxy server and the system.
|
aspName, AUTHENTICATION_SCHEME_DDM_EUSERIDPWD, AUTHENTICATION_SCHEME_GSS_TOKEN, AUTHENTICATION_SCHEME_IDENTITY_TOKEN, AUTHENTICATION_SCHEME_PASSWORD, AUTHENTICATION_SCHEME_PROFILE_TOKEN, bidiAS400Text, bidiAS400Varchar, CENTRAL, COMMAND, currentLib_, DATABASE, DATAQUEUE, FILE, GSS_OPTION_FALLBACK, GSS_OPTION_MANDATORY, GSS_OPTION_NONE, librariesForThread_, PRINT, RECORDACCESS, SIGNON, USE_PORT_MAPPER
Constructor | 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,
char[] password) |
Constructs a SecureAS400 object.
|
SecureAS400(String systemName,
String userId,
char[] password,
char[] additionalAuthenticationFactor) |
Constructs a SecureAS400 object.
|
SecureAS400(String systemName,
String userId,
char[] password,
String proxyServer) |
Constructs a SecureAS400 object.
|
SecureAS400(String systemName,
String userId,
String password) |
Deprecated.
|
SecureAS400(String systemName,
String userId,
String password,
String proxyServer) |
Deprecated.
|
Modifier and Type | Method | Description |
---|---|---|
static void |
addPasswordCacheEntry(String systemName,
String userId,
char[] 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,
char[] password,
String proxyServer) |
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) |
Deprecated.
|
static void |
addPasswordCacheEntry(String systemName,
String userId,
String password,
String proxyServer) |
Deprecated.
|
String |
getKeyRingName() |
Deprecated.
|
int |
getProxyEncryptionMode() |
Returns the proxy encryption mode.
|
static boolean |
isAdditionalAuthenticationFactorAccepted(String systemName) |
Checks whether an additional authentication factor is accepted for the given system
|
void |
setEnabledCipherSuites(String[] suites) |
|
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) |
Deprecated.
|
void |
setProxyEncryptionMode(int proxyEncryptionMode) |
Sets the proxy encryption mode.
|
addConnectionListener, addPropertyChangeListener, addVetoableChangeListener, arePropertiesFrozen, authenticate, authenticate, canUseNativeOptimizations, changePassword, changePassword, changePassword, clearPasswordCache, clearPasswordCache, close, connectService, connectService, connectToPort, connectToPort, disconnectAllServices, disconnectService, generateProfileToken, generateVRM, getAuthenticationScheme, getBidiStringType, getCcsid, getDDMRDB, getDefaultSignonHandler, getDefaultTimeZone, getDefaultUser, getGSSName, getGSSOption, getImpl, getJobCCSIDEncoding, getJobs, getLocale, getModification, getNLV, getPasswordExpirationDate, getPasswordExpirationDays, getPasswordExpirationWarningDays, getPreviousSignonDate, getProfileToken, getProfileToken, getProfileToken, getProfileToken, getProfileToken, getProfileToken, getProxyServer, getRelease, getServerName, getServicePort, getSignonDate, getSignonHandler, getSocketProperties, getSystemName, getSystemPasswordExpirationWarningDays, getSystemTimeZone, getTimeZone, getUserId, getUserId, getvalidateSignonTimeOut, getVersion, getVRM, initializeConverter, isConnected, isConnected, isConnectionAlive, isConnectionAlive, isGuiAvailable, isInPasswordExpirationWarningDays, isLocal, isMustAddLanguageLibrary, isMustUseNetSockets, isMustUseSockets, isMustUseSuppliedProfile, isShowCheckboxes, isThreadUsed, isTurkish, isUseDefaultUser, isUsePassphrase, isUsePasswordCache, passwordLevel, removeConnectionListener, removeDefaultUser, removePasswordCacheEntry, removePropertyChangeListener, removeVetoableChangeListener, resetAllServices, setAdditionalAuthenticationFactor, setBidiStringType, setCcsid, setDDMRDB, setDefaultSignonHandler, setDefaultUser, setGSSCredential, setGSSManager, setGSSName, setGSSOption, setGuiAvailable, setIASPGroup, setIASPGroup, setIASPGroup, setIASPGroup, setIdentityToken, setLocale, setLocale, setMustAddLanguageLibrary, setMustUseNetSockets, setMustUseSockets, setMustUseSuppliedProfile, setPassword, setPassword, setPasswordExpirationWarningDays, setProfileToken, setProxyServer, setServicePort, setServicePortsToDefault, setShowCheckboxes, setSignonHandler, setSocketProperties, setStayAlive, setSystemName, setThreadUsed, setUseDefaultUser, setUsePasswordCache, setUserId, setUseSystemPasswordExpirationWarningDays, setvalidateSignonTimeOut, toString, validateSignon, validateSignon, validateSignon, validateSignon, validateSignon, validateSignon
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
public static boolean changeCipherSuites
public static String[] newCipherSuites
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, char[] 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, char[] password, char[] additionalAuthenticationFactor) throws IOException, AS400SecurityException
systemName
- The name of the IBM i system. Use localhost
to access data locally.userId
- The user profile name to use to authenticate to the system. If running on IBM i, *CURRENT may be used to specify the current user ID.password
- The user profile password to use to authenticate to the system.additionalAuthenticationFactor
- Additional authentication factor (or null if not providing one).
The caller is responsible for clearing the password array to keep the password from residing in memory.IOException
AS400SecurityException
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(String systemName, String userId, char[] 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.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, char[] 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 static void addPasswordCacheEntry(String systemName, String userId, char[] 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 static boolean isAdditionalAuthenticationFactorAccepted(String systemName) throws IOException, AS400SecurityException
systemName
- The IP address or hostname of the target systemIOException
- If an error occurs while communicating with the system.AS400SecurityException
- If an error occurs exchanging client/server informationpublic 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.public void setEnabledCipherSuites(String[] suites)
Copyright © 2024. All rights reserved.