Serializable
, AutoCloseable
SecureAS400
public class AS400 extends Object implements Serializable, AutoCloseable
If running on IBM i or an older version of that operating system, the system name, user ID, and password do not need
to be supplied. These values default to the local system. For the system name, the keyword localhost
can
be used to specify the local system. For the user ID and password, *CURRENT can be used.
If running on another operating system, the system name, user ID, and password need to be supplied. If not supplied,
the first 'open' request associated with this object will trigger a prompt to the workstation user. Subsequent opens
associated with the same object will not prompt the workstation user. Keywords localhost
and *CURRENT
will not work when running on another operating system.
For example:
AS400 system = new AS400(); system.connectService(AS400.DATAQUEUE); // This causes a password prompt. ... system.connectService(AS400.FILE); // This does not cause a prompt.
Modifier and Type | Field | Description |
---|---|---|
String |
aspName |
|
static int |
AUTHENTICATION_SCHEME_DDM_EUSERIDPWD |
Constant representing the DDM_EUSERIDPWD scheme - only applicable to Record Access service.
|
static int |
AUTHENTICATION_SCHEME_GSS_TOKEN |
Constant indicating the authentication scheme is GSS token.
|
static int |
AUTHENTICATION_SCHEME_IDENTITY_TOKEN |
Constant indicating the authentication scheme is identity token.
|
static int |
AUTHENTICATION_SCHEME_PASSWORD |
Constant indicating the authentication scheme is password.
|
static int |
AUTHENTICATION_SCHEME_PROFILE_TOKEN |
Constant indicating the authentication scheme is profile token.
|
boolean |
bidiAS400Text |
Determines whether Bidi processing should occur in AS400Text.toBytes() method
|
boolean |
bidiAS400Varchar |
Determines whether Bidi processing should occur in AS400Varchar.toBytes() method
|
static int |
CENTRAL |
Constant indicating the Central service.
|
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 int |
COMMAND |
Constant indicating the Command service.
|
String |
currentLib_ |
|
static int |
DATABASE |
Constant indicating the Database service.
|
static int |
DATAQUEUE |
Constant indicating the Dataqueue service.
|
static int |
FILE |
Constant indicating the File service.
|
static int |
GSS_OPTION_FALLBACK |
Constant indicating that the JGSS framework will be attempted when no password or authentication token is set.
|
static int |
GSS_OPTION_MANDATORY |
Constant indicating that the JGSS framework must be used when no password or authentication token is set.
|
static int |
GSS_OPTION_NONE |
Constant indicating that the JGSS framework will not be used when no password or authentication token is set.
|
static int |
HOSTCNN |
Constant indicating the Host connection service.
|
String |
librariesForThread_ |
|
static String[] |
newCipherSuites |
|
static int |
PRINT |
Constant indicating the Print service.
|
static int |
PROXY_SERVER_TO_SERVER |
Constant indicating that encryption should only be done on the connection between the proxy server and the system.
|
static int |
RECORDACCESS |
Constant indicating the Record Access service.
|
static int |
SIGNON |
Constant indicating the Sign-on service.
|
static int |
USE_PORT_MAPPER |
Special value indicating the service port should be retrieved from the port mapper server.
|
Constructor | Description |
---|---|
AS400() |
Constructs an AS400 object.
|
AS400(AS400 system) |
Constructs an AS400 object.
|
AS400(String systemName) |
Constructs an AS400 object.
|
AS400(String systemName,
ProfileTokenCredential profileToken) |
Constructs an AS400 object.
|
AS400(String systemName,
ProfileTokenProvider tokenProvider) |
Constructs an AS400 object.
|
AS400(String systemName,
ProfileTokenProvider tokenProvider,
int refreshThreshold) |
Constructs an AS400 object.
|
AS400(String systemName,
String userId) |
Constructs an AS400 object.
|
AS400(String systemName,
String userId,
char[] password) |
Constructs an AS400 object.
|
AS400(String systemName,
String userId,
char[] password,
char[] additionalAuthFactor) |
Constructs an AS400 object.
|
AS400(String systemName,
String userId,
char[] password,
String proxyServer) |
Constructs an AS400 object.
|
AS400(String systemName,
String userId,
String password) |
Deprecated.
Use AS400(String systemName, String userId, char[] password) instead
|
AS400(String systemName,
String userId,
String password,
String proxyServer) |
Deprecated.
Use AS400((String systemName, String userId, char[] password, String proxyServer) instead.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addConnectionListener(ConnectionListener listener) |
Adds a listener to be notified when a connection event occurs.
|
static void |
addPasswordCacheEntry(String systemName,
String userId,
char[] password) |
Validates the user ID and password, and if successful, adds the information to the password cache.
|
static void |
addPasswordCacheEntry(String systemName,
String userId,
char[] password,
boolean useSSL) |
Validates the user ID and password, 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, and if successful, adds the information to the password cache.
|
static void |
addPasswordCacheEntry(String systemName,
String userId,
char[] password,
String proxyServer,
boolean useSSL) |
Validates the user ID and password, and if successful, adds the information to the password cache.
|
static void |
addPasswordCacheEntry(String systemName,
String userId,
String password) |
Deprecated.
Use addPasswordCacheEntry(String systemName, String userId, char[] password) instead
|
static void |
addPasswordCacheEntry(String systemName,
String userId,
String password,
String proxyServer) |
Deprecated.
Use addPasswordCacheEntry(String systemName, String userId, char[] password, String proxyServer)
instead.
|
void |
addPropertyChangeListener(PropertyChangeListener listener) |
Adds a listener to be notified when the value of any property is changed.
|
void |
addVetoableChangeListener(VetoableChangeListener listener) |
Adds a listener to be notified when the value of any constrained property is changed.
|
boolean |
arePropertiesFrozen() |
Indicates if properties are frozen.
|
boolean |
authenticate() |
Authenticate the user ID and password on the system and adds to the signon-list.
|
boolean |
authenticate(String userId,
char[] password) |
Authenticates the user profile name and user profile password.
|
boolean |
authenticate(String userId,
String password) |
Deprecated.
Using a String as a password is insecure.
|
boolean |
canUseNativeOptimizations() |
Indicates if this AS400 object is enabled to exploit Toolbox native optimizations.
|
void |
changePassword(char[] oldPassword,
char[] newPassword) |
Changes the user profile password.
|
void |
changePassword(char[] oldPassword,
char[] newPassword,
char[] additionalAuthFactor) |
Changes the user profile password.
|
void |
changePassword(String oldPassword,
String newPassword) |
Deprecated.
Use changePassword(char[] oldPassword, char[] newPassword) instead
|
static void |
clearPasswordCache() |
Clears the password cache for all systems within this Java virtual machine.
|
static void |
clearPasswordCache(String systemName) |
Clears all the passwords that are cached for the given system name within this Java virtual machine.
|
void |
close() |
This method is functionally equivalent to the resetAllServices() method.
|
void |
connectService(int service) |
Connects to a service.
|
void |
connectService(int service,
int overridePort) |
Connects to a service.
|
void |
disconnectAllServices() |
Disconnects all services.
|
void |
disconnectService(int service) |
Disconnects the service.
|
protected void |
finalize() |
|
ProfileTokenCredential |
generateProfileToken(String userIdentity,
int tokenType,
int timeoutInterval) |
Generates a profile token on behalf of the provided user identity.
|
ProfileTokenCredential |
generateProfileToken(String userIdentity,
int tokenType,
int timeoutInterval,
String verificationID,
String remoteIPAddress) |
Generates a profile token on behalf of the provided user identity.
|
static int |
generateVRM(int version,
int release,
int modification) |
Generates a VRM from a version, release, and modification.
|
int |
getAuthenticationScheme() |
Returns the authentication scheme for this object.
|
int |
getBidiStringType() |
Returns bidi string type of the connection.
|
int |
getCcsid() |
Returns the CCSID for this object.
|
String |
getDDMRDB() |
Returns the relational database name (RDB name) used for record-level access (DDM) connections.
|
static SignonHandler |
getDefaultSignonHandler() |
Returns the default sign-on handler.
|
static TimeZone |
getDefaultTimeZone(AS400 system) |
Returns the timezone of the IBM i, if available.
|
static String |
getDefaultUser(String systemName) |
Returns the default user ID for this system name.
|
String |
getGSSName() |
Returns the GSS name string.
|
int |
getGSSOption() |
Returns the option for how the JGSS framework will be used.
|
com.ibm.as400.access.AS400Impl |
getImpl() |
Get underlying AS400Impl object.
|
String |
getJobCCSIDEncoding() |
Returns the encoding that corresponds to the job CCSID.
|
Job[] |
getJobs(int service) |
Returns an array of Job objects representing the jobs to which this object is connected.
|
String |
getKeyRingName() |
Deprecated.
|
Locale |
getLocale() |
Returns the Locale associated with this system object.
|
int |
getModification() |
Returns the modification level of the IBM i system.
|
String |
getNLV() |
Returns the National Language Version (NLV) that will be sent to the system.
|
GregorianCalendar |
getPasswordExpirationDate() |
Returns the password expiration date for the signed-on user.
|
int |
getPasswordExpirationDays() |
Returns the number of days until the user profile's password expires.
|
static int |
getPasswordExpirationWarningDays() |
Returns the number of days before password expiration to start warning the user.
|
GregorianCalendar |
getPreviousSignonDate() |
Returns the date of the last successful sign-on.
|
ProfileTokenCredential |
getProfileToken() |
Deprecated.
Use
getProfileToken(int,int) instead. |
ProfileTokenCredential |
getProfileToken(int tokenType,
int timeoutInterval) |
Authenticates the assigned user profile and password and returns a corresponding ProfileTokenCredential if
successful.
|
ProfileTokenCredential |
getProfileToken(int tokenType,
int timeoutInterval,
String verificationID,
String remoteIPAddress) |
Authenticates the assigned user profile and password and returns a corresponding ProfileTokenCredential if
successful.
|
ProfileTokenCredential |
getProfileToken(String userId,
char[] password) |
Authenticates the given user profile and password and returns a corresponding ProfileTokenCredential if
successful.
|
ProfileTokenCredential |
getProfileToken(String userId,
char[] password,
char[] additionalAuthFactor,
int tokenType,
int timeoutInterval,
ProfileTokenEnhancedInfo enhancedInfo) |
Authenticates the given user profile and password and returns a corresponding ProfileTokenCredential if
successful.
|
ProfileTokenCredential |
getProfileToken(String userId,
char[] password,
char[] additionalAuthFactor,
int tokenType,
int timeoutInterval,
String verificationID,
String remoteIPAddress) |
Authenticates the given user profile and password and returns a corresponding ProfileTokenCredential if
successful.
|
ProfileTokenCredential |
getProfileToken(String userId,
char[] password,
int tokenType,
int timeoutInterval) |
Authenticates the given user profile and password and returns a corresponding ProfileTokenCredential if
successful.
|
ProfileTokenCredential |
getProfileToken(String userId,
String password) |
Deprecated.
Use
getProfileToken(String, char[]) instead. |
ProfileTokenCredential |
getProfileToken(String userId,
String password,
int tokenType,
int timeoutInterval) |
Deprecated.
Use
getProfileToken(String, char[],int,int) instead. |
int |
getProxyEncryptionMode() |
Returns the proxy encryption mode.
|
String |
getProxyServer() |
Returns the name of the middle-tier machine where the proxy server is running.
|
int |
getRelease() |
Returns the release of the IBM i system.
|
static String |
getServerName(int service) |
Converts a service constant to the string representation of the service.
|
int |
getServicePort(int service) |
Returns the service port stored in the service port table for the specified service.
|
GregorianCalendar |
getSignonDate() |
Returns the date for the current sign-on.
|
SignonHandler |
getSignonHandler() |
Returns the sign-on handler that is used by this object.
|
SocketProperties |
getSocketProperties() |
Returns a copy of the socket options object.
|
String |
getSystemName() |
Returns the name of the IBM i system.
|
int |
getSystemPasswordExpirationWarningDays() |
Returns the number of days before password expiration to start warning the user based on the value of the
QPWDEXPWRN system value.
|
TimeZone |
getSystemTimeZone() |
Deprecated.
Use
getTimeZone() instead. |
TimeZone |
getTimeZone() |
Returns the time zone of the IBM i system.
|
String |
getUserId() |
Returns the user ID.
|
String |
getUserId(boolean forceRefresh) |
Returns the user ID.
|
int |
getvalidateSignonTimeOut() |
Returns the timeout value when attempting to validate the sign on information.
|
int |
getVersion() |
Returns the version of the IBM i system.
|
int |
getVRM() |
Returns the version, release, and modification level for the system.
|
static int |
getVRM(String systemName,
boolean useSSL) |
Returns the version, release, and modification level a given system.
|
void |
initializeConverter(int ccsid) |
Initialize conversion table for the given CCSID.
|
boolean |
isAdditionalAuthenticationFactorAccepted() |
Checks whether an additional authentication factor is accepted for the given system.
|
static boolean |
isAdditionalAuthenticationFactorAccepted(String systemName) |
Deprecated.
|
static boolean |
isAdditionalAuthenticationFactorAccepted(String systemName,
boolean useSSL) |
Checks whether an additional authentication factor is accepted for the given system
|
boolean |
isConnected() |
Indicates if any service is currently connected through this object.
|
boolean |
isConnected(int service) |
Indicates if a service is currently connected through this object.
|
boolean |
isConnectionAlive() |
Tests the connection to the system, to verify that it is still working.
|
boolean |
isConnectionAlive(int service) |
Tests the connection to a service on the system, to verify that it is still working.
|
boolean |
isGuiAvailable() |
Returns the sign-on prompting mode for this object.
|
boolean |
isInPasswordExpirationWarningDays() |
Determines if the password expiration date for the user profile is within the password expiration warning days
for the system returned by
getPasswordExpirationDays() . |
boolean |
isLocal() |
Indicates if this object is representing the system you are currently running on.
|
boolean |
isMustAddLanguageLibrary() |
Indicates whether this object will attempt to add the appropriate secondary language library to the library list,
when running on the system.
|
boolean |
isMustUseNetSockets() |
Indicates if Internet domain sockets only will be used.
|
boolean |
isMustUseSockets() |
When your Java program runs on the system, some Toolbox classes access data via a call to an API instead of
making a socket call to the system.
|
boolean |
isMustUseSuppliedProfile() |
Indicates if only a supplied profile will be used.
|
boolean |
isSecure() |
Returns true if host server communications is performed over a secure channel.
|
boolean |
isShowCheckboxes() |
Indicates if checkboxes should be shown on the sign-on dialog.
|
boolean |
isThreadUsed() |
Indicates whether threads are used in communication with the host servers.
|
static boolean |
isTurkish() |
Return whether default locale is Turkish.
|
boolean |
isUseDefaultUser() |
Indicates if the default user should be used by this object.
|
boolean |
isUsePassphrase() |
Is the AS400 object configured to use a pass phrase
|
boolean |
isUsePasswordCache() |
Indicates if the password cache is being used by this object.
|
static AS400 |
newInstance(boolean useSSL) |
Returns a new instance of an AS400 object.
|
static AS400 |
newInstance(boolean useSSL,
AS400 system) |
Returns a new instance of an AS400 object.
|
static AS400 |
newInstance(boolean useSSL,
String systemName) |
Returns a new instance of an AS400 object.
|
static AS400 |
newInstance(boolean useSSL,
String systemName,
ProfileTokenCredential profileToken) |
Returns a new instance of an AS400 object.
|
static AS400 |
newInstance(boolean useSSL,
String systemName,
String userId) |
Returns a new instance of an AS400 object.
|
static AS400 |
newInstance(boolean useSSL,
String systemName,
String userId,
char[] password,
char[] additionalAuthFactor) |
Returns a new instance of an AS400 object.
|
static AS400 |
newInstance(boolean useSSL,
String systemName,
String userId,
char[] password,
String proxyServer) |
Returns a new instance of an AS400 object.
|
int |
passwordLevel() |
Password level
|
void |
removeConnectionListener(ConnectionListener listener) |
Removes a listener from the connection event list.
|
static void |
removeDefaultUser(String systemName) |
Removes the default user for the given system name.
|
static void |
removePasswordCacheEntry(String systemName,
String userId) |
Removes the password cache entry associated with this system name and user ID.
|
void |
removePropertyChangeListener(PropertyChangeListener listener) |
Removes a property changed listener from the listener list.
|
void |
removeVetoableChangeListener(VetoableChangeListener listener) |
Removes a listener from the veto list.
|
void |
resetAllServices() |
Disconnects all services, and clears the sign-on information.
|
void |
setAdditionalAuthenticationFactor(char[] additionalAuthFactor) |
Set the additional authentication factor for the AS400 object.
|
void |
setBidiStringType(int bidiStringType) |
Sets bidi string type of the connection.
|
void |
setCcsid(int ccsid) |
Sets the CCSID to be used for this object.
|
void |
setDDMRDB(String ddmRDB) |
Sets the relational database name (RDB name) used for record-level access (DDM) connections.
|
static void |
setDefaultSignonHandler(SignonHandler handler) |
Sets the default sign-on handler, globally across the JVM.
|
static boolean |
setDefaultUser(String systemName,
String userId) |
Sets the default user for a given system name.
|
void |
setEnabledCipherSuites(String[] suites) |
Set list of cipher suites.
|
void |
setGSSCredential(GSSCredential gssCredential) |
Sets the GSS credential for this object.
|
static void |
setGSSManager(GSSManager gssMgr) |
Sets the GSS manager to be used for all GSS operations.
|
void |
setGSSName(String gssName) |
Sets the GSS name for this object.
|
void |
setGSSOption(int gssOption) |
Sets the option for how the JGSS framework will be used to retrieve a GSS token for authenticating to the system.
|
void |
setGuiAvailable(boolean guiAvailable) |
Sets the environment in which you are running.
|
void |
setIASPGroup(String IASPGroup) |
Set ASP group for the AS400 connection to the Remote Command Host server.
|
void |
setIASPGroup(String IASPGroup,
String currentLib) |
Set ASP group for the AS400 connection to the Remote Command Host server.
|
void |
setIASPGroup(String IASPGroup,
String currentLib,
String librariesForThread) |
Set ASP group for the AS400 connection to the Remote Command Host server.
|
void |
setIASPGroup(String IASPGroup,
String currentLib,
String[] librariesForThread) |
Set ASP group for the AS400 connection to the Remote Command Host server.
|
void |
setIdentityToken(byte[] identityToken) |
Sets or resets the identity token for this object.
|
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 |
setLocale(Locale locale) |
Sets the Locale used to set the National Language Version (NLV) on the system.
|
void |
setLocale(Locale locale,
String nlv) |
Sets the Locale and a specific National Language Version (NLV) to send to the system.
|
void |
setMustAddLanguageLibrary(boolean mustAddLanguageLibrary) |
Sets this object to attempt to add the appropriate secondary language library to the library list, when running
on the system.
|
void |
setMustUseNetSockets(boolean mustUseNetSockets) |
Sets this object to using Internet domain sockets only.
|
void |
setMustUseSockets(boolean mustUseSockets) |
Sets this object to using sockets.
|
void |
setMustUseSuppliedProfile(boolean mustUseSuppliedProfile) |
Sets this object to using a supplied profile only.
|
void |
setPassword(char[] password) |
Sets the password for this object using a char array.
|
void |
setPassword(String password) |
Deprecated.
|
static void |
setPasswordExpirationWarningDays(int days) |
Sets the number of days before password expiration to warn the user.
|
void |
setProfileToken(ProfileTokenCredential profileToken) |
Sets or resets the profile token for this object.
|
void |
setProxyEncryptionMode(int proxyEncryptionMode) |
Sets the proxy encryption mode.
|
void |
setProxyServer(String proxyServer) |
Sets the name and port of the middle-tier machine where the proxy server is running.
|
void |
setServicePort(int service,
int port) |
Sets the service port in the service port table for the specified service for this system name.
|
void |
setServicePortsToDefault() |
Sets the ports in the service port table for all the services for this system name to their default values.
|
void |
setShowCheckboxes(boolean showCheckboxes) |
Indicates if checkboxes should be shown on the sign-on dialog.
|
void |
setSignonHandler(SignonHandler handler) |
Sets the sign-on handler for this AS400 object.
|
void |
setSocketProperties(SocketProperties socketProperties) |
Sets the socket options the IBM Toolbox for Java will set on its client side sockets.
|
void |
setStayAlive(long seconds) |
Set the stay-alve interval.
|
void |
setSystemName(String systemName) |
Sets the system name for this object.
|
void |
setThreadUsed(boolean useThreads) |
Sets whether the IBM Toolbox for Java uses threads in communication with the host servers.
|
void |
setUseDefaultUser(boolean useDefaultUser) |
Sets the indicator for whether the default user is used.
|
void |
setUsePasswordCache(boolean usePasswordCache) |
Sets the indicator for whether the password cache is used.
|
void |
setUserId(String userId) |
Sets the user ID for this object.
|
void |
setUseSystemPasswordExpirationWarningDays(boolean useSystem) |
Set a flag to indicate whether or not to use the password expiration warning days from the QPWDEXPWRN system
value.
|
void |
setvalidateSignonTimeOut(int validateSignonTimeOut) |
Set the the timeout value when when attempting to validate the sign on information.
|
protected void |
setVRM(int v,
int r,
int m) |
Sets the VRM for the object, creating a signonInfo as needed
|
String |
toString() |
Returns the text representation of this AS400 object.
|
boolean |
validateSignon() |
Validates the user ID and password on the system but does not add to the signed-on list.
|
boolean |
validateSignon(char[] password) |
Validates the user ID and password on the system but does not add to the signed-on list.
|
boolean |
validateSignon(String password) |
Deprecated.
|
boolean |
validateSignon(String userId,
char[] password) |
Validates the user ID and password on the system but does not add to the signed-on list.
|
boolean |
validateSignon(String userId,
char[] password,
char[] additionalAuthFactor) |
Validates the user ID and password on the system but does not add to the signed-on list.
|
boolean |
validateSignon(String userId,
String password) |
Deprecated.
Using a string as a password is insecure
|
public static final int FILE
public static final int PRINT
public static final int COMMAND
public static final int DATAQUEUE
public static final int DATABASE
public static final int RECORDACCESS
public static final int CENTRAL
public static final int SIGNON
public static final int HOSTCNN
public static final int USE_PORT_MAPPER
public static final int AUTHENTICATION_SCHEME_PASSWORD
public static final int AUTHENTICATION_SCHEME_GSS_TOKEN
public static final int AUTHENTICATION_SCHEME_PROFILE_TOKEN
public static final int AUTHENTICATION_SCHEME_IDENTITY_TOKEN
public static final int AUTHENTICATION_SCHEME_DDM_EUSERIDPWD
public static final int GSS_OPTION_MANDATORY
public static final int GSS_OPTION_FALLBACK
public static final int GSS_OPTION_NONE
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 String currentLib_
public String librariesForThread_
public String aspName
public boolean bidiAS400Text
public boolean bidiAS400Varchar
public AS400()
If running on IBM i, the target is the local system. This has the same effect as using localhost
for
the system name, *CURRENT for the user ID, and *CURRENT for the password.
If running on another operating system, a sign-on prompt may be displayed. The user is then able to specify the system name, user ID, and password.
public AS400(String systemName)
If running on IBM i to another system or to itself, the user ID and password of the current job are used.
If running on another operating system, the user may be prompted for the user ID and password if a default user has not been established for this system name.
systemName
- The name of the IBM i system. Use localhost
to access data locally.public AS400(String systemName, String userId)
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.ExtendedIllegalArgumentException
- If userId length is not valid.public AS400(String systemName, ProfileTokenCredential profileToken)
systemName
- The name of the IBM i system. Use localhost
to access data locally.profileToken
- The profile token to use to authenticate to the system.public AS400(String systemName, ProfileTokenProvider tokenProvider)
systemName
- The name of the IBM i system.tokenProvider
- The provider to use when a new profile token needs to be generated.AS400(String,ProfileTokenProvider,int)
public AS400(String systemName, ProfileTokenProvider tokenProvider, int refreshThreshold)
systemName
- The name of the IBM i system.tokenProvider
- The provider to use when a new profile token needs to be generated.refreshThreshold
- The refresh threshold, in seconds, for the profile token. Used by the vault to manage the
currency of the profile token to help ensure it remains current for an indefinite period
of time.AS400(String,ProfileTokenProvider)
@Deprecated public AS400(String systemName, String userId, String password)
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. If running on IBM i, CURRENT
may be used to specify the current user ID.ExtendedIllegalArgumentException
- If userId length is not valid.public AS400(String systemName, String userId, char[] password, char[] additionalAuthFactor) throws AS400SecurityException, IOException
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.additionalAuthFactor
- 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.AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.public AS400(String systemName, String userId, char[] password)
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. The caller is responsible for
clearing the password array to keep the password from residing in memory.ExtendedIllegalArgumentException
- If userId length is not valid.@Deprecated public AS400(String systemName, String userId, String password, String proxyServer)
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. If running on IBM i, *CURRENT
may be used to specify the current user ID.proxyServer
- The name and port of the proxy server in the format serverName[:port]
. If no port
is specified, a default will be used.ExtendedIllegalArgumentException
- If userId length is not valid.public AS400(String systemName, String userId, char[] password, String proxyServer)
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. The caller is responsible fore
clearing sensitive data from password after the constructor runs.proxyServer
- The name and port of the proxy server in the format serverName[:port]
. If no port
is specified, a default will be used.ExtendedIllegalArgumentException
- If userId length is not valid.public AS400(AS400 system)
Notes:
setStayAlive(long)
method on the new
AS400 object if you want the feature enabled.
system
- A previously instantiated AS400 object.public void setIASPGroup(String IASPGroup) throws AS400SecurityException, ErrorCompletingRequestException, IOException, InterruptedException, PropertyVetoException
IASPGroup
- asp group nameAS400SecurityException
- If a security or authority error occurs.ErrorCompletingRequestException
- If an error occurs before the request is completed.IOException
- If an error occurs while communicating with the system.InterruptedException
- If this thread is interrupted.PropertyVetoException
- If the recipient wishes the property change to be rolled back.public void setIASPGroup(String IASPGroup, String currentLib) throws AS400SecurityException, ErrorCompletingRequestException, IOException, InterruptedException, PropertyVetoException
IASPGroup
- asp group namecurrentLib
- Current library which can be *CURSYSBAS, *CURUSR, *CRTDFT, name. If null or "" is set, default
value *CURUSR is used.AS400SecurityException
- If a security or authority error occurs.ErrorCompletingRequestException
- If an error occurs before the request is completed.ExtendedIllegalArgumentException
- If currentLib length is not valid.IOException
- If an error occurs while communicating with the system.InterruptedException
- If this thread is interrupted.PropertyVetoException
- If the recipient wishes the property change to be rolled back.public void setIASPGroup(String IASPGroup, String currentLib, String librariesForThread) throws AS400SecurityException, ErrorCompletingRequestException, IOException, InterruptedException, PropertyVetoException
IASPGroup
- asp group namecurrentLib
- Current library which can be *CURSYSBAS, *CURUSR, *CRTDFT, name. If null or "" is set,
default value *CURUSR is used.librariesForThread
- Libraries for current thread with single value. If null or "" is set, default value
*CURUSR is used.AS400SecurityException
- If a security or authority error occurs.ErrorCompletingRequestException
- If an error occurs before the request is completed.ExtendedIllegalArgumentException
- If currentLib or librariesForThread lengths are not valid.IOException
- If an error occurs while communicating with the system.InterruptedException
- If this thread is interrupted.PropertyVetoException
- If the recipient wishes the property change to be rolled back.public void setIASPGroup(String IASPGroup, String currentLib, String[] librariesForThread) throws AS400SecurityException, ErrorCompletingRequestException, IOException, InterruptedException, PropertyVetoException
IASPGroup
- asp group namecurrentLib
- Current library which can be *CURSYSBAS, *CURUSR, *CRTDFT, name. If null or "" is set,
default value *CURUSR is used.librariesForThread
- Libraries for current thread. If null is set, default value *CURUSR is used. Up to 250
libraries can be set.AS400SecurityException
- If a security or authority error occurs.ErrorCompletingRequestException
- If an error occurs before the request is completed.IOException
- If an error occurs while communicating with the system.InterruptedException
- If this thread is interrupted.PropertyVetoException
- If the recipient wishes the property change to be rolled back.public static AS400 newInstance(boolean useSSL)
If running on IBM i, the target is the local system. This has the same effect as using localhost
for
the system name, *CURRENT for the user ID, and *CURRENT for the password.
If running on another operating system, a sign-on prompt may be displayed. The user is then able to specify the system name, user ID, and password.
useSSL
- Whether or not the new AS400 object should use secure connections when communicating with the
host servers.public static AS400 newInstance(boolean useSSL, String systemName)
If running on IBM i to another system or to itself, the user ID and password of the current job are used.
If running on another operating system, the user may be prompted for the user ID and password if a default user has not been established for this system name.
useSSL
- Whether or not the new AS400 object should use secure connections when communicating with the
host servers.systemName
- The name of the IBM i system. Use localhost
to access data locally.public static AS400 newInstance(boolean useSSL, String systemName, String userId) throws IOException, AS400SecurityException
useSSL
- Whether or not the new AS400 object should use secure connections when communicating with the
host servers.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.IOException
- If an error occurs while communicating with the system.AS400SecurityException
- If a security or authority error occurs.public static AS400 newInstance(boolean useSSL, String systemName, String userId, char[] password, char[] additionalAuthFactor) throws IOException, AS400SecurityException
useSSL
- Whether or not the new AS400 object should use secure connections when communicating
with the host servers.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. The caller is
responsible for clearing the password array to keep the password from residing in
memory.additionalAuthFactor
- Additional authentication factor (or null if not providing one).IOException
- If an error occurs while communicating with the system.AS400SecurityException
- If a security or authority error occurs.public static AS400 newInstance(boolean useSSL, String systemName, String userId, char[] password, String proxyServer)
useSSL
- Whether or not the new AS400 object should use secure connections when communicating with the
host servers.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. The caller is responsible fore
clearing sensitive data from password after the constructor runs.proxyServer
- The name and port of the proxy server in the format serverName[:port]
. If no port
is specified, a default will be used.public static AS400 newInstance(boolean useSSL, String systemName, ProfileTokenCredential profileToken)
useSSL
- Whether or not the new AS400 object should use secure connections when communicating with the
host servers.systemName
- The name of the IBM i system. Use localhost
to access data locally.profileToken
- The profile token to use to authenticate to the system.public static AS400 newInstance(boolean useSSL, AS400 system)
useSSL
- Whether or not the new AS400 object should use secure connections when communicating with the host
server.system
- A previously instantiated AS400 object.public void addConnectionListener(ConnectionListener listener)
listener
- The listener object.public static void addPasswordCacheEntry(String systemName, String userId, String password) throws AS400SecurityException, IOException
systemName
- The name of the IBM i 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 IBM i 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, boolean useSSL) throws AS400SecurityException, IOException
systemName
- The name of the IBM i system.userId
- The user profile name.password
- The user profile password.useSSL
- Whether or not secure connections should be used when communicating with the host servers.AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.@Deprecated public static void addPasswordCacheEntry(String systemName, String userId, String password, String proxyServer) throws AS400SecurityException, IOException
systemName
- The name of the IBM i system.userId
- The user profile name.password
- The user profile password.proxyServer
- The name and port of the proxy server 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 IBM i system.userId
- The user profile name.password
- The user profile password.proxyServer
- The name and port of the proxy server 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, boolean useSSL) throws AS400SecurityException, IOException
systemName
- The name of the IBM i system.userId
- The user profile name.password
- The user profile password.proxyServer
- The name and port of the proxy server in the format serverName[:port]
. If no port
is specified, a default will be used.useSSL
- Whether or not secure connections should be used when communicating with the host servers.AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.public void addPropertyChangeListener(PropertyChangeListener listener)
listener
- The listener object.public void addVetoableChangeListener(VetoableChangeListener listener)
listener
- The listener object.public boolean arePropertiesFrozen()
public boolean isAdditionalAuthenticationFactorAccepted() throws IOException, AS400SecurityException
IOException
- If an error occurs while communicating with the system.AS400SecurityException
- If an error occurs exchanging client/server informationpublic static boolean isAdditionalAuthenticationFactorAccepted(String systemName, boolean useSSL) throws IOException, AS400SecurityException
systemName
- The IP address or hostname of the target systemuseSSL
- Whether or not secure connections should be used when communicating with the host servers.IOException
- If an error occurs while communicating with the system.AS400SecurityException
- If an error occurs exchanging client/server information@Deprecated 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 boolean authenticate() throws AS400SecurityException, IOException
If the AS400 object has previously been authenticated, either by using authenticate() or indirectly such as when establishing a connection to a host server, and if any of the setter methods are used after the authentication to change credentials, such as user ID or system name, the AS400.HOSTCNN and/or AS400.SIGNON server connections, if they exist, may be discarded if the change is different than what was previously used in the authentication process.
Note: This will return true if the information is successfully validated. An unsuccessful validation will cause an exception to be thrown, false is never returned.
Note:If an additional authentication factor has been set in the AS400 object, it is used.
AS400SecurityException
- If a security or authority error occurs.ExtendedIllegalStateException
- If system name or user ID not set.IOException
- If an error occurs while communicating with the system.@Deprecated public boolean authenticate(String userId, String password) throws AS400SecurityException, IOException
This method is functionally equivalent to the validateSignon() method, except it does not alter the user profile assigned to this object, impact the status of existing connections, or otherwise impact the user and authorities on which the application is running.
The system name needs to be set prior to calling this method.
Note: Providing an incorrect password increments the number of failed sign-on attempts for the user profile, and can result in the profile being disabled.
Note: This will return true if the information is successfully validated. An unsuccessful validation will cause an exception to be thrown, false is never returned.
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 boolean authenticate(String userId, char[] password) throws AS400SecurityException, IOException
This method is functionally equivalent to the validateSignon() method, except it does not alter the user profile assigned to this object, impact the status of existing connections, or otherwise impact the user and authorities on which the application is running.
The system name needs to be set prior to calling this method.
Note: Providing an incorrect password increments the number of failed sign-on attempts for the user profile, and can result in the profile being disabled.
Note: This will return true if the information is successfully validated. An unsuccessful validation will cause an exception to be thrown, false is never returned.
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 boolean canUseNativeOptimizations()
AUTHENTICATION_SCHEME_PASSWORD
, native optimizations will not be used.isLocal()
,
isMustUseSockets()
,
getAuthenticationScheme()
@Deprecated public void changePassword(String oldPassword, String newPassword) throws AS400SecurityException, IOException
oldPassword
- The old user profile password.newPassword
- The new user profile password.AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.public void changePassword(char[] oldPassword, char[] newPassword) throws AS400SecurityException, IOException
oldPassword
- The old user profile password.newPassword
- The new user profile password.AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.public void changePassword(char[] oldPassword, char[] newPassword, char[] additionalAuthFactor) throws AS400SecurityException, IOException
oldPassword
- The old user profile password.newPassword
- The new user profile password.additionalAuthFactor
- Additional authentication factor (or null if not providing one).AS400SecurityException
- If a security or authority error occurs.ExtendedIllegalStateException
- If system name or user ID not set.IOException
- If an error occurs while communicating with the system.public static void clearPasswordCache()
public static void clearPasswordCache(String systemName)
systemName
- The name of the IBM i system.public void connectService(int service) throws AS400SecurityException, IOException
Services typically connect implicitly; therefore, this method does not have to be called to use a service. This method can be used to control when the connection is established.
service
- The name of the service. Valid services are:
AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.public void connectService(int service, int overridePort) throws AS400SecurityException, IOException
Services typically connect implicitly; therefore, this method does not have to be called to use a service. This method can be used to control when the connection is established.
service
- The name of the service. Valid services are:
overridePort
- If non-negative, used to override the port to be used for the connection.AS400SecurityException
- If a security or authority error occurs.ExtendedIllegalArgumentException
- If service is not valid.IOException
- If an error occurs while communicating with the system.public void disconnectAllServices()
resetAllServices()
public void disconnectService(int service)
service
- The name of the service. Valid services are:
ExtendedIllegalArgumentException
- If service is not valid.public ProfileTokenCredential generateProfileToken(String userIdentity, int tokenType, int timeoutInterval) throws AS400SecurityException, IOException
Invoking this method does not change the user ID and password assigned to the system or otherwise modify the user or authorities under which the application is running. The profile associated with this system object must have enough authority to generate an authentication token for another user.
This function is only supported on i5/OS V5R3M0 or greater.
userIdentity
- The LDAP distinguished name.tokenType
- The type of profile token to create. Possible types are defined as fields on the
ProfileTokenCredential class:
timeoutInterval
- The number of seconds to expiration when the token is created (1-3600).AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.public ProfileTokenCredential generateProfileToken(String userIdentity, int tokenType, int timeoutInterval, String verificationID, String remoteIPAddress) throws AS400SecurityException, IOException
Invoking this method does not change the user ID and password assigned to the system or otherwise modify the user or authorities under which the application is running. The profile associated with this system object must have enough authority to generate an authentication token for another user.
This function is only supported on i5/OS V5R3M0 or greater.
userIdentity
- The LDAP distinguished name.tokenType
- The type of profile token to create. Possible types are defined as fields on the
ProfileTokenCredential class:
timeoutInterval
- The number of seconds to expiration when the token is created (1-3600).verificationID
- The verification ID that will be associated with profile token. The verification ID
is the label that identifies the specific application, service, or action associated
with the profile token request. A null value will result in the usage of the
default value of QIBM_OS400_JT400.remoteIPAddress
- The remote IP address (the IP address of the requester) that will be associated with
profile token. A null value will result in the usage of the local IP address returned
on the connection to the host server, assuming that the profile token is being created
by the host server. If the profile token is being created by an ILE API, the remoteIPAddress
will be null.AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.public static int generateVRM(int version, int release, int modification)
version
- The version.release
- The release.modification
- The modification level.ExtendedIllegalArgumentException
- If version, release, or modification is not valid.public int getAuthenticationScheme()
AUTHENTICATION_SCHEME_PASSWORD
- passwords are used.
AUTHENTICATION_SCHEME_GSS_TOKEN
- GSS tokens are used.
AUTHENTICATION_SCHEME_PROFILE_TOKEN
- profile tokens are used.
AUTHENTICATION_SCHEME_IDENTITY_TOKEN
- identity tokens are
used.
public int getCcsid()
public static SignonHandler getDefaultSignonHandler()
setDefaultSignonHandler(com.ibm.as400.access.SignonHandler)
public String getDDMRDB()
setDDMRDB(java.lang.String)
public static String getDefaultUser(String systemName)
systemName
- The name of the IBM i system.public String getGSSName()
public int getGSSOption()
public com.ibm.as400.access.AS400Impl getImpl()
public String getJobCCSIDEncoding() throws AS400SecurityException, IOException, InterruptedException
AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.InterruptedException
- If this thread is interrupted.public Job[] getJobs(int service)
service
- The name of the service. Valid services are:
ExtendedIllegalArgumentException
- If service is not valid.public Locale getLocale()
public int getModification() throws AS400SecurityException, IOException
A connection is required to the system to retrieve this information. If a connection has not been established, one is created to retrieve the information.
AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.public String getNLV()
public GregorianCalendar getPasswordExpirationDate() throws AS400SecurityException, IOException
A connection is required to retrieve this information. If a connection has not been established, one is created to retrieve the information.
AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.public void setUseSystemPasswordExpirationWarningDays(boolean useSystem)
useSystem
- indicates whether or not to use password expiration warning days from the QPWDEXPWRN system
valuepublic int getSystemPasswordExpirationWarningDays() throws AS400SecurityException, IOException
setUseSystemPasswordExpirationWarningDays(boolean)
is enabled and supported, return the value of the
QPWDEXPWRN system value. Otherwise, return getPasswordExpirationWarningDays()
.AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.public boolean isInPasswordExpirationWarningDays() throws AS400SecurityException, IOException
getPasswordExpirationDays()
.AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.public int getPasswordExpirationDays() throws AS400SecurityException, IOException
A connection is required to retrieve this information. If a connection has not been established, one is created to retrieve the information.
AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.public static int getPasswordExpirationWarningDays()
public GregorianCalendar getPreviousSignonDate() throws AS400SecurityException, IOException
A connection is required to retrieve this information. If a connection has not been established, one is created to retrieve the information.
AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.@Deprecated public ProfileTokenCredential getProfileToken() throws AS400SecurityException, IOException, InterruptedException
getProfileToken(int,int)
instead.The returned token will be created single-use with a one hour time to expiration. Subsequent method calls will return the same token, regardless of the token status.
This function is not supported if the assigned password is *CURRENT.
This function is only supported if the system is at i5/OS V4R5M0 or greater.
Note: If an additional authentication factor has been set for the AS400 object, it will be used when generating the profile token.
AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.InterruptedException
- If this thread is interrupted.public ProfileTokenCredential getProfileToken(int tokenType, int timeoutInterval) throws AS400SecurityException, IOException, InterruptedException
This function is not supported if the assigned password is *CURRENT and cannot be used to generate a renewable token. This function is only supported if the system is at i5/OS V4R5M0 or greater.
Note: If an additional authentication factor has been set for the AS400 object, it will be used when generating the profile token.
tokenType
- The type of profile token to create. Possible types are defined as fields on the
ProfileTokenCredential class:
timeoutInterval
- The number of seconds to expiration when the token is created (1-3600).AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.InterruptedException
- If this thread is interrupted.public ProfileTokenCredential getProfileToken(int tokenType, int timeoutInterval, String verificationID, String remoteIPAddress) throws AS400SecurityException, IOException, InterruptedException
This function is not supported if the assigned password is *CURRENT and cannot be used to generate a renewable token. This function is only supported if the system is at i5/OS V4R5M0 or greater.
Note: If an additional authentication factor has been set for the AS400 object, it will be used when generating the profile token.
tokenType
- The type of profile token to create. Possible types are defined as fields on the
ProfileTokenCredential class:
timeoutInterval
- The number of seconds to expiration when the token is created (1-3600).verificationID
- The verification ID that will be associated with profile token. The verification ID
is the label that identifies the specific application, service, or action associated
with the profile token request. A null value will result in the usage of the
default value of QIBM_OS400_JT400.remoteIPAddress
- The remote IP address (the IP address of the requester) that will be associated with
profile token. A null value will result in the usage of the local IP address returned
on the connection to the host server, assuming that the profile token is being created
by the host server. If the profile token is being created by an ILE API, the remoteIPAddress
will be null.AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.InterruptedException
- If this thread is interrupted.@Deprecated public ProfileTokenCredential getProfileToken(String userId, String password) throws AS400SecurityException, IOException, InterruptedException
getProfileToken(String, char[])
instead.Invoking this method does not change the user ID and password assigned to the system or otherwise modify the user or authorities under which the application is running.
This method generates a single use token with a timeout of one hour.
This function is only supported if the system is at i5/OS V4R5M0 or greater.
Note: Providing an incorrect password increments the number of failed sign-on attempts for the user profile, and can result in the profile being disabled. Refer to documentation on the ProfileTokenCredential class for additional restrictions.
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.InterruptedException
- If this thread is interrupted.public ProfileTokenCredential getProfileToken(String userId, char[] password) throws AS400SecurityException, IOException, InterruptedException
Invoking this method does not change the user ID and password assigned to the system or otherwise modify the user or authorities under which the application is running.
This method generates a single use token with a timeout of one hour.
This function is only supported if the system is at i5/OS V4R5M0 or greater.
Note: Providing an incorrect password increments the number of failed sign-on attempts for the user profile, and can result in the profile being disabled. Refer to documentation on the ProfileTokenCredential class for additional restrictions.
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.InterruptedException
- If this thread is interrupted.@Deprecated public ProfileTokenCredential getProfileToken(String userId, String password, int tokenType, int timeoutInterval) throws AS400SecurityException, IOException, InterruptedException
getProfileToken(String, char[],int,int)
instead.Invoking this method does not change the user ID and password assigned to the system or otherwise modify the user or authorities under which the application is running.
This function is only supported if the system is at i5/OS V4R5M0 or greater.
Note: Providing an incorrect password increments the number of failed sign-on attempts for the user profile, and can result in the profile being disabled. Refer to documentation on the ProfileTokenCredential class for additional restrictions.
userId
- The user profile name.password
- The user profile password.tokenType
- The type of profile token to create. Possible types are defined as fields on the
ProfileTokenCredential class:
timeoutInterval
- The number of seconds to expiration when the token is created (1-3600).AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.InterruptedException
- If this thread is interrupted.public ProfileTokenCredential getProfileToken(String userId, char[] password, int tokenType, int timeoutInterval) throws AS400SecurityException, IOException, InterruptedException
Invoking this method does not change the user ID and password assigned to the system or otherwise modify the user or authorities under which the application is running.
This function is only supported if the system is at i5/OS V4R5M0 or greater.
Note: Providing an incorrect password increments the number of failed sign-on attempts for the user profile, and can result in the profile being disabled. Refer to documentation on the ProfileTokenCredential class for additional restrictions.
userId
- The user profile name.password
- The user profile password.tokenType
- The type of profile token to create. Possible types are defined as fields on the
ProfileTokenCredential class:
timeoutInterval
- The number of seconds to expiration when the token is created (1-3600).AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.InterruptedException
- If this thread is interrupted.public ProfileTokenCredential getProfileToken(String userId, char[] password, char[] additionalAuthFactor, int tokenType, int timeoutInterval, String verificationID, String remoteIPAddress) throws AS400SecurityException, IOException, InterruptedException
Invoking this method does not change the user ID and password assigned to the system or otherwise modify the user or authorities under which the application is running.
This function is only supported if the system is at i5/OS V4R5M0 or greater.
Note: Providing an incorrect password increments the number of failed sign-on attempts for the user profile, and can result in the profile being disabled. Refer to documentation on the ProfileTokenCredential class for additional restrictions.
userId
- The user profile name.password
- The user profile password.additionalAuthFactor
- The additional authentication factor or null if not specifying one.tokenType
- The type of profile token to create. Possible types are defined as fields on the
ProfileTokenCredential class:
timeoutInterval
- The number of seconds to expiration when the token is created (1-3600).verificationID
- The verification ID that will be associated with profile token. The verification ID
is the label that identifies the specific application, service, or action associated
with the profile token request. A null value will result in the usage of the
default value of QIBM_OS400_JT400.remoteIPAddress
- The remote IP address (the IP address of the requester) that will be associated with
profile token. AA null value will result in the usage of the local IP address returned
on the connection to the host server, assuming that the profile token is being created
by the host server. If the profile token is being created by an ILE API, the remoteIPAddress
will be null.AS400SecurityException
- If a security or authority error occurs.ExtendedIllegalArgumentException
- If userId length is not valid.IOException
- If an error occurs while communicating with the system.InterruptedException
- If this thread is interrupted.public ProfileTokenCredential getProfileToken(String userId, char[] password, char[] additionalAuthFactor, int tokenType, int timeoutInterval, ProfileTokenEnhancedInfo enhancedInfo) throws AS400SecurityException, IOException, InterruptedException
Invoking this method does not change the user ID and password assigned to the system or otherwise modify the user or authorities under which the application is running.
This function is only supported if the system is at i5/OS V4R5M0 or greater.
Note: Providing an incorrect password increments the number of failed sign-on attempts for the user profile, and can result in the profile being disabled. Refer to documentation on the ProfileTokenCredential class for additional restrictions.
userId
- The user profile name.password
- The user profile password.additionalAuthFactor
- The additional authentication factor or null if not specifying one.tokenType
- The type of profile token to create. Possible types are defined as fields on the
ProfileTokenCredential class:
timeoutInterval
- The number of seconds to expiration when the token is created (1-3600).enhancedInfo
- Information used for creating an enhanced profile token.AS400SecurityException
- If a security or authority error occurs.ExtendedIllegalArgumentException
- If userId length is not valid.IOException
- If an error occurs while communicating with the system.InterruptedException
- If this thread is interrupted.public String getProxyServer()
public int getRelease() throws AS400SecurityException, IOException
A connection is required to the system in order to retrieve this information. If a connection has not been established, one is created to retrieve the system information.
AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.public static String getServerName(int service)
service
- The service represented by it's integer value.ExtendedIllegalArgumentException
- If service is not valid.public int getServicePort(int service)
service
- The name of the service. Valid services are:
USE_PORT_MAPPER
will be
returned if the service has not been set, and the service has not been connected.ExtendedIllegalArgumentException
- If service is not valid.ExtendedIllegalStateException
- If system name not set.public GregorianCalendar getSignonDate() throws AS400SecurityException, IOException
A connection is required to the system to retrieve this information. If a connection has not been established, one is created to retrieve the system information.
AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.public SignonHandler getSignonHandler()
setSignonHandler(com.ibm.as400.access.SignonHandler)
,
setDefaultSignonHandler(com.ibm.as400.access.SignonHandler)
public SocketProperties getSocketProperties()
public String getSystemName()
@Deprecated public TimeZone getSystemTimeZone() throws AS400SecurityException, ErrorCompletingRequestException, InterruptedException, IOException, ObjectDoesNotExistException
getTimeZone()
instead.AS400SecurityException
- If a security or authority error occurs.ErrorCompletingRequestException
- If an error occurs before the request is completed.InterruptedException
- If this thread is interrupted.IOException
- If an error occurs while communicating with the system.ObjectDoesNotExistException
- If the API used to retrieve the information does not exist on the
system.DateTimeConverter.timeZoneForSystem(com.ibm.as400.access.AS400)
public TimeZone getTimeZone() throws AS400SecurityException, ErrorCompletingRequestException, InterruptedException, IOException, ObjectDoesNotExistException
AS400SecurityException
- If a security or authority error occurs.ErrorCompletingRequestException
- If an error occurs before the request is completed.InterruptedException
- If this thread is interrupted.IOException
- If an error occurs while communicating with the system.ObjectDoesNotExistException
- If the API used to retrieve the information does not exist on the
system.DateTimeConverter.timeZoneForSystem(com.ibm.as400.access.AS400)
public static TimeZone getDefaultTimeZone(AS400 system)
system
- System to get the timezone frompublic String getUserId()
public String getUserId(boolean forceRefresh)
forceRefresh
- If true, force the current userID information to be reloaded. When running natively with
system name specified as localhost
, this will obtain the user profile under
which the thread is currently running. This may have changed since object construction, if a
profile swap has been performed on the thread. If false, or if running remotely, then this
method behaves identically to getUserId()
.public int getVersion() throws AS400SecurityException, IOException
A connection is required to the system to retrieve this information. If a connection has not been established, one is created to retrieve the system information.
AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.public static int getVRM(String systemName, boolean useSSL) throws AS400SecurityException, IOException
systemName
- The IP address or hostname of the target system.useSSL
- Whether or not secure connections should be used when communicating with the host servers.AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.public int getVRM() throws AS400SecurityException, IOException
A connection is required to the system to retrieve this information. If a connection has not been established, one is created to retrieve the system information.
AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.protected void setVRM(int v, int r, int m)
public void initializeConverter(int ccsid) throws UnsupportedEncodingException
ccsid
- the CCSID for the conversion table to initialize.UnsupportedEncodingException
- If the Character Encoding is not supported.public boolean isConnected()
A service is considered "connected" if connectService() has been called, or an implicit connect has been done by the service, and disconnectService() or disconnectAllServices() has not been called. If the most recent attempt to contact the service failed with an exception, the service is considered disconnected.
isConnectionAlive()
public boolean isConnected(int service)
A service is considered "connected" if connectService() has been called, or an implicit connect has been done by the service, and disconnectService() or disconnectAllServices() has not been called. If the most recent attempt to contact the service failed with an exception, the service is considered disconnected.
service
- The name of the service. Valid services are:
ExtendedIllegalArgumentException
- If service is not valid.isConnectionAlive()
public boolean isConnectionAlive()
Note: This method is not fully supported until IBM i 7.1. If running to IBM i 6.1 or lower, then the
behavior of this method matches that of isConnected()
, and therefore may incorrectly
return true if the connection has failed recently.
Note: If the only service connected is RECORDACCESS
, then this method defaults to the
behavior of isConnected()
.
isConnected()
,
AS400JPing
public boolean isConnectionAlive(int service)
Note: This method is not fully supported until IBM i 7.1. If running to IBM i 6.1 or lower, then the
behavior of this method matches that of isConnected()
, and therefore may incorrectly
return true if the connection has failed recently.
Note: If the specified service is RECORDACCESS
, then this method defaults to the behavior
of isConnected()
.
service
- The name of the service. Valid services are:
isConnected()
,
AS400JPing
public boolean isGuiAvailable()
public boolean isLocal()
public boolean isMustUseSockets()
public boolean isShowCheckboxes()
public boolean isThreadUsed()
public boolean isUseDefaultUser()
public boolean isUsePasswordCache()
public boolean isUsePassphrase() throws AS400SecurityException, IOException
AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.public void removeConnectionListener(ConnectionListener listener)
listener
- The listener object.public static void removeDefaultUser(String systemName)
systemName
- The name of the IBM i system.public static void removePasswordCacheEntry(String systemName, String userId)
systemName
- The name of the IBM i system.userId
- The user profile name.ExtendedIllegalArgumentException
- If userId length is not valid.public void removePropertyChangeListener(PropertyChangeListener listener)
listener
- The listener object.public void removeVetoableChangeListener(VetoableChangeListener listener)
listener
- The listener object.public void resetAllServices()
Note: A call to resetAllServices() results in the stay-alive seconds value to be reset to zero. You will need to invoke the setStayAlive() method to re-enable the stay-alive functionality.
disconnectAllServices()
,
setStayAlive(long)
public void setIdentityToken(byte[] identityToken)
Note: Authentication via IdentityToken is supported in operating system release V5R3M0 and by PTF in operating system releases V5R2M0 and V5R1M0.
identityToken
- The identity token.public void setAdditionalAuthenticationFactor(char[] additionalAuthFactor)
additionalAuthFactor
- The additional authentication factor.ExtendedIllegalArgumentException
- If additionalAuthFactor length is not valid.public void setCcsid(int ccsid) throws PropertyVetoException
ccsid
- The CCSID to use for this object.ExtendedIllegalStateException
- If a connection has already been made.PropertyVetoException
- If any of the registered listeners vetos the property change.public void setDDMRDB(String ddmRDB)
RECORDACCESS
service; you must
call AS400.disconnectService(AS400.RECORDACCESS)
first.ddmRDB
- The name of the IASP or RDB to use, or null to indicate the default system ASP should be used.ExtendedIllegalArgumentException
- If ddmRDB length is not valid.ExtendedIllegalStateException
- If a connection has already been made.isConnected(int)
,
getDDMRDB()
public static void setDefaultSignonHandler(SignonHandler handler)
setSignonHandler()
. Note: This property may also be set by specifying a fully-qualified class name in Java system property com.ibm.as400.access.AS400.signonHandler
handler
- The sign-on handler. Specifying null will reset the default sign-on handler to the
internal AWT-based handler.getDefaultSignonHandler()
public static boolean setDefaultUser(String systemName, String userId)
systemName
- The name of the IBM i system.userId
- The user profile name.ExtendedIllegalArgumentException
- If userId length is not valid.public static void setGSSManager(GSSManager gssMgr)
gssMgr
- The GSS manager object.public void setGSSCredential(GSSCredential gssCredential)
AUTHENTICATION_SCHEME_GSS_TOKEN
. Only one authentication means (Kerberos
ticket, profile token, identity token, or password) can be used at a single time. Using this method will clear
any previously set authentication information.gssCredential
- The GSS credential object.public void setGSSOption(int gssOption)
gssOption
- A constant indicating how GSS will be used. Valid values are:
ExtendedIllegalArgumentException
- If gssOption is not valid.public void setGSSName(String gssName)
AUTHENTICATION_SCHEME_GSS_TOKEN
. Only one authentication means (Kerberos
ticket, profile token, identity token, or password) can be used at a single time. Using this method will clear
any previously set authentication information.gssName
- The GSS name string.public void setGuiAvailable(boolean guiAvailable) throws PropertyVetoException
Note: This property may also be set by specifying 'true' or 'false' in Java system property com.ibm.as400.access.AS400.guiAvailable
guiAvailable
- true to prompt; false otherwise.PropertyVetoException
- If any of the registered listeners vetos the property change.SignonHandler
public void setLocale(Locale locale)
locale
- The Locale object.ExtendedIllegalStateException
- If a connection has already been made.public void setLocale(Locale locale, String nlv)
locale
- The Locale object.nlv
- The NLV.ExtendedIllegalStateException
- If a connection has already been made.public void setMustAddLanguageLibrary(boolean mustAddLanguageLibrary)
Note: This property may also be set by specifying 'true' or 'false' in Java system property com.ibm.as400.access.AS400.mustAddLanguageLibrary
mustAddLanguageLibrary
- true to add language library; false otherwise.ExtendedIllegalStateException
- If a connection has already been made.public boolean isMustAddLanguageLibrary()
public void setMustUseSockets(boolean mustUseSockets)
Note: This property may also be set by specifying 'true' or 'false' in Java system property com.ibm.as400.access.AS400.mustUseSockets
mustUseSockets
- true to use sockets; false otherwise.ExtendedIllegalStateException
- If a connection has already been made.public boolean isMustUseNetSockets()
public void setMustUseNetSockets(boolean mustUseNetSockets)
Note: This property may also be set by specifying 'true' or 'false' in Java system property com.ibm.as400.access.AS400.mustUseNetSockets
mustUseNetSockets
- true to use Internet domain sockets only; false otherwise.ExtendedIllegalStateException
- If a connection has already been made.public boolean isMustUseSuppliedProfile()
public void setMustUseSuppliedProfile(boolean mustUseSuppliedProfile)
Note: This property may also be set by specifying 'true' or 'false' in Java system property com.ibm.as400.access.AS400.mustUseSuppliedProfile
mustUseSuppliedProfile
- true to use a supplied profile only; false otherwise.ExtendedIllegalStateException
- If a connection has already been made.@Deprecated public void setPassword(String password)
password
- The user profile password.public void setPassword(char[] password)
password
- The user profile password.public static void setPasswordExpirationWarningDays(int days)
days
- The number of days before expiration to start the warning. Set to -1 to turn off warning.public void setProfileToken(ProfileTokenCredential profileToken)
profileToken
- The profile token.public void setProxyServer(String proxyServer) throws PropertyVetoException
The name of the middle-tier machine is ignored in a two-tier environment. If no middle-tier machine is specified, then it is assumed that no middle-tier will be accessed. The name of the middle-tier machine cannot be changed once a connection to this machine has been established.
proxyServer
- The name and port of the proxy server in the format serverName[:port]
. If no port
is specified, a default will be used.ExtendedIllegalStateException
- If a connection has already been made.PropertyVetoException
- If any of the registered listeners vetos the property change.public void setServicePort(int service, int port)
service
- The name of the service. Valid services are:
port
- The port to use for this service. The value USE_PORT_MAPPER
can be used
to specify that the next connection to this service should ask the port mapper server for the port
number.ExtendedIllegalArgumentException
- If service or port is not valid.ExtendedIllegalStateException
- If system name has not been set.public void setServicePortsToDefault()
ExtendedIllegalStateException
- If system name has not been set.public void setShowCheckboxes(boolean showCheckboxes)
showCheckboxes
- true to show checkboxes; false otherwise.public void setSignonHandler(SignonHandler handler)
handler
- The sign-on handler. Specifying null will reset the default sign-on handler to the
internal AWT-based handler.getSignonHandler()
,
setDefaultSignonHandler(com.ibm.as400.access.SignonHandler)
public void setStayAlive(long seconds)
This stay-alive functionality only applies to connections to the following host servers: COMMAND
, DATABASE
, DATAQUEUE
, FILE
, PRINT
, and
HOSTCNN
.
Notes:
resetAllServices()
is called on the object, the number of seconds is set to zero. You will
need to invoke setStayAlive() method to re-enable the stay-alive functionality.
seconds
- The number of seconds between requests to the server. If set to zero, then this
stay-alive capability will not be used.ExtendedIllegalArgumentException
- if the value of seconds is negative.public void setSocketProperties(SocketProperties socketProperties)
socketProperties
- The set of socket options to set. The options are copied from this object, not shared.ExtendedIllegalStateException
- if a connection has already been made.public void setSystemName(String systemName) throws PropertyVetoException
systemName
- The name of the IBM i system. Use localhost
to access data locally.ExtendedIllegalStateException
- if a connection has already been made.PropertyVetoException
- If any of the registered listeners vetos the property change.public void setThreadUsed(boolean useThreads) throws PropertyVetoException
Note: This property may also be set by specifying 'true' or 'false' in Java system property com.ibm.as400.access.AS400.threadUsed
useThreads
- true to use threads; false otherwise.ExtendedIllegalStateException
- If a connection has already been made.PropertyVetoException
- If any of the registered listeners vetos the property change.public void setUseDefaultUser(boolean useDefaultUser) throws PropertyVetoException
useDefaultUser
- The value indicating if the default user should be used. Set to true if default user should
be used; false otherwise. The default is true, indicating that the default user is used.PropertyVetoException
- If any of the registered listeners vetos the property change.public void setUsePasswordCache(boolean usePasswordCache) throws PropertyVetoException
usePasswordCache
- The value indicating whether the password cache should be used. Set to true to use the
password cache; false otherwise.PropertyVetoException
- If any of the registered listeners vetos the property change.public void setUserId(String userId) throws PropertyVetoException
userId
- The user profile name.ExtendedIllegalArgumentException
- If userId length is not valid.ExtendedIllegalStateException
- If a connection has already been made.PropertyVetoException
- If any of the registered listeners vetos the property change.public String toString()
public boolean validateSignon() throws AS400SecurityException, IOException
Note: This will return true if the information is successfully validated. An unsuccessful validation will cause an exception to be thrown, false is never returned.
Note:If an additional authentication factor has been set in the AS400 object, it is used.
AS400SecurityException
- If a security or authority error occurs.ExtendedIllegalStateException
- If system name or user ID is not set.IOException
- If an error occurs while communicating with the system.@Deprecated public boolean validateSignon(String password) throws AS400SecurityException, IOException
Note: This will return true if the information is successfully validated. An unsuccessful validation will cause an exception to be thrown, false is never returned.
Note:If an additional authentication factor has been set in the AS400 object, it is used.
password
- The user profile password to validate.AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.public boolean validateSignon(char[] password) throws AS400SecurityException, IOException
Note: This will return true if the information is successfully validated. An unsuccessful validation will cause an exception to be thrown, false is never returned.
Note:If an additional authentication factor has been set in the AS400 object, it is used.
password
- The user profile password to validate.AS400SecurityException
- If a security or authority error occurs.ExtendedIllegalStateException
- If system name or user ID is not set.IOException
- If an error occurs while communicating with the system.@Deprecated public boolean validateSignon(String userId, String password) throws AS400SecurityException, IOException
Note: This will return true if the information is successfully validated. An unsuccessful validation will cause an exception to be thrown, false is never returned.
Note:If an additional authentication factor has been set in the AS400 object, it is not used. If you want
to use an additional authentication factor, see validateSignon(String, char[], char[])
userId
- The user profile name to validate.password
- The user profile password to validate.AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.public boolean validateSignon(String userId, char[] password) throws AS400SecurityException, IOException
Note: This will return true if the information is successfully validated. An unsuccessful validation will cause an exception to be thrown, false is never returned.
Note:If an additional authentication factor has been set in the AS400 object, it is not used. If you want
to use an additional authentication factor, see validateSignon(String, char[], char[])
userId
- The user profile name to validate.password
- The user profile password to validate.AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.public boolean validateSignon(String userId, char[] password, char[] additionalAuthFactor) throws AS400SecurityException, IOException
Note: This will return true if the information is successfully validated. An unsuccessful validation will cause an exception to be thrown, false is never returned.
userId
- The user profile name to validate.password
- The user profile password to validate.additionalAuthFactor
- Additional authentication factor (or null if not providing one).AS400SecurityException
- If a security or authority error occurs.ExtendedIllegalArgumentException
- If userId or additionalAuthFactor length is not valid.ExtendedIllegalStateException
- If system name or is not set.IOException
- If an error occurs while communicating with the system.public void setBidiStringType(int bidiStringType)
bidiStringType
- bidi string type to use for the connection.public int getBidiStringType()
public static boolean isTurkish()
public int getvalidateSignonTimeOut()
public void setvalidateSignonTimeOut(int validateSignonTimeOut)
validateSignonTimeOut
- The timeout value in milliseconds.public int passwordLevel() throws AS400SecurityException, IOException
AS400SecurityException
- If a security or authority error occurs.IOException
- If an error occurs while communicating with the system.public void close()
close
in interface AutoCloseable
resetAllServices()
protected void finalize() throws Throwable
public boolean isSecure()
Note:This method is the only reliable way to determine whether host server communications is performed over a secure channel. An AS400 object that is not an instance of SecureAS400 class can use secure communications in some instances.
@Deprecated public String getKeyRingName()
Note:An exception will be thrown if the AS400 object is not an instance of SecureAS400.
public int getProxyEncryptionMode()
Note:An exception will be thrown if the AS400 object is not an instance of SecureAS400.
public void setKeyRingName(String keyRingName) throws PropertyVetoException
Note:An exception will be thrown if the AS400 object is not an instance of SecureAS400.
keyRingName
- The key ring class name.ExtendedIllegalStateException
- If object is not a secure instance.PropertyVetoException
- If any of the registered listeners vetos the property change.public void setKeyRingName(String keyRingName, String keyRingPassword) throws PropertyVetoException
Note:An exception will be thrown if the AS400 object is not an instance of SecureAS400.
keyRingName
- The key ring class name.keyRingPassword
- The password for the key ring class.ExtendedIllegalStateException
- If object is not a secure instance.PropertyVetoException
- If any of the registered listeners vetos the property change.@Deprecated public void setKeyRingPassword(String keyRingPassword)
Note:An exception will be thrown if the AS400 object is not an instance of SecureAS400.
keyRingPassword
- The password for the key ring class.ExtendedIllegalStateException
- If object is not a secure instance.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.
Note:An exception will be thrown if the AS400 object is not an instance of SecureAS400.
proxyEncryptionMode
- The proxy encryption mode.ExtendedIllegalArgumentException
- If proxyEncryptionMode value is not valid.ExtendedIllegalStateException
- If object is not a secure instance.PropertyVetoException
- If any of the registered listeners vetos the property change.public void setEnabledCipherSuites(String[] suites)
Note:An exception will be thrown if the AS400 object is not an instance of SecureAS400.
suites
- Array of cipher suites.ExtendedIllegalStateException
- If object is not a secure instance.Copyright © 2024. All rights reserved.