Oracle® Business Intelligence Web Services Guide > Description of Services in Oracle BI Web Services > SAWSessionService Service >

impersonateex() Method


Use this method to log on and impersonate the user in the SAWSessionService service. Similar to the impersonate method, but impersonateex can specify optional session parameters. This method is useful when you need to create sessions for multiple users and have only the administrator's name and password. You do not need to use the (logon) method if you use the impersonateex() method.

If user authentication or impersonation fails, then an exception is thrown.

Signature

AuthResult impersonateex(String name, String password, String impersonateID, SAWSessionParameters sessionparams);

Arguments
Description

String name

Specifies the user name to log on and authenticate.

String password

Specifies the password for the user. If there is no password for the user, leave this field empty (void).

String impersonateID

Specifies the user name to impersonate the authenticated user.

SAWSessionParameters sessionparams

Optional. Specifies the session parameters to use, supplied in the SAWSessionParameters structure. For information about the SAWSessionParameters structure, read SAWSessionParameters Structure.

Returns

This method returns the AuthResult structure containing the session ID, and also sets an HTTP session cookie. The session ID is used in other methods to identify the Oracle BI Web Services session. For more information, see AuthResult Structure.
Oracle® Business Intelligence Web Services Guide Copyright © 2007, Oracle. All rights reserved.