com.ibm.as400.access

Class AS400ImplRemote

  • java.lang.Object
    • com.ibm.as400.access.AS400ImplRemote


  • public class AS400ImplRemote
    extends java.lang.Object
    This is the functional implementation of the AS400Impl interface. While declared as public, it is only intended for the internal use of the driver.
    • Constructor Detail

      • AS400ImplRemote

        public AS400ImplRemote()
    >
    • Method Detail

      • ccsidToEncoding

        public java.lang.String ccsidToEncoding(int ccsid)
      • changePassword

        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
        Throws:
        AS400SecurityException
        java.io.IOException
      • getUserHandle

        public int getUserHandle()
      • setUserHandle

        public void setUserHandle(int userHandle_)
      • disconnect

        public void disconnect(int service)
      • disconnectServer

        public void disconnectServer(AS400Server server)
      • exchangeSeed

        public byte[] exchangeSeed(byte[] proxySeed)
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable
      • generateProfileToken

        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
        Throws:
        AS400SecurityException
        java.io.IOException
        java.lang.InterruptedException
      • getCcsid

        public int getCcsid()
      • getCcsidFromServer

        public int getCcsidFromServer()
      • getJobs

        public java.lang.String[] getJobs(int service)
      • getAESEncryptionKey

        public static byte[] getAESEncryptionKey(byte[] sharedPrivateKey)
                                          throws java.security.NoSuchAlgorithmException,
                                                 AS400SecurityException
        Throws:
        java.security.NoSuchAlgorithmException
        AS400SecurityException
      • encryptAES

        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
        Throws:
        java.security.NoSuchAlgorithmException
        javax.crypto.NoSuchPaddingException
        AS400SecurityException
        java.security.spec.InvalidKeySpecException
        java.security.InvalidKeyException
        java.security.InvalidAlgorithmParameterException
        javax.crypto.IllegalBlockSizeException
        javax.crypto.BadPaddingException
      • getServicePort

        public int getServicePort(java.lang.String systemName,
                         int service)
      • getSystemName

        public java.lang.String getSystemName()
      • getPasswordType

        public boolean getPasswordType()
      • isConnected

        public boolean isConnected(int service)
      • isConnectionAlive

        public boolean isConnectionAlive()
      • isConnectionAlive

        public boolean isConnectionAlive(int service)
      • newConverter

        public void newConverter(int ccsid)
                          throws java.io.UnsupportedEncodingException
        Throws:
        java.io.UnsupportedEncodingException
      • removeConnectionListener

        public void removeConnectionListener(ConnectionListener listener)
      • setGSSCredential

        public void setGSSCredential(java.lang.Object gssCredential)
      • setServicePort

        public void setServicePort(java.lang.String systemName,
                          int service,
                          int port)
      • setServicePortsToDefault

        public void setServicePortsToDefault(java.lang.String systemName)
      • setState

        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)
      • signon

        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
        Throws:
        AS400SecurityException
        java.io.IOException
      • skipSignon

        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
        Throws:
        AS400SecurityException
        java.io.IOException
      • setBidiStringType

        public void setBidiStringType(int bidiStringType)
        Sets bidi string type of the connection. See BidiStringType for more information and valid values.
        Parameters:
        bidiStringType - The bidi string type to use for the connection.
      • getBidiStringType

        public int getBidiStringType()
        Returns bidi string type of the connection. See BidiStringType for more information and valid values.
        Returns:
        bidi string type