Home » IBM » C5050-408 » Which function must the application developer invoke in the authentication adapter at the end of the login sequence to consider the user’s session authenticated?
An application developer is securing an application by using an adapter. The application developer has registered the following procedures in the adapter’s xml file.
<procedure name="submitAuthentication" />
<procedure name="requestForData" securityTest="AuthAdapterTest" />
Which function must the application developer invoke in the authentication adapter at the end of the login sequence to consider the user’s session authenticated?
A. The WL.Client.Login API.
B. The WL.Server.setActiveUser API.
C. The adapter’s requestForData function.
D. The adapter authenticator’s login-function.
Correct Answer: B
Explanation/Reference:
WL.Server.setActiveUser creates a user identity in a specified realm.
It is used in authenticator adapters at the end of the login sequence. Creates a user identity in the specified realm with the properties in the specified identity parameter. As a result of this method, the user’s session is considered authenticated.
References:
https://www.ibm.com/support/knowledgecenter/SSZH4A_6.0.0/com.ibm.worklight.help.doc/apiref/r_method_wl_server_setactiveuser.html
Download Printable PDF. VALID exam to help you PASS.
|
|