
UserCredentials::setSSL
Description
In BBj 11.0 and higher, this method specifies whether to use SSL when connecting to the BBjServices Admin server that will obtain user credentials from the end user.
Syntax
Return Value |
Method |
---|---|
void |
setSSL(boolean ssl) |
Parameters
Variable |
Description |
---|---|
ssl |
Specify 1 (TRUE) to use SSL to connect to the BBjServices Admin server that will obtain user credentials from the end user; otherwise specify 0 (FALSE). |
Return Value
None.
Remarks
None.
Example
Copy
Admin Utility Demo
rem Admin Utility Demo
rem Use Statements
use ::admin.bbj::Admin
use ::admin.bbj::UserCredentials
rem Declares
declare Admin admin!
declare UserCredentials userCredentials!
rem Authenticate the user jsmith
admin! = new Admin()
admin!.setUser("jsmith")
userCredentials! = admin!.getUserCredentials()
if (userCredentials! <> null())
print "User: " + userCredentials!.getUser()
print "Password: " + userCredentials!.getPassword()
print "Host: " + userCredentials!.getHost()
print "Port: " + str(userCredentials!.getPort())
print "SSL: " + str(userCredentials!.getSSL())
print "Timeout: " + str(userCredentials!.getTimeout())
end
else
print "Could not authenticate user"
endif
end