UserCredentials
Description
In BBj 11.0 and higher, use the UserCredentials class in conjunction with the Admin class in the Admin Utility to access user credential information.
Creation
The UserCredentials class is found in <bbj install>/utils/admin.bbj.
Obtain a UserCredentials object from the Admin utility:
userCredentials! = admin!.getUserCredentials()
To create a UserCredentials object, use the following constructor:
userCredentials! = new UserCredentials(string host, int port, boolean ssl, int timeout, string user, int requiredPermissions)
Parameters
Parameter |
Description |
---|---|
host |
Specifies the host name of the BBjServices |
password |
The user's password |
port |
Specifies the port of the BBjServices Admin server |
requiredPermissions |
The required permission of the user |
ssl |
Specify true (1) if using SSL to connect to BBjServices; otherwise specify false (0) |
timeout |
Specifies the timeout of milliseconds |
user |
The name of the user |
Methods of UserCredentials
Return Value |
Method |
---|---|
string |
getHost() |
string |
|
int |
getPort() |
int |
|
boolean |
getSSL() |
int |
|
string |
getUser() |
void |
setHost(string host) |
void |
setPassword(string password) |
void |
setPort(int port) |
void |
setRequiredPermissions(int permissions) |
void |
setSSL(boolean ssl) |
void |
setTimeout(int timeout) |
void |
setUser(string user) |
Remarks
None.
Constants
None.
Example
|