psdi.server

Interface DBCredentialHandler

  • All Known Implementing Classes:
    OracleProxyCredentialHandler


    public interface DBCredentialHandler
    The public interface that defines how the credential passed in from log in process should be communicated to the database manager. A data base manager may need to provide an object to handler this process if credential of the user is needed for each connection to the database such as using a proxy connection.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      java.lang.Object handleInput(java.lang.String loginId, MaxUsrDBAuthInfoRemote authMbo)
      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)
      The method handles the user name, and the credential.
      java.lang.Object handleInput(java.lang.String loginId, java.lang.String password, java.lang.Object other)
      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 interpretsthe credential and compose an object arrary that the db manager will understand to use.
    • Method Detail

      • handleInput

        java.lang.Object handleInput(java.lang.String loginId,
                                     MaxUsrDBAuthInfoRemote authMbo)
                              throws MXException,
                                     java.rmi.RemoteException
        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.
        Parameters:
        loginId -
        authMbo -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • handleInput

        java.lang.Object handleInput(java.lang.String loginId,
                                     java.lang.String password,
                                     java.lang.Object other)
                              throws MXException,
                                     java.rmi.RemoteException
        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.
        Parameters:
        userName -
        password -
        other -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • handleInput

        java.lang.Object handleInput(java.lang.String loginId,
                                     java.lang.String stringCredential)
                              throws MXException,
                                     java.rmi.RemoteException
        The method handles the user name, and the credential. The credential can be password (not encrypted), or additional certificate. The credential is in a encoded string format that the responsible DBCredentialHandler understands. The return result is an object that can be passed into the user info and be passed around.
        Parameters:
        userName -
        password -
        stringCredential -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • handleOutput

        java.lang.Object[] handleOutput(java.lang.Object credential)
                                 throws MXException,
                                        java.rmi.RemoteException
        The method interpretsthe credential and compose an object arrary that the db manager will understand to use. Normally the credential is a encrypted or unreadable object, the output normally is what can be used directly as the credential for authentication for database connection.
        Throws:
        MXException
        java.rmi.RemoteException