DBA Data[Home] [Help]

PACKAGE BODY: OWAPUB.OWA_SEC

Source


1 package body OWA_SEC is
2 
3      /*******************************************************************/
4     /* Procedure to specify the PL/SQL Agent's authorization scheme    */
5    /*******************************************************************/
6    procedure set_authorization(scheme in integer) is
7    begin
8       owa.auth_scheme := scheme;
9    end;
10 
11      /*******************************************************************/
12     /* Functions to obtain the Web client's authentication information */
13    /*******************************************************************/
14    function get_user_id return varchar2 is
15    begin
16       return owa.user_id;
17    end;
18 
19    function get_password return varchar2 is
20    begin
21       return owa.password;
22    end;
23 
24    function get_client_ip return owa_util.ip_address is
25    begin
26       return owa.ip_address;
27    end;
28 
29    function get_client_hostname return varchar2 is
30    begin
31       return owa.hostname;
32    end;
33 
34      /*******************************************************************/
35     /* Procedure to specify the dynamic page's protection realm        */
36    /*******************************************************************/
37    procedure set_protection_realm(realm in varchar2) is
38    begin
39       owa.protection_realm := realm;
40    end;
41 
42 end;