Skip to main content

UC_RTE_ACCESS_TOKEN

The type defines decoded access token used to secure RESTful service image requests.

Attributes

AttributeTypeDescription
session_idNUMBERAn APEX application session id when an access token was created.
valid_tillDATEA date till when an access token is valid.
url_get_imageVARACHAR2(4000)A RESTful service handler URL displaying an uploaded image defined using an application components settings or on a page item level using the plug-in attributes.

Static functions

create_from_decoded

Creates access token instance based on valid JSON.

static function create_from_decoded( p_decoded in varchar2 ) return UC_RTE_ACCESS_TOKEN

encode

Encodes given string using the plug-in salt string. Encoded string can be decoded using static function decode.

static function encode( p_string in varchar2 ) return varchar2

decode

Decodes given access token and returns access token as JSON string.

static function decode( p_token in varchar2 ) return varchar2

create_from_token

Creates an access token type instance based on given encoded JSON.

static function create_from_token( p_token in varchar2 ) return UC_RTE_ACCESS_TOKEN

is_valid

Checks if given encoded access token is not expired. The function returns 1 when access token is not expired and 0 when it's expired.

static function is_valid( p_token in varchar2 ) return number

Memeber functions

getJSON

Return the current access token instance as JSON string.

member function getJSON return varchar2

encode

Encodes the access token type using salt defined in the plug-in package UC_FROALA_SETTINGS as package variable g_froala_access_token.

member function encode return varchar2

is_valid

Checks if access token instance is not expired. The function returns 1 when access token instance is not expired and 0 when it's expired.

member function is_valid return number