11.8 SET_SESSION_CREDENTIALS Procedure

This procedure is a generic overload to set session credentials.

Syntax

PROCEDURE SET_SESSION_CREDENTIALS(
    p_credential_static_id IN VARCHAR2,
    p_key                  IN VARCHAR2,
    p_value                IN VARCHAR2 );

Parameters

Parameter Description
p_credential_static_id The credential static ID.
p_key Credential key (name of the HTTP Header or Query String Parameter).
p_value Credential secret value.

Example

The following example sets the credential API Key.

begin
apex_credential.set_session_credentials (
    p_credential_static_id    'my_API_key',
    p_key                     'api_key',
    p_value                   'lsjkgjw4908902ru9fj879q367891hdaw' );
end;