public class AS400ImplRemote
extends java.lang.Object
Constructor and Description |
---|
AS400ImplRemote() |
Modifier and Type | Method and Description |
---|---|
void |
addConnectionListener(ConnectionListener listener) |
java.lang.String |
ccsidToEncoding(int ccsid) |
com.ibm.as400.access.SignonInfo |
changePassword(java.lang.String systemName,
boolean systemNameLocal,
java.lang.String userId,
byte[] oldBytes,
byte[] newBytes) |
void |
connect(int service) |
void |
connect(int service,
int overridePort,
boolean skipSignonServer) |
java.net.Socket |
connectToPort(int port) |
java.net.Socket |
connectToPort(int port,
boolean forceNonLocalhost) |
int |
createUserHandle() |
int |
createUserHandle2() |
void |
disconnect(int service) |
void |
disconnectServer(AS400Server server) |
static byte[] |
encryptAES(byte[] sharedPrivateKey,
byte[] serverSeed,
byte[] value) |
byte[] |
exchangeSeed(byte[] proxySeed) |
protected void |
finalize() |
void |
freeUserHandle() |
void |
generateProfileToken(ProfileTokenCredential profileToken,
java.lang.String userIdentity) |
void |
generateProfileToken(ProfileTokenCredential profileToken,
java.lang.String userId,
com.ibm.as400.access.CredentialVault vault,
java.lang.String gssName) |
static byte[] |
getAESEncryptionKey(byte[] sharedPrivateKey) |
int |
getBidiStringType()
Returns bidi string type of the connection.
|
int |
getCcsid() |
int |
getCcsidFromServer() |
AS400Server |
getConnection(int service,
boolean forceNewConnection) |
java.lang.String[] |
getJobs(int service) |
int |
getPasswordLevel() |
boolean |
getPasswordType() |
int |
getServicePort(java.lang.String systemName,
int service) |
java.lang.String |
getSystemName() |
int |
getUserHandle() |
boolean |
isConnected(int service) |
boolean |
isConnectionAlive() |
boolean |
isConnectionAlive(int service) |
void |
newConverter(int ccsid) |
void |
removeConnectionListener(ConnectionListener listener) |
void |
setBidiStringType(int bidiStringType)
Sets bidi string type of the connection.
|
void |
setGSSCredential(java.lang.Object gssCredential) |
void |
setServicePort(java.lang.String systemName,
int service,
int port) |
void |
setServicePortsToDefault(java.lang.String systemName) |
void |
setState(com.ibm.as400.access.SSLOptions useSSLConnection,
boolean canUseNativeOptimization,
boolean threadUsed,
int ccsid,
java.lang.String nlv,
SocketProperties socketProperties,
java.lang.String ddmRDB,
boolean mustUseNetSockets,
boolean mustUseSuppliedProfile,
boolean mustAddLanguageLibrary) |
void |
setUserHandle(int userHandle_) |
com.ibm.as400.access.SignonInfo |
signon(java.lang.String systemName,
boolean systemNameLocal,
java.lang.String userId,
com.ibm.as400.access.CredentialVault vault,
java.lang.String gssName) |
com.ibm.as400.access.SignonInfo |
skipSignon(java.lang.String systemName,
boolean systemNameLocal,
java.lang.String userId,
com.ibm.as400.access.CredentialVault vault,
java.lang.String gssName) |
public void addConnectionListener(ConnectionListener listener)
public java.lang.String ccsidToEncoding(int ccsid)
public com.ibm.as400.access.SignonInfo changePassword(java.lang.String systemName, boolean systemNameLocal, java.lang.String userId, byte[] oldBytes, byte[] newBytes) throws AS400SecurityException, java.io.IOException
AS400SecurityException
java.io.IOException
public void connect(int service) throws AS400SecurityException, java.io.IOException
AS400SecurityException
java.io.IOException
public void connect(int service, int overridePort, boolean skipSignonServer) throws AS400SecurityException, java.io.IOException
AS400SecurityException
java.io.IOException
public java.net.Socket connectToPort(int port) throws AS400SecurityException, java.io.IOException
AS400SecurityException
java.io.IOException
public java.net.Socket connectToPort(int port, boolean forceNonLocalhost) throws AS400SecurityException, java.io.IOException
AS400SecurityException
java.io.IOException
public int createUserHandle() throws AS400SecurityException, java.io.IOException
AS400SecurityException
java.io.IOException
public int getUserHandle()
public void setUserHandle(int userHandle_)
public void freeUserHandle() throws java.io.IOException, AS400SecurityException
java.io.IOException
AS400SecurityException
public void disconnect(int service)
public void disconnectServer(AS400Server server)
public byte[] exchangeSeed(byte[] proxySeed)
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void generateProfileToken(ProfileTokenCredential profileToken, java.lang.String userIdentity) throws AS400SecurityException, java.io.IOException
AS400SecurityException
java.io.IOException
public void generateProfileToken(ProfileTokenCredential profileToken, java.lang.String userId, com.ibm.as400.access.CredentialVault vault, java.lang.String gssName) throws AS400SecurityException, java.io.IOException, java.lang.InterruptedException
AS400SecurityException
java.io.IOException
java.lang.InterruptedException
public int getCcsid()
public int getCcsidFromServer()
public java.lang.String[] getJobs(int service)
public AS400Server getConnection(int service, boolean forceNewConnection) throws AS400SecurityException, java.io.IOException
AS400SecurityException
java.io.IOException
public static byte[] getAESEncryptionKey(byte[] sharedPrivateKey) throws java.security.NoSuchAlgorithmException, AS400SecurityException
java.security.NoSuchAlgorithmException
AS400SecurityException
public static byte[] encryptAES(byte[] sharedPrivateKey, byte[] serverSeed, byte[] value) throws java.security.NoSuchAlgorithmException, javax.crypto.NoSuchPaddingException, AS400SecurityException, java.security.spec.InvalidKeySpecException, java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException, javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException
java.security.NoSuchAlgorithmException
javax.crypto.NoSuchPaddingException
AS400SecurityException
java.security.spec.InvalidKeySpecException
java.security.InvalidKeyException
java.security.InvalidAlgorithmParameterException
javax.crypto.IllegalBlockSizeException
javax.crypto.BadPaddingException
public int getServicePort(java.lang.String systemName, int service)
public java.lang.String getSystemName()
public boolean getPasswordType()
public int getPasswordLevel()
public boolean isConnected(int service)
public boolean isConnectionAlive()
public boolean isConnectionAlive(int service)
public void newConverter(int ccsid) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public void removeConnectionListener(ConnectionListener listener)
public void setGSSCredential(java.lang.Object gssCredential)
public void setServicePort(java.lang.String systemName, int service, int port)
public void setServicePortsToDefault(java.lang.String systemName)
public void setState(com.ibm.as400.access.SSLOptions useSSLConnection, boolean canUseNativeOptimization, boolean threadUsed, int ccsid, java.lang.String nlv, SocketProperties socketProperties, java.lang.String ddmRDB, boolean mustUseNetSockets, boolean mustUseSuppliedProfile, boolean mustAddLanguageLibrary)
public com.ibm.as400.access.SignonInfo signon(java.lang.String systemName, boolean systemNameLocal, java.lang.String userId, com.ibm.as400.access.CredentialVault vault, java.lang.String gssName) throws AS400SecurityException, java.io.IOException
AS400SecurityException
java.io.IOException
public com.ibm.as400.access.SignonInfo skipSignon(java.lang.String systemName, boolean systemNameLocal, java.lang.String userId, com.ibm.as400.access.CredentialVault vault, java.lang.String gssName) throws AS400SecurityException, java.io.IOException
AS400SecurityException
java.io.IOException
public void setBidiStringType(int bidiStringType)
bidiStringType
- The bidi string type to use for the connection.public int getBidiStringType()
public int createUserHandle2() throws AS400SecurityException, java.io.IOException
AS400SecurityException
java.io.IOException