public class OracleProxyCredentialHandler extends java.lang.Object implements DBCredentialHandler
Constructor and Description |
---|
OracleProxyCredentialHandler(DBManager owner) |
OracleProxyCredentialHandler(DBManager owner,
int t) |
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) |
public OracleProxyCredentialHandler(DBManager owner)
public OracleProxyCredentialHandler(DBManager owner, int t)
public void setServer(MXServerRemote server)
public java.lang.Object handleInput(java.lang.String loginID, MaxUsrDBAuthInfoRemote authInfo) throws MXException, java.rmi.RemoteException
DBCredentialHandler
handleInput
in interface DBCredentialHandler
MXException
java.rmi.RemoteException
public java.lang.Object handleInput(java.lang.String loginID, java.lang.String password, java.lang.Object credential) throws MXException, java.rmi.RemoteException
DBCredentialHandler
handleInput
in interface DBCredentialHandler
MXException
java.rmi.RemoteException
public java.lang.Object handleInput(java.lang.String loginID, java.lang.String stringCredential) throws MXException, java.rmi.RemoteException
handleInput
in interface DBCredentialHandler
MXException
java.rmi.RemoteException
public java.lang.Object[] handleOutput(java.lang.Object credential) throws MXException, java.rmi.RemoteException
handleOutput
in interface DBCredentialHandler
MXException
java.rmi.RemoteException
public javax.security.cert.X509Certificate getCertificateObject(java.lang.String encoded) throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- java.lang.Exception