jBASE Account Authentication
This section helps you to verify user credentials and perform jBASE account authentication.
jAgent can be configured to verify user credentials and perform jBASE account authentication. jRemote implements the following connection properties to supply user credentials:
- user - Specifies the user to be authenticated
- password - Specifies the user’s password
You can use one of the following methods depending on the current authentication mode if it is user or account:
- getConnection(String user, String password) - Create a new connection and provide user and password as user credentials for authentication
- getConnection(String user, String account, String password) Same as above but supplying jBASE account details.
You can verify user credentials and perform jBASE account authentication in the following platforms:
try {
DefaultJConnectionFactory cxf = new DefaultJConnectionFactory();
cxf.setHost("127.0.0.1");
cxf.setPort(20002); //Port should match the port jAgent is listening on
JConnection cx = cxf.getConnection("myUserName", "myPassword");
//JConnection cx = cxf.getConnection("osUser", "myAccount", "myAccntPassword"); return cx;
} catch (JRemoteException e) {
// error
}
try {
DefaultJConnectionFactory cxf = new DefaultJConnectionFactory();
cxf.Host = "127.0.0.1";
cxf.Port = 20002; //This should match jAgent’s port
JConnection cx = cxf.getConnection("myUserName", "myPassword");
//JConnection cx = cxf.getConnection("osUser", "myAccount", "myAccntPassword");
return cx;
} catch (JRemoteException e) {
// error
}
In this topic