Authentication of web services clients with a UsernameToken
www.ibm.com › docs › enNov 04, 2021 · ws-security.password - user password if ws-security.callback-handler is not defined. ws-security.callback-handler - the CallbackHandler implementation class used to obtain passwords. The following code sample shows how to provide a user name and password on the request context: Map<String, Object> requestCtx = ( (BindingProvider)port).getRequestContext (); requestCtx.put ("ws-security.username", "bob_username"); requestCtx.put ("ws-security.password", "bob_password");