psdi.server

Class OracleProxyCredentialHandler

  • java.lang.Object
    • psdi.server.OracleProxyCredentialHandler
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      javax.security.cert.X509Certificate getCertificateObject(java.lang.String encoded) 
      java.lang.Object handleInput(java.lang.String loginID, MaxUsrDBAuthInfoRemote authInfo)
      The method convert the information in MaxUsrDBAuthInfo to an object that can be taken by the userInfo object as credential when used to authenticate the proxy user.
      java.lang.Object handleInput(java.lang.String loginID, java.lang.String stringCredential)
      Get the credential object based on the passed in credential in the string format.
      java.lang.Object handleInput(java.lang.String loginID, java.lang.String password, java.lang.Object credential)
      The method handles the user name, password, and the object the client might pass in as additional credential.
      java.lang.Object[] handleOutput(java.lang.Object credential)
      The method interprets the credential and compose an object arrary that the db manager will understand to use.
      static void main(java.lang.String[] args)
      User can run this program to obtain encoded password and certificate that can be stored in maxusrdbauthinfo table.
      void setServer(MXServerRemote server) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OracleProxyCredentialHandler

        public OracleProxyCredentialHandler(DBManager owner)
      • OracleProxyCredentialHandler

        public OracleProxyCredentialHandler(DBManager owner,
                                            int t)
    • Method Detail

      • handleInput

        public java.lang.Object handleInput(java.lang.String loginID,
                                            MaxUsrDBAuthInfoRemote authInfo)
                                     throws MXException,
                                            java.rmi.RemoteException
        Description copied from interface: DBCredentialHandler
        The method convert the information in MaxUsrDBAuthInfo to an object that can be taken by the userInfo object as credential when used to authenticate the proxy user.
        Specified by:
        handleInput in interface DBCredentialHandler
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • handleInput

        public java.lang.Object handleInput(java.lang.String loginID,
                                            java.lang.String password,
                                            java.lang.Object credential)
                                     throws MXException,
                                            java.rmi.RemoteException
        Description copied from interface: DBCredentialHandler
        The method handles the user name, password, and the object the client might pass in as additional credential. The return result is an object that can be passed into the user info and be passed around.
        Specified by:
        handleInput in interface DBCredentialHandler
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • handleInput

        public java.lang.Object handleInput(java.lang.String loginID,
                                            java.lang.String stringCredential)
                                     throws MXException,
                                            java.rmi.RemoteException
        Get the credential object based on the passed in credential in the string format. The credential can be password, dn or certificate. If it is password, it is not encrypted. This method is used to interpret the credential provided by the property file. Since property already provided the encryption functionality, the password is not encrypted.
        Specified by:
        handleInput in interface DBCredentialHandler
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • handleOutput

        public java.lang.Object[] handleOutput(java.lang.Object credential)
                                        throws MXException,
                                               java.rmi.RemoteException
        The method interprets the credential and compose an object arrary that the db manager will understand to use. Normally the credential is a encrypted or unreadable object,
        Specified by:
        handleOutput in interface DBCredentialHandler
        Throws:
        MXException
        java.rmi.RemoteException
      • getCertificateObject

        public javax.security.cert.X509Certificate getCertificateObject(java.lang.String encoded)
                                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • main

        public static void main(java.lang.String[] args)
                         throws java.lang.Exception
        User can run this program to obtain encoded password and certificate that can be stored in maxusrdbauthinfo table. The MXServer must be running when the command can be executed, and it should be configured either not using proxy connection, or only use username/password authentication when the command is run.
        Parameters:
        args -
        Throws:
        java.lang.Exception